MCPcopy Create free account
hub / github.com/Hashnode/starter-kit / Lexer

Function Lexer

packages/utils/renderer/marked.js:114–127  ·  view source on GitHub ↗

* Block Lexer

(options)

Source from the content-addressed store, hash-verified

112 */
113
114 function Lexer(options) {
115 this.tokens = [];
116 this.tokens.links = {};
117 this.options = options || marked.defaults;
118 this.rules = block.normal;
119
120 if (this.options.gfm) {
121 if (this.options.tables) {
122 this.rules = block.tables;
123 } else {
124 this.rules = block.gfm;
125 }
126 }
127 }
128
129 /**
130 * Expose Block Rules

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected