Skip to content

Commit d5fdbc6

Browse files
committed
Add more elements that map to their content
* `<bdi>` * `<bdo>` * `<big>` * `<blink>` * `<cite>` * `<data>` * `<details>` * `<dfn>` * `<font>` * `<meter>` * `<nobr>` * `<output>` * `<progress>` * `<slot>` * `<small>` * `<span>` ...and `<summary>` to a wrapped node.
1 parent 52fda67 commit d5fdbc6

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+137
-1
lines changed

lib/handlers/index.js

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,22 @@ exports.title = ignore;
4141

4242
exports.abbr =
4343
exports.acronym =
44+
exports.bdi =
45+
exports.bdo =
46+
exports.big =
47+
exports.blink =
48+
exports.cite =
49+
exports.data =
50+
exports.details =
51+
exports.dfn =
52+
exports.font =
53+
exports.meter =
54+
exports.nobr =
55+
exports.output =
56+
exports.progress =
57+
exports.slot =
58+
exports.small =
59+
exports.span =
4460
exports.sup =
4561
exports.sub =
4662
exports.thead =
@@ -71,7 +87,7 @@ exports.code = exports.kbd = exports.samp = exports.tt = exports.var = require('
7187
exports.img = require('./image');
7288
exports.br = require('./break');
7389

74-
exports.p = require('./paragraph');
90+
exports.p = exports.summary = require('./paragraph');
7591
exports.hr = require('./thematic-break');
7692
exports.xmp = exports.pre = require('./code');
7793
exports.blockquote = require('./blockquote');

test/fixtures/bdi-bdo/index.html

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<p dir="ltr">This arabic word <bdi>ARABIC_PLACEHOLDER</bdi>
2+
is automatically displayed right-to-left.</p>
3+
4+
<p>This text will go left to right.</p>
5+
<p><bdo dir="rtl">This text will go right
6+
to left.</bdo></p>

test/fixtures/bdi-bdo/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/bdi-bdo/index.md

Lines changed: 5 additions & 0 deletions

test/fixtures/big/index.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<p>First. <big>Bigger</big>.</p>

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

Lines changed: 1 addition & 0 deletions

test/fixtures/blink/index.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<blink>Why</blink> would somebody use this?

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

Lines changed: 1 addition & 0 deletions

0 commit comments

Comments
 (0)