Skip to content

Commit cac60e8

Browse files
committed
Add support for <abbr>, <acronym> to children
1 parent 607462d commit cac60e8

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.abbr =
20+
exports.acronym =
1921
exports.sup =
2022
exports.sub =
2123
exports.thead =

test/fixtures/abbr-acronym/index.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
<p>We use <abbr title="Hypertext Markup Language">HTML</abbr> to structure our web documents.</p>
2+
<p>I think <abbr title="Reverend">Rev.</abbr> Green did it in the kitchen with the chainsaw.</p>
3+
<p>The <acronym title="World Wide Web">WWW</acronym> is only a component of the Internet.</p>

test/fixtures/abbr-acronym/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/abbr-acronym/index.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
We use HTML to structure our web documents.
2+
3+
I think Rev. Green did it in the kitchen with the chainsaw.
4+
5+
The WWW is only a component of the Internet.

0 commit comments

Comments
 (0)