(el: HTMLElement, title: string)
| 98 | } |
| 99 | |
| 100 | addTitleLivePreview(el: HTMLElement, title: string) { |
| 101 | const codeElm = el.querySelector('pre > code') |
| 102 | if (!codeElm) { return } |
| 103 | const pre = codeElm.parentElement as HTMLPreElement; |
| 104 | |
| 105 | this.insertTitlePreElement(pre, title) |
| 106 | } |
| 107 | |
| 108 | addTitle(el: HTMLElement, context: MarkdownPostProcessorContext) { |
| 109 | let codeElm = el.querySelector('pre > code') |
no test coverage detected