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

Function Parser

packages/utils/renderer/marked.js:1027–1035  ·  view source on GitHub ↗

* Parsing & Compiling

(options)

Source from the content-addressed store, hash-verified

1025 */
1026
1027 function Parser(options) {
1028 this.tokens = [];
1029 this.token = null;
1030 this.options = options || marked.defaults;
1031 this.options.renderer = this.options.renderer || new Renderer();
1032 this.renderer = this.options.renderer;
1033 this.renderer.options = this.options;
1034 this.slugger = new HeadingSlugger();
1035 }
1036
1037 /**
1038 * Static Parse Method

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected