Skip to content

add test for sup and sub tags #50

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Dec 16, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions filter/parse-html.lua
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,10 @@ function RawBlock (raw)
and pandoc.read(raw.text, 'html').blocks
or raw
end

function RawInline (raw)
return raw.format:match 'html'
and pandoc.RawInline(raw.text, 'html')
or raw
end

4 changes: 4 additions & 0 deletions sample1.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,10 @@ Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu
fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in
culpa qui officia deserunt mollit anim id est laborum.

00 01 02 03 04<sub>16</sub>

a<sup>n</sup> + b<sup>n</sup> = c<sup>n</sup>

## Figures

### Computer
Expand Down