MCPcopy Create free account
hub / github.com/ember-cli/ember-cli / render

Method render

lib/utilities/markdown-color.js:71–82  ·  view source on GitHub ↗
(string, options)

Source from the content-addressed store, hash-verified

69 @return {String}
70 */
71 render(string, options) {
72 let indent = (options && options.indent) || '';
73 let input = this.markdown.render(string);
74 let styles = Object.keys(this.tokens);
75
76 input = input.replace(/^/gm, indent);
77 styles.reverse().map((style) => {
78 input = input.replace(this.tokens[style].pattern, this.tokens[style].render);
79 });
80 input = input.replace(/~\^(.*)~\^/g, escapeToken);
81 return input;
82 }
83
84 /*
85 Generate default style tokens

Callers 5

renderFileMethod · 0.95
_writeFileFunction · 0.80
convertToJSFunction · 0.80
file-info-test.jsFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected