Skip to content

Commit

Permalink
Add support for ignoring <noembed>
Browse files Browse the repository at this point in the history
Closes GH-46.

Reviewed-by: Christian Murphy <christian.murphy.42@gmail.com>
  • Loading branch information
wooorm committed May 24, 2019
1 parent c0a5ce2 commit 1f58cc6
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/handlers/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ exports.menu = ignore
exports.menuitem = ignore
exports.meta = ignore
exports.nextid = ignore
exports.noembed = ignore
exports.noframes = ignore
exports.object = ignore
exports.optgroup = ignore
Expand Down
3 changes: 3 additions & 0 deletions test/fixtures/noembed/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<embed src="file.swf" width="200" height="200">
<noembed><img src="file.gif"></noembed>
</embed>
3 changes: 3 additions & 0 deletions test/fixtures/noembed/index.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"fragment": true
}
Empty file added test/fixtures/noembed/index.md
Empty file.

0 comments on commit 1f58cc6

Please sign in to comment.