* Block Lexer
(options)
| 92 | */ |
| 93 | |
| 94 | function Lexer(options) { |
| 95 | this.tokens = []; |
| 96 | this.tokens.links = {}; |
| 97 | this.options = options || marked.defaults; |
| 98 | this.rules = block.normal; |
| 99 | |
| 100 | if (this.options.gfm) { |
| 101 | if (this.options.tables) { |
| 102 | this.rules = block.tables; |
| 103 | } else { |
| 104 | this.rules = block.gfm; |
| 105 | } |
| 106 | } |
| 107 | } |
| 108 | |
| 109 | /** |
| 110 | * Expose Block Rules |
nothing calls this directly
no outgoing calls
no test coverage detected