Skip to content

Commit 7a448f3

Browse files
committed
Add support for <dir> to list
1 parent d2b3dc2 commit 7a448f3

File tree

4 files changed

+12
-1
lines changed

4 files changed

+12
-1
lines changed

lib/handlers/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ exports.main =
7979
exports.nav =
8080
exports.section = wrapped;
8181

82-
exports.ol = exports.ul = require('./list');
82+
exports.ol = exports.ul = exports.dir = require('./list');
8383
exports.table = require('./table');
8484
exports.tr = require('./table-row');
8585
exports.th = exports.td = require('./table-cell');

test/fixtures/dir/index.html

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<dir>
2+
<li>html</li>
3+
<li>xhtml</li>
4+
<li>css</li>
5+
</dir>

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
- html
2+
- xhtml
3+
- css

0 commit comments

Comments
 (0)