summaryrefslogtreecommitdiffstats
path: root/tests/fixtures/substitution.md
diff options
context:
space:
mode:
Diffstat (limited to 'tests/fixtures/substitution.md')
-rw-r--r--tests/fixtures/substitution.md125
1 files changed, 125 insertions, 0 deletions
diff --git a/tests/fixtures/substitution.md b/tests/fixtures/substitution.md
new file mode 100644
index 0000000..1987354
--- /dev/null
+++ b/tests/fixtures/substitution.md
@@ -0,0 +1,125 @@
+Basic (space):
+.
+{{ block }}
+
+a {{ inline }} b
+.
+<div class="substitution" text="block" />
+<p>a <span class="substitution" text="inline" /> b</p>
+.
+
+Basic (no space):
+.
+{{block}}
+
+a {{inline}} b
+.
+<div class="substitution" text="block" />
+<p>a <span class="substitution" text="inline" /> b</p>
+.
+
+Same line:
+.
+{{a}}{{b}}
+.
+<p><span class="substitution" text="a" /><span class="substitution" text="b" /></p>
+.
+
+No closing:
+.
+{{ a
+
+{{b}
+
+{{c} }
+.
+<p>{{ a</p>
+<p>{{b}</p>
+<p>{{c} }</p>
+.
+
+Inside code
+.
+`{{ a }}`
+
+```python
+{{b}}
+```
+.
+<p><code>{{ a }}</code></p>
+<pre><code class="language-python">{{b}}
+</code></pre>
+.
+
+New line:
+.
+{{a}}
+{{b}}
+.
+<div class="substitution" text="a" />
+<div class="substitution" text="b" />
+.
+
+Blocks:
+.
+- {{a}}
+
+> {{b}}
+
+1. {{c}}
+.
+<ul>
+<li>
+<div class="substitution" text="a" />
+</li>
+</ul>
+<blockquote>
+<div class="substitution" text="b" />
+</blockquote>
+<ol>
+<li>
+<div class="substitution" text="c" />
+</li>
+</ol>
+.
+
+Inline:
+.
+- {{a}} x
+
+> {{b}} y
+
+1. {{c}} z
+.
+<ul>
+<li><span class="substitution" text="a" /> x</li>
+</ul>
+<blockquote>
+<p><span class="substitution" text="b" /> y</p>
+</blockquote>
+<ol>
+<li><span class="substitution" text="c" /> z</li>
+</ol>
+.
+
+Tables:
+.
+| | |
+|-|-|
+|{{a}}|{{b}} c|
+.
+<table>
+<thead>
+<tr>
+<th></th>
+<th></th>
+</tr>
+</thead>
+<tbody>
+<tr>
+<td><span class="substitution" text="a" /></td>
+<td><span class="substitution" text="b" /> c</td>
+</tr>
+</tbody>
+</table>
+.