MCPcopy Create free account
hub / github.com/socketstream/socketstream / Lexer

Function Lexer

docs/js/marked.js:94–107  ·  view source on GitHub ↗

* Block Lexer

(options)

Source from the content-addressed store, hash-verified

92 */
93
94function 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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected