Skip to content

Commit 926c3cd

Browse files
authored
add test for sup and sub tags (#50)
* add test for sup and sub tags * add RawInline support to the lua filter * try returning a RawInline
1 parent cdae585 commit 926c3cd

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

filter/parse-html.lua

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,10 @@ function RawBlock (raw)
55
and pandoc.read(raw.text, 'html').blocks
66
or raw
77
end
8+
9+
function RawInline (raw)
10+
return raw.format:match 'html'
11+
and pandoc.RawInline(raw.text, 'html')
12+
or raw
13+
end
814

sample1.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,10 @@ Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu
7373
fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in
7474
culpa qui officia deserunt mollit anim id est laborum.
7575

76+
00 01 02 03 04<sub>16</sub>
77+
78+
a<sup>n</sup> + b<sup>n</sup> = c<sup>n</sup>
79+
7680
## Figures
7781

7882
### Computer

0 commit comments

Comments
 (0)