Skip to content

Commit

Permalink
Updated expected output for embed tests to accommodate the latest mar…
Browse files Browse the repository at this point in the history
…kup changes made in the embeds plugin. #1496
  • Loading branch information
miteshashar committed Dec 7, 2022
1 parent b7940b0 commit 970e7fd
Show file tree
Hide file tree
Showing 3 changed files with 60 additions and 60 deletions.
8 changes: 4 additions & 4 deletions tests/data/markdown/markmap.toml
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ basic = """<h3>Markmap</h3>
</code></pre>
"""
document = """<h3 id="h:markmap">Markmap <a class="header-anchor" href="#h:markmap">¶</a></h3>
<div class="md-embed md-embed-markmap" ><div class="embed-content">
<div class="md-embed md-embed-markmap"><div class="embed-loading">Mindmap</div><pre class="embed-content">
# Digital Identifiers and Rights
## Community and Outreach
Expand Down Expand Up @@ -301,10 +301,10 @@ document = """<h3 id="h:markmap">Markmap <a class="header-anchor" href="#h:markm
- National policies
- Public health services
- Records (birth, death, land etc)
</div></div>
</pre><div class="embed-container"></div></div>
"""
markmap = """<h3>Markmap</h3>
<div class="md-embed md-embed-markmap" ><div class="embed-content">
<div class="md-embed md-embed-markmap"><div class="embed-loading">Mindmap</div><pre class="embed-content">
# Digital Identifiers and Rights
## Community and Outreach
Expand Down Expand Up @@ -399,5 +399,5 @@ markmap = """<h3>Markmap</h3>
- National policies
- Public health services
- Records (birth, death, land etc)
</div></div>
</pre><div class="embed-container"></div></div>
"""
72 changes: 36 additions & 36 deletions tests/data/markdown/mermaid.toml
Original file line number Diff line number Diff line change
Expand Up @@ -244,22 +244,22 @@ basic = """<h1>mermaid tests</h1>
"""
document = """<h1 id="h:mermaid-tests">mermaid tests <a class="header-anchor" href="#h:mermaid-tests">¶</a></h1>
<h2 id="h:flowchart">Flowchart <a class="header-anchor" href="#h:flowchart">¶</a></h2>
<div class="md-embed md-embed-mermaid" ><div class="embed-content">graph TD
<div class="md-embed md-embed-mermaid"><div class="embed-loading">Visualization</div><pre class="embed-content">graph TD
A[Christmas] --&gt;|Get money| B(Go shopping)
B --&gt; C{Let me think}
C --&gt;|One| D[Laptop]
C --&gt;|Two| E[iPhone]
C --&gt;|Three| F[fa:fa-car Car]
</div></div>
</pre><div class="embed-container"></div></div>
<h2 id="h:sequence-diagrams">Sequence Diagrams <a class="header-anchor" href="#h:sequence-diagrams">¶</a></h2>
<div class="md-embed md-embed-mermaid" ><div class="embed-content">sequenceDiagram
<div class="md-embed md-embed-mermaid"><div class="embed-loading">Visualization</div><pre class="embed-content">sequenceDiagram
Alice-&gt;&gt;+John: Hello John, how are you?
Alice-&gt;&gt;+John: John, can you hear me?
John--&gt;&gt;-Alice: Hi Alice, I can hear you!
John--&gt;&gt;-Alice: I feel great!
</div></div>
</pre><div class="embed-container"></div></div>
<h2 id="h:class-diagram">Class Diagram <a class="header-anchor" href="#h:class-diagram">¶</a></h2>
<div class="md-embed md-embed-mermaid" ><div class="embed-content">classDiagram
<div class="md-embed md-embed-mermaid"><div class="embed-loading">Visualization</div><pre class="embed-content">classDiagram
Animal &lt;|-- Duck
Animal &lt;|-- Fish
Animal &lt;|-- Zebra
Expand All @@ -280,35 +280,35 @@ document = """<h1 id="h:mermaid-tests">mermaid tests <a class="header-anchor" hr
+bool is_wild
+run()
}
</div></div>
</pre><div class="embed-container"></div></div>
<h2 id="h:state-diagram">State Diagram <a class="header-anchor" href="#h:state-diagram">¶</a></h2>
<div class="md-embed md-embed-mermaid" ><div class="embed-content">stateDiagram-v2
<div class="md-embed md-embed-mermaid"><div class="embed-loading">Visualization</div><pre class="embed-content">stateDiagram-v2
[*] --&gt; Still
Still --&gt; [*]
Still --&gt; Moving
Moving --&gt; Still
Moving --&gt; Crash
Crash --&gt; [*]
</div></div>
</pre><div class="embed-container"></div></div>
<h2 id="h:gantt-chart">Gantt Chart <a class="header-anchor" href="#h:gantt-chart">¶</a></h2>
<div class="md-embed md-embed-mermaid" ><div class="embed-content"> title A Gantt Diagram
<div class="md-embed md-embed-mermaid"><div class="embed-loading">Visualization</div><pre class="embed-content"> title A Gantt Diagram
dateFormat YYYY-MM-DD
section Section
A task :a1, 2014-01-01, 30d
Another task :after a1 , 20d
section Another
Task in sec :2014-01-12 , 12d
another task : 24d
</div></div>
</pre><div class="embed-container"></div></div>
<h2 id="h:pie-chart">Pie Chart <a class="header-anchor" href="#h:pie-chart">¶</a></h2>
<div class="md-embed md-embed-mermaid" ><div class="embed-content">pie title Pets adopted by volunteers
<div class="md-embed md-embed-mermaid"><div class="embed-loading">Visualization</div><pre class="embed-content">pie title Pets adopted by volunteers
&quot;Dogs&quot; : 386
&quot;Cats&quot; : 85
&quot;Rats&quot; : 15
</div></div>
</pre><div class="embed-container"></div></div>
<h2 id="h:er-diagram">ER Diagram <a class="header-anchor" href="#h:er-diagram">¶</a></h2>
<div class="md-embed md-embed-mermaid" ><div class="embed-content">erDiagram
<div class="md-embed md-embed-mermaid"><div class="embed-loading">Visualization</div><pre class="embed-content">erDiagram
CUSTOMER }|..|{ DELIVERY-ADDRESS : has
CUSTOMER ||--o{ ORDER : places
CUSTOMER ||--o{ INVOICE : &quot;liable for&quot;
Expand All @@ -317,9 +317,9 @@ document = """<h1 id="h:mermaid-tests">mermaid tests <a class="header-anchor" hr
ORDER ||--|{ ORDER-ITEM : includes
PRODUCT-CATEGORY ||--|{ PRODUCT : contains
PRODUCT ||--o{ ORDER-ITEM : &quot;ordered in&quot;
</div></div>
</pre><div class="embed-container"></div></div>
<h2 id="h:user-journey">User Journey <a class="header-anchor" href="#h:user-journey">¶</a></h2>
<div class="md-embed md-embed-mermaid" ><div class="embed-content">journey
<div class="md-embed md-embed-mermaid"><div class="embed-loading">Visualization</div><pre class="embed-content">journey
title My working day
section Go to work
Make tea: 5: Me
Expand All @@ -329,9 +329,9 @@ document = """<h1 id="h:mermaid-tests">mermaid tests <a class="header-anchor" hr
Go downstairs: 5: Me
Sit down: 3: Me
</div></div>
</pre><div class="embed-container"></div></div>
<h2 id="h:git-graph">Git Graph <a class="header-anchor" href="#h:git-graph">¶</a></h2>
<div class="md-embed md-embed-mermaid" ><div class="embed-content"> gitGraph
<div class="md-embed md-embed-mermaid"><div class="embed-loading">Visualization</div><pre class="embed-content"> gitGraph
commit
commit
branch develop
Expand All @@ -343,26 +343,26 @@ document = """<h1 id="h:mermaid-tests">mermaid tests <a class="header-anchor" hr
commit
commit
</div></div>
</pre><div class="embed-container"></div></div>
"""
mermaid = """<h1>mermaid tests</h1>
<h2>Flowchart</h2>
<div class="md-embed md-embed-mermaid" ><div class="embed-content">graph TD
<div class="md-embed md-embed-mermaid"><div class="embed-loading">Visualization</div><pre class="embed-content">graph TD
A[Christmas] --&gt;|Get money| B(Go shopping)
B --&gt; C{Let me think}
C --&gt;|One| D[Laptop]
C --&gt;|Two| E[iPhone]
C --&gt;|Three| F[fa:fa-car Car]
</div></div>
</pre><div class="embed-container"></div></div>
<h2>Sequence Diagrams</h2>
<div class="md-embed md-embed-mermaid" ><div class="embed-content">sequenceDiagram
<div class="md-embed md-embed-mermaid"><div class="embed-loading">Visualization</div><pre class="embed-content">sequenceDiagram
Alice-&gt;&gt;+John: Hello John, how are you?
Alice-&gt;&gt;+John: John, can you hear me?
John--&gt;&gt;-Alice: Hi Alice, I can hear you!
John--&gt;&gt;-Alice: I feel great!
</div></div>
</pre><div class="embed-container"></div></div>
<h2>Class Diagram</h2>
<div class="md-embed md-embed-mermaid" ><div class="embed-content">classDiagram
<div class="md-embed md-embed-mermaid"><div class="embed-loading">Visualization</div><pre class="embed-content">classDiagram
Animal &lt;|-- Duck
Animal &lt;|-- Fish
Animal &lt;|-- Zebra
Expand All @@ -383,35 +383,35 @@ mermaid = """<h1>mermaid tests</h1>
+bool is_wild
+run()
}
</div></div>
</pre><div class="embed-container"></div></div>
<h2>State Diagram</h2>
<div class="md-embed md-embed-mermaid" ><div class="embed-content">stateDiagram-v2
<div class="md-embed md-embed-mermaid"><div class="embed-loading">Visualization</div><pre class="embed-content">stateDiagram-v2
[*] --&gt; Still
Still --&gt; [*]
Still --&gt; Moving
Moving --&gt; Still
Moving --&gt; Crash
Crash --&gt; [*]
</div></div>
</pre><div class="embed-container"></div></div>
<h2>Gantt Chart</h2>
<div class="md-embed md-embed-mermaid" ><div class="embed-content"> title A Gantt Diagram
<div class="md-embed md-embed-mermaid"><div class="embed-loading">Visualization</div><pre class="embed-content"> title A Gantt Diagram
dateFormat YYYY-MM-DD
section Section
A task :a1, 2014-01-01, 30d
Another task :after a1 , 20d
section Another
Task in sec :2014-01-12 , 12d
another task : 24d
</div></div>
</pre><div class="embed-container"></div></div>
<h2>Pie Chart</h2>
<div class="md-embed md-embed-mermaid" ><div class="embed-content">pie title Pets adopted by volunteers
<div class="md-embed md-embed-mermaid"><div class="embed-loading">Visualization</div><pre class="embed-content">pie title Pets adopted by volunteers
&quot;Dogs&quot; : 386
&quot;Cats&quot; : 85
&quot;Rats&quot; : 15
</div></div>
</pre><div class="embed-container"></div></div>
<h2>ER Diagram</h2>
<div class="md-embed md-embed-mermaid" ><div class="embed-content">erDiagram
<div class="md-embed md-embed-mermaid"><div class="embed-loading">Visualization</div><pre class="embed-content">erDiagram
CUSTOMER }|..|{ DELIVERY-ADDRESS : has
CUSTOMER ||--o{ ORDER : places
CUSTOMER ||--o{ INVOICE : &quot;liable for&quot;
Expand All @@ -420,9 +420,9 @@ mermaid = """<h1>mermaid tests</h1>
ORDER ||--|{ ORDER-ITEM : includes
PRODUCT-CATEGORY ||--|{ PRODUCT : contains
PRODUCT ||--o{ ORDER-ITEM : &quot;ordered in&quot;
</div></div>
</pre><div class="embed-container"></div></div>
<h2>User Journey</h2>
<div class="md-embed md-embed-mermaid" ><div class="embed-content">journey
<div class="md-embed md-embed-mermaid"><div class="embed-loading">Visualization</div><pre class="embed-content">journey
title My working day
section Go to work
Make tea: 5: Me
Expand All @@ -432,9 +432,9 @@ mermaid = """<h1>mermaid tests</h1>
Go downstairs: 5: Me
Sit down: 3: Me
</div></div>
</pre><div class="embed-container"></div></div>
<h2>Git Graph</h2>
<div class="md-embed md-embed-mermaid" ><div class="embed-content"> gitGraph
<div class="md-embed md-embed-mermaid"><div class="embed-loading">Visualization</div><pre class="embed-content"> gitGraph
commit
commit
branch develop
Expand All @@ -446,5 +446,5 @@ mermaid = """<h1>mermaid tests</h1>
commit
commit
</div></div>
</pre><div class="embed-container"></div></div>
"""
40 changes: 20 additions & 20 deletions tests/data/markdown/vega-lite.toml
Original file line number Diff line number Diff line change
Expand Up @@ -697,7 +697,7 @@ basic = """<h1>vega-lite tests</h1>
"""
document = """<h1 id="h:vega-lite-tests">vega-lite tests <a class="header-anchor" href="#h:vega-lite-tests">¶</a></h1>
<h2 id="h:interactive-scatter-plot-matrix">Interactive Scatter Plot Matrix <a class="header-anchor" href="#h:interactive-scatter-plot-matrix">¶</a></h2>
<div class="md-embed md-embed-vega-lite" ><div class="embed-content">{
<div class="md-embed md-embed-vega-lite"><div class="embed-loading">Visualization</div><pre class="embed-content">{
&quot;$schema&quot;: &quot;https://vega.github.io/schema/vega-lite/v5.json&quot;,
&quot;repeat&quot;: {
&quot;row&quot;: [&quot;Horsepower&quot;, &quot;Acceleration&quot;, &quot;Miles_per_Gallon&quot;],
Expand Down Expand Up @@ -746,9 +746,9 @@ document = """<h1 id="h:vega-lite-tests">vega-lite tests <a class="header-anchor
}
}
}
</div></div>
</pre><div class="embed-container"></div></div>
<h2 id="h:population-pyramid">Population Pyramid <a class="header-anchor" href="#h:population-pyramid">¶</a></h2>
<div class="md-embed md-embed-vega-lite" ><div class="embed-content">{
<div class="md-embed md-embed-vega-lite"><div class="embed-loading">Visualization</div><pre class="embed-content">{
&quot;$schema&quot;: &quot;https://vega.github.io/schema/vega-lite/v5.json&quot;,
&quot;description&quot;: &quot;A population pyramid for the US in 2000.&quot;,
&quot;data&quot;: { &quot;url&quot;: &quot;https://vega.github.io/vega-lite/examples/data/population.json&quot;},
Expand Down Expand Up @@ -818,9 +818,9 @@ document = """<h1 id="h:vega-lite-tests">vega-lite tests <a class="header-anchor
}
}
</div></div>
</pre><div class="embed-container"></div></div>
<h2 id="h:discretizing-scales">Discretizing scales <a class="header-anchor" href="#h:discretizing-scales">¶</a></h2>
<div class="md-embed md-embed-vega-lite" ><div class="embed-content">{
<div class="md-embed md-embed-vega-lite"><div class="embed-loading">Visualization</div><pre class="embed-content">{
&quot;$schema&quot;: &quot;https://vega.github.io/schema/vega-lite/v5.json&quot;,
&quot;description&quot;: &quot;Horizontally concatenated charts that show different types of discretizing scales.&quot;,
&quot;data&quot;: {
Expand Down Expand Up @@ -949,9 +949,9 @@ document = """<h1 id="h:vega-lite-tests">vega-lite tests <a class="header-anchor
}
}
}
</div></div>
</pre><div class="embed-container"></div></div>
<h2 id="h:marginal-histograms">Marginal Histograms <a class="header-anchor" href="#h:marginal-histograms">¶</a></h2>
<div class="md-embed md-embed-vega-lite" ><div class="embed-content">{
<div class="md-embed md-embed-vega-lite"><div class="embed-loading">Visualization</div><pre class="embed-content">{
&quot;$schema&quot;: &quot;https://vega.github.io/schema/vega-lite/v5.json&quot;,
&quot;data&quot;: {&quot;url&quot;: &quot;https://vega.github.io/vega-lite/examples/data/movies.json&quot;},
&quot;spacing&quot;: 15,
Expand Down Expand Up @@ -1006,9 +1006,9 @@ document = """<h1 id="h:vega-lite-tests">vega-lite tests <a class="header-anchor
}
}
}
</div></div>
</pre><div class="embed-container"></div></div>
<h2 id="h:radial-plot">Radial Plot <a class="header-anchor" href="#h:radial-plot">¶</a></h2>
<div class="md-embed md-embed-vega-lite" ><div class="embed-content">{
<div class="md-embed md-embed-vega-lite"><div class="embed-loading">Visualization</div><pre class="embed-content">{
&quot;$schema&quot;: &quot;https://vega.github.io/schema/vega-lite/v5.json&quot;,
&quot;description&quot;: &quot;A simple radial chart with embedded data.&quot;,
&quot;data&quot;: {
Expand All @@ -1029,11 +1029,11 @@ document = """<h1 id="h:vega-lite-tests">vega-lite tests <a class="header-anchor
}
}
</div></div>
</pre><div class="embed-container"></div></div>
"""
vega-lite = """<h1>vega-lite tests</h1>
<h2>Interactive Scatter Plot Matrix</h2>
<div class="md-embed md-embed-vega-lite" ><div class="embed-content">{
<div class="md-embed md-embed-vega-lite"><div class="embed-loading">Visualization</div><pre class="embed-content">{
&quot;$schema&quot;: &quot;https://vega.github.io/schema/vega-lite/v5.json&quot;,
&quot;repeat&quot;: {
&quot;row&quot;: [&quot;Horsepower&quot;, &quot;Acceleration&quot;, &quot;Miles_per_Gallon&quot;],
Expand Down Expand Up @@ -1082,9 +1082,9 @@ vega-lite = """<h1>vega-lite tests</h1>
}
}
}
</div></div>
</pre><div class="embed-container"></div></div>
<h2>Population Pyramid</h2>
<div class="md-embed md-embed-vega-lite" ><div class="embed-content">{
<div class="md-embed md-embed-vega-lite"><div class="embed-loading">Visualization</div><pre class="embed-content">{
&quot;$schema&quot;: &quot;https://vega.github.io/schema/vega-lite/v5.json&quot;,
&quot;description&quot;: &quot;A population pyramid for the US in 2000.&quot;,
&quot;data&quot;: { &quot;url&quot;: &quot;https://vega.github.io/vega-lite/examples/data/population.json&quot;},
Expand Down Expand Up @@ -1154,9 +1154,9 @@ vega-lite = """<h1>vega-lite tests</h1>
}
}
</div></div>
</pre><div class="embed-container"></div></div>
<h2>Discretizing scales</h2>
<div class="md-embed md-embed-vega-lite" ><div class="embed-content">{
<div class="md-embed md-embed-vega-lite"><div class="embed-loading">Visualization</div><pre class="embed-content">{
&quot;$schema&quot;: &quot;https://vega.github.io/schema/vega-lite/v5.json&quot;,
&quot;description&quot;: &quot;Horizontally concatenated charts that show different types of discretizing scales.&quot;,
&quot;data&quot;: {
Expand Down Expand Up @@ -1285,9 +1285,9 @@ vega-lite = """<h1>vega-lite tests</h1>
}
}
}
</div></div>
</pre><div class="embed-container"></div></div>
<h2>Marginal Histograms</h2>
<div class="md-embed md-embed-vega-lite" ><div class="embed-content">{
<div class="md-embed md-embed-vega-lite"><div class="embed-loading">Visualization</div><pre class="embed-content">{
&quot;$schema&quot;: &quot;https://vega.github.io/schema/vega-lite/v5.json&quot;,
&quot;data&quot;: {&quot;url&quot;: &quot;https://vega.github.io/vega-lite/examples/data/movies.json&quot;},
&quot;spacing&quot;: 15,
Expand Down Expand Up @@ -1342,9 +1342,9 @@ vega-lite = """<h1>vega-lite tests</h1>
}
}
}
</div></div>
</pre><div class="embed-container"></div></div>
<h2>Radial Plot</h2>
<div class="md-embed md-embed-vega-lite" ><div class="embed-content">{
<div class="md-embed md-embed-vega-lite"><div class="embed-loading">Visualization</div><pre class="embed-content">{
&quot;$schema&quot;: &quot;https://vega.github.io/schema/vega-lite/v5.json&quot;,
&quot;description&quot;: &quot;A simple radial chart with embedded data.&quot;,
&quot;data&quot;: {
Expand All @@ -1365,5 +1365,5 @@ vega-lite = """<h1>vega-lite tests</h1>
}
}
</div></div>
</pre><div class="embed-container"></div></div>
"""

0 comments on commit 970e7fd

Please sign in to comment.