Skip to content

Commit 1f58cc6

Browse files
authored
Add support for ignoring <noembed>
Closes GH-46. Reviewed-by: Christian Murphy <[email protected]>
1 parent c0a5ce2 commit 1f58cc6

File tree

4 files changed

+7
-0
lines changed

4 files changed

+7
-0
lines changed

lib/handlers/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ exports.menu = ignore
5858
exports.menuitem = ignore
5959
exports.meta = ignore
6060
exports.nextid = ignore
61+
exports.noembed = ignore
6162
exports.noframes = ignore
6263
exports.object = ignore
6364
exports.optgroup = ignore

test/fixtures/noembed/index.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
<embed src="file.swf" width="200" height="200">
2+
<noembed><img src="file.gif"></noembed>
3+
</embed>

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

Whitespace-only changes.

0 commit comments

Comments
 (0)