()
| 13 | |
| 14 | let highlighterPromise |
| 15 | const getHighlighter = () => { |
| 16 | if (!highlighterPromise) { |
| 17 | highlighterPromise = createHighlighter({ |
| 18 | themes: ['github-light', 'github-dark'], |
| 19 | langs: ['plaintext'] |
| 20 | }).catch((error) => { |
| 21 | highlighterPromise = undefined |
| 22 | throw error |
| 23 | }) |
| 24 | } |
| 25 | return highlighterPromise |
| 26 | } |
| 27 | |
| 28 | const normalizeHtmlTagQuotes = (content) => { |
| 29 | const source = String(content || '') |
no outgoing calls
no test coverage detected