MCPcopy
hub / github.com/jsdoc/jsdoc / parse

Method parse

lib/jsdoc/tutorial.js:96–111  ·  view source on GitHub ↗

* Prepares source. * * @return {string} HTML source.

()

Source from the content-addressed store, hash-verified

94 * @return {string} HTML source.
95 */
96 parse() {
97 switch (this.type) {
98 // nothing to do
99 case exports.TYPES.HTML:
100 return this.content;
101
102 // markdown
103 case exports.TYPES.MARKDOWN:
104 return markdown.getParser()(this.content);
105
106 // uhm... should we react somehow?
107 // if not then this case can be merged with TYPES.HTML
108 default:
109 return this.content;
110 }
111 }
112}
113exports.Tutorial = Tutorial;
114

Callers 15

cli.jsFile · 0.45
generateTutorialFunction · 0.45
publish.jsFile · 0.45
parseTypeFunction · 0.45
constructorMethod · 0.45
constructorMethod · 0.45
jasmine-jsdoc.jsFile · 0.45
modules.jsFile · 0.45
verifyTagTypeFunction · 0.45
tutorial.jsFile · 0.45
parseFunction · 0.45
handlers.jsFile · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected