Skip to content

Commit 16ebdd7

Browse files
committed
Add support for <picture> to block-content
1 parent b6dc0a1 commit 16ebdd7

File tree

4 files changed

+10
-0
lines changed

4 files changed

+10
-0
lines changed

lib/handlers/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ exports.hgroup = wrapped
7777
exports.html = wrapped
7878
exports.main = wrapped
7979
exports.nav = wrapped
80+
exports.picture = wrapped
8081
exports.section = wrapped
8182

8283
exports.base = require('./base')

test/fixtures/picture/index.html

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<picture>
2+
<source srcset="example-big.png" media="(min-width: 1000px)">
3+
<source srcset="example.svg" type="image/svg+xml">
4+
<img src="example.png">
5+
</picture>

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
![](example.png)

0 commit comments

Comments
 (0)