Skip to content

Commit 321f7b0

Browse files
committed
Add support for <sub>, <sup> to children
Closes GH-24.
1 parent 9fa3011 commit 321f7b0

File tree

4 files changed

+13
-0
lines changed

4 files changed

+13
-0
lines changed

lib/handlers/index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ exports.svg =
1616
exports.template =
1717
exports.title = ignore;
1818

19+
exports.sup =
20+
exports.sub =
1921
exports.thead =
2022
exports.tbody =
2123
exports.tfoot = children;

test/fixtures/sup-sub/index.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
<p>E=mc<sup>2</sup></p>
2+
<p>f(x, n) = log<sub>4</sub>x<sup>n</sup></p>
3+
<p>H<sub>2</sub>O</p>

test/fixtures/sup-sub/index.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"fragment": true
3+
}

test/fixtures/sup-sub/index.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
E=mc2
2+
3+
f(x, n) = log4xn
4+
5+
H2O

0 commit comments

Comments
 (0)