Skip to content
This repository was archived by the owner on Jan 26, 2019. It is now read-only.

Commit 0050c46

Browse files
committed
Revert "tests for HTML block support (evilstreak#34)"
This reverts commit c61053e.
1 parent 0da3481 commit 0050c46

File tree

8 files changed

+0
-39
lines changed

8 files changed

+0
-39
lines changed

lib/markdown.js

-9
Original file line numberDiff line numberDiff line change
@@ -302,11 +302,6 @@ Markdown.dialects = {};
302302
**/
303303
Markdown.dialects.Gruber = {
304304
block: {
305-
htmlBlock: function htmlBlock( block, next ) {
306-
if ( block.match( /^<\w/ ) && block.match( /\/>\s*$|<\/\s*\w+\s*>\s*$/ ) )
307-
return [["__RAW", block.toString()]];
308-
},
309-
310305
atxHeader: function atxHeader( block, next ) {
311306
var m = block.match( /^(#{1,6})\s*(.*?)\s*#*\s*(?:\n|$)/ );
312307

@@ -1419,10 +1414,6 @@ function render_tree( jsonml ) {
14191414
return escapeHTML( jsonml );
14201415
}
14211416

1422-
if ( jsonml[0] == "__RAW" ) {
1423-
return jsonml[1];
1424-
}
1425-
14261417
var tag = jsonml.shift(),
14271418
attributes = {},
14281419
content = [];

test/features.t.js

-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,6 @@ dialects.Gruber = [
6363
"emphasis",
6464
"headers",
6565
"horizontal_rules",
66-
"html_blocks",
6766
"images",
6867
"linebreaks",
6968
"links",

test/features/code/html_block.json

-8
This file was deleted.

test/features/code/html_block.text

-3
This file was deleted.

test/features/html_blocks/html_block.json

-6
This file was deleted.

test/features/html_blocks/html_block.text

-3
This file was deleted.

test/features/html_blocks/self_closing.json

-6
This file was deleted.

test/features/html_blocks/self_closing.text

-3
This file was deleted.

0 commit comments

Comments
 (0)