Skip to content

Commit 6f954ce

Browse files
committed
Add support for <multicol> to block children
1 parent 279da27 commit 6f954ce

File tree

4 files changed

+27
-0
lines changed

4 files changed

+27
-0
lines changed

lib/handlers/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@ exports.header = wrapped
111111
exports.hgroup = wrapped
112112
exports.html = wrapped
113113
exports.main = wrapped
114+
exports.multicol = wrapped
114115
exports.nav = wrapped
115116
exports.picture = wrapped
116117
exports.section = wrapped

test/fixtures/multicol/index.html

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<h1>News</h1>
2+
3+
<multicol cols=3>
4+
<h2>Alpha</h2>
5+
<p>Lorem ipsum dolor sit amet</p>
6+
<h2>Bravo</h2>
7+
<p>Lorem ipsum dolor sit amet</p>
8+
<h2>Charlie</h2>
9+
<p>Lorem ipsum dolor sit amet</p>
10+
</multicol>

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

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# News
2+
3+
## Alpha
4+
5+
Lorem ipsum dolor sit amet
6+
7+
## Bravo
8+
9+
Lorem ipsum dolor sit amet
10+
11+
## Charlie
12+
13+
Lorem ipsum dolor sit amet

0 commit comments

Comments
 (0)