Fix html entities: support \<entity>{} and prevent partial replacements
This commit is contained in:
parent
7344ea2e86
commit
8e11cc3db0
4 changed files with 447 additions and 419 deletions
7
org/testdata/inline.html
vendored
7
org/testdata/inline.html
vendored
|
@ -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> & <code class="verbatim">\pi{}</code> => π & π</li>
|
||||
<li><code class="verbatim">\angle{}</code> & <code class="verbatim">\angle</code> & <code class="verbatim">\ang</code> <code class="verbatim">></code> ∠ ∠ ∠</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
|
|
3
org/testdata/inline.org
vendored
3
org/testdata/inline.org
vendored
|
@ -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
|
||||
|
|
3
org/testdata/inline.pretty_org
vendored
3
org/testdata/inline.pretty_org
vendored
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue