git.iko.soy/typeable/pandoc
on bc3caaa help sign in
156 lines 3.9 kB history raw
1# Rendering small caps, superscripts and subscripts with and without `raw_html`
3## Small caps
5```
6% pandoc --wrap=none -f latex -t commonmark-raw_html
7This has \textsc{small caps} in it.
8^D
9This has SMALL CAPS in it.
10```
12```
13% pandoc --wrap=none -f latex -t commonmark+raw_html
14This has \textsc{small caps} in it.
15^D
16This has <span class="smallcaps">small caps</span> in it.
17```
18```
20```
21% pandoc --wrap=none -f latex -t markdown_strict+raw_html
22This has \textsc{small caps} in it.
23^D
24This has <span class="smallcaps">small caps</span> in it.
25```
27## Strikeout
29```
30% pandoc --wrap=none -f html -t commonmark-raw_html-strikeout
31This has <s>strikeout</s> in it.
32^D
33This has strikeout in it.
35```
36% pandoc --wrap=none -f html -t commonmark+raw_html-strikeout
37This has <s>strikeout</s> in it.
38^D
39This has <s>strikeout</s> in it.
40```
42```
43% pandoc --wrap=none -f html -t commonmark-raw_html+strikeout
44This has <s>strikeout</s> in it.
45^D
46This has ~~strikeout~~ in it.
47```
49```
50% pandoc --wrap=none -f html -t commonmark+raw_html+strikeout
51This has <s>strikeout</s> in it.
52^D
53This has ~~strikeout~~ in it.
54```
56```
57% pandoc --wrap=none -f html -t markdown_strict-raw_html-strikeout
58This has <s>strikeout</s> in it.
59^D
60This has strikeout in it.
61```
63```
64% pandoc --wrap=none -f html -t markdown_strict+raw_html-strikeout
65This has <s>strikeout</s> in it.
66^D
67This has <s>strikeout</s> in it.
68```
70```
71% pandoc --wrap=none -f html -t markdown_strict-raw_html+strikeout
72This has <s>strikeout</s> in it.
73^D
74This has ~~strikeout~~ in it.
75```
77```
78% pandoc --wrap=none -f html -t markdown_strict+raw_html+strikeout
79This has <s>strikeout</s> in it.
80^D
81This has ~~strikeout~~ in it.
82```
84## Superscript
86```
87% pandoc --wrap=none -f html -t commonmark-raw_html
88This has <sup>superscript</sup> in it and <sup>2 3</sup> again. With emphasis: <sup><em>2</em> 3</sup>. With letters: <sup>foo</sup>. With a span: <sup><span class=foo>2</span></sup>.
89^D
90This has ^(superscript) in it and ² ³ again. With emphasis: ^(*2* 3). With letters: ^(foo). With a span: ².
91```
93```
94% pandoc --wrap=none -f html -t commonmark+raw_html
95This has <sup>superscript</sup> in it and <sup>2</sup> again.
96^D
97This has <sup>superscript</sup> in it and <sup>2</sup> again.
98```
100```
101% pandoc --wrap=none -f html -t markdown_strict-raw_html-superscript
102This has <sup>superscript</sup> in it and <sup>2</sup> again.
103^D
104This has ^(superscript) in it and ² again.
105```
107```
108% pandoc --wrap=none -f html -t markdown_strict+raw_html-superscript
109This has <sup>superscript</sup> in it and <sup>2</sup> again.
110^D
111This has <sup>superscript</sup> in it and <sup>2</sup> again.
112```
114```
115% pandoc --wrap=none -f html -t markdown_strict+raw_html+superscript
116This has <sup>superscript</sup> in it and <sup>2</sup> again.
117^D
118This has ^superscript^ in it and ^2^ again.
119```
121## Subscript
123```
124% pandoc --wrap=none -f html -t commonmark-raw_html
125This has <sub>subscript</sub> in it and <sub>2 3</sub> again. With emphasis: <sub><em>2</em> 3</sub>. With letters: <sub>foo</sub>. With a span: <sub><span class=foo>2</span></sub>.
126^D
127This has \_(subscript) in it and ₂ ₃ again. With emphasis: \_(*2* 3). With letters: \_(foo). With a span: ₂.
128```
130```
131% pandoc --wrap=none -f html -t commonmark+raw_html
132This has <sub>subscript</sub> in it and <sub>2</sub> again.
133^D
134This has <sub>subscript</sub> in it and <sub>2</sub> again.
135```
137```
138% pandoc --wrap=none -f html -t markdown_strict-raw_html-subscript
139This has <sub>subscript</sub> in it and <sub>2</sub> again.
140^D
141This has _(subscript) in it and ₂ again.
142```
144```
145% pandoc --wrap=none -f html -t markdown_strict+raw_html-subscript
146This has <sub>subscript</sub> in it and <sub>2</sub> again.
147^D
148This has <sub>subscript</sub> in it and <sub>2</sub> again.
149```
151```
152% pandoc --wrap=none -f html -t markdown_strict+raw_html+subscript
153This has <sub>subscript</sub> in it and <sub>2</sub> again.
154^D
155This has ~subscript~ in it and ~2~ again.
156```