MCPcopy
hub / github.com/docsifyjs/docsify / _matchNotCompileLink

Method _matchNotCompileLink

src/core/render/compiler.js:182–193  ·  view source on GitHub ↗
(link)

Source from the content-addressed store, hash-verified

180 }
181
182 _matchNotCompileLink(link) {
183 const links = this.config.noCompileLinks || [];
184
185 for (let i = 0; i < links.length; i++) {
186 const n = links[i];
187 const re = cachedLinks[n] || (cachedLinks[n] = new RegExp(`^${n}$`));
188
189 if (re.test(link)) {
190 return link;
191 }
192 }
193 }
194
195 _initRenderer() {
196 const renderer = new marked.Renderer();

Callers 1

linkCompilerFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected