Skip to content

Commit ddaf618

Browse files
committed
Add support for <time> to children
1 parent 6f954ce commit ddaf618

File tree

4 files changed

+11
-1
lines changed

4 files changed

+11
-1
lines changed

lib/handlers/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,9 +94,10 @@ exports.small = all
9494
exports.span = all
9595
exports.sup = all
9696
exports.sub = all
97-
exports.thead = all
9897
exports.tbody = all
9998
exports.tfoot = all
99+
exports.thead = all
100+
exports.time = all
100101

101102
exports.address = wrapped
102103
exports.article = wrapped

test/fixtures/time/index.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
<p>The Cure will be celebrating their 40th anniversary on <time datetime="2018-07-07">July 7</time> in London Hyde Park.</p>
2+
3+
<p>The concert starts at <time>20:00</time> and you'll be able to enjoy the band for at least <time>2h 30m</time>.</p>

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
The Cure will be celebrating their 40th anniversary on July 7 in London Hyde Park.
2+
3+
The concert starts at 20:00 and you'll be able to enjoy the band for at least 2h 30m.

0 commit comments

Comments
 (0)