Fix superscript

This commit is contained in:
Niklas Fasching 2018-12-03 19:53:27 +01:00
parent 213da0beff
commit 6de03e0d13
3 changed files with 7 additions and 1 deletions

View file

@ -20,7 +20,7 @@ var emphasisTags = map[string][]string{
"=": []string{`<code class="verbatim">`, "</code>"}, "=": []string{`<code class="verbatim">`, "</code>"},
"_": []string{`<span style="text-decoration: underline;">`, "</span>"}, "_": []string{`<span style="text-decoration: underline;">`, "</span>"},
"_{}": []string{"<sub>", "</sub>"}, "_{}": []string{"<sub>", "</sub>"},
"^{}": []string{"<super>", "</super>"}, "^{}": []string{"<sup>", "</sup>"},
} }
var listTags = map[string][]string{ var listTags = map[string][]string{

View file

@ -147,6 +147,11 @@ links with slashes do not become <em>emphasis</em>: <a href="https://somelinksho
</li> </li>
<li> <li>
<p> <p>
subscript<sub>sub</sub> and superscript<sup>super</sup>
</p>
</li>
<li>
<p>
links links
</p> </p>
<ol> <ol>

View file

@ -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/ - links with slashes do not become /emphasis/: [[https://somelinkshouldntrenderaccidentalemphasis.com]]/ /emphasis/
- _underlined_ *bold* =verbatim= ~code~ +strikethrough+ - _underlined_ *bold* =verbatim= ~code~ +strikethrough+
- *bold string with an *asterisk inside* - *bold string with an *asterisk inside*
- subscript_{sub} and superscript^{super}
- links - links
1. regular link [[https://example.com]] link without description 1. regular link [[https://example.com]] link without description
2. regular link [[https://example.com][example.com]] link with description 2. regular link [[https://example.com][example.com]] link with description