Skip to content

Commit c027a94

Browse files
committed
Add support for <hr> to thematicBreak
1 parent 068e536 commit c027a94

File tree

5 files changed

+13
-0
lines changed

5 files changed

+13
-0
lines changed

handlers/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ exports.img = require('./image');
1111
exports.br = require('./break');
1212

1313
exports.p = require('./paragraph');
14+
exports.hr = require('./thematic-break');
1415
exports.pre = require('./code');
1516

1617
exports.h1 = exports.h2 = exports.h3 =

handlers/thematic-break.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
'use strict';
2+
3+
module.exports = thematicBreak;
4+
5+
function thematicBreak(h, node) {
6+
return h(node, 'thematicBreak');
7+
}

tests/fixtures/hr/index.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<hr>

tests/fixtures/hr/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+
}

tests/fixtures/hr/index.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* * *

0 commit comments

Comments
 (0)