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

Method constructor

lib/utilities/markdown-color.js:35–45  ·  view source on GitHub ↗
(options)

Source from the content-addressed store, hash-verified

33*/
34class MarkdownColor {
35 constructor(options) {
36 let optionTokens = (options && options.tokens) || {};
37 let renderStyles = (options && options.renderStyles) || chalk;
38 let tokens = this.generateTokens(renderStyles);
39 let markdownOptions = (options && options.markdownOptions) || {};
40 const markdown = require('markdown-it');
41 const terminal = require('markdown-it-terminal');
42 this.options = options || {};
43 this.markdown = markdown().use(terminal, markdownOptions);
44 this.tokens = merge(tokens, optionTokens);
45 }
46
47 /*
48 Lookup markdown file and render contents

Callers

nothing calls this directly

Calls 1

generateTokensMethod · 0.95

Tested by

no test coverage detected