|
@ -12,6 +12,7 @@ var Ruler = require('./ruler'); |
|
|
var _rules = [ |
|
|
var _rules = [ |
|
|
// First 2 params - rule name & source. Secondary array - list of rules,
|
|
|
// First 2 params - rule name & source. Secondary array - list of rules,
|
|
|
// which can be terminated by this one.
|
|
|
// which can be terminated by this one.
|
|
|
|
|
|
[ 'table', require('./rules_block/table'), [ 'paragraph', 'reference' ] ], |
|
|
[ 'code', require('./rules_block/code') ], |
|
|
[ 'code', require('./rules_block/code') ], |
|
|
[ 'fence', require('./rules_block/fence'), [ 'paragraph', 'reference', 'blockquote', 'list' ] ], |
|
|
[ 'fence', require('./rules_block/fence'), [ 'paragraph', 'reference', 'blockquote', 'list' ] ], |
|
|
[ 'blockquote', require('./rules_block/blockquote'), [ 'paragraph', 'reference', 'list' ] ], |
|
|
[ 'blockquote', require('./rules_block/blockquote'), [ 'paragraph', 'reference', 'list' ] ], |
|
@ -21,7 +22,6 @@ var _rules = [ |
|
|
[ 'heading', require('./rules_block/heading'), [ 'paragraph', 'reference', 'blockquote' ] ], |
|
|
[ 'heading', require('./rules_block/heading'), [ 'paragraph', 'reference', 'blockquote' ] ], |
|
|
[ 'lheading', require('./rules_block/lheading') ], |
|
|
[ 'lheading', require('./rules_block/lheading') ], |
|
|
[ 'html_block', require('./rules_block/html_block'), [ 'paragraph', 'reference', 'blockquote' ] ], |
|
|
[ 'html_block', require('./rules_block/html_block'), [ 'paragraph', 'reference', 'blockquote' ] ], |
|
|
[ 'table', require('./rules_block/table'), [ 'paragraph', 'reference' ] ], |
|
|
|
|
|
[ 'paragraph', require('./rules_block/paragraph') ] |
|
|
[ 'paragraph', require('./rules_block/paragraph') ] |
|
|
]; |
|
|
]; |
|
|
|
|
|
|
|
|