Fix html entities: support \<entity>{} and prevent partial replacements

This commit is contained in:
Niklas Fasching 2022-04-28 18:09:42 +02:00
parent 7344ea2e86
commit 8e11cc3db0
4 changed files with 447 additions and 419 deletions

View file

@ -69,4 +69,11 @@ not emphasized/</li>
<p><code class="verbatim">#+MACROs</code>: <p><h1>yolo</h1></p>
</p>
</li>
<li>
<p>org entities</p>
<ul>
<li><code class="verbatim">\pi</code> &amp; <code class="verbatim">\pi{}</code> =&gt; π &amp; π</li>
<li><code class="verbatim">\angle{}</code> &amp; <code class="verbatim">\angle</code> &amp; <code class="verbatim">\ang</code> <code class="verbatim">&gt;</code> ∠ ∠ ∠</li>
</ul>
</li>
</ul>

View file

@ -51,3 +51,6 @@
- [[example_interpolate_h:tag value with specical chars % : &]] (w/o tag [[example_interpolate_h]])
- =#+MACROs=: {{{headline(yolo)}}}
#+MACRO: headline @@html:<h1>$1</h1>@@
- org entities
- =\pi= & =\pi{}= => \pi & \pi{}
- =\angle{}= & =\angle= & =\ang= =>= \angle{} \angle \ang

View file

@ -51,3 +51,6 @@
- [[example_interpolate_h:tag value with specical chars % : &]] (w/o tag [[example_interpolate_h]])
- =#+MACROs=: {{{headline(yolo)}}}
#+MACRO: headline @@html:<h1>$1</h1>@@
- org entities
- =\pi= & =\pi{}= => \pi & \pi{}
- =\angle{}= & =\angle= & =\ang= =>= \angle{} \angle \ang