Fix superscript
This commit is contained in:
parent
213da0beff
commit
6de03e0d13
3 changed files with 7 additions and 1 deletions
|
@ -20,7 +20,7 @@ var emphasisTags = map[string][]string{
|
|||
"=": []string{`<code class="verbatim">`, "</code>"},
|
||||
"_": []string{`<span style="text-decoration: underline;">`, "</span>"},
|
||||
"_{}": []string{"<sub>", "</sub>"},
|
||||
"^{}": []string{"<super>", "</super>"},
|
||||
"^{}": []string{"<sup>", "</sup>"},
|
||||
}
|
||||
|
||||
var listTags = map[string][]string{
|
||||
|
|
5
org/testdata/example.html
vendored
5
org/testdata/example.html
vendored
|
@ -147,6 +147,11 @@ links with slashes do not become <em>emphasis</em>: <a href="https://somelinksho
|
|||
</li>
|
||||
<li>
|
||||
<p>
|
||||
subscript<sub>sub</sub> and superscript<sup>super</sup>
|
||||
</p>
|
||||
</li>
|
||||
<li>
|
||||
<p>
|
||||
links
|
||||
</p>
|
||||
<ol>
|
||||
|
|
1
org/testdata/example.org
vendored
1
org/testdata/example.org
vendored
|
@ -54,6 +54,7 @@ this one is cheating a little as tags are ALWAYS printed right aligned to a give
|
|||
- links with slashes do not become /emphasis/: [[https://somelinkshouldntrenderaccidentalemphasis.com]]/ /emphasis/
|
||||
- _underlined_ *bold* =verbatim= ~code~ +strikethrough+
|
||||
- *bold string with an *asterisk inside*
|
||||
- subscript_{sub} and superscript^{super}
|
||||
- links
|
||||
1. regular link [[https://example.com]] link without description
|
||||
2. regular link [[https://example.com][example.com]] link with description
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue