(pre: HTMLPreElement, title: string)
| 140 | } |
| 141 | |
| 142 | insertTitlePreElement(pre: HTMLPreElement, title: string) { |
| 143 | pre |
| 144 | .querySelectorAll(".obsidian-embed-code-file") |
| 145 | .forEach((x) => x.remove()); |
| 146 | |
| 147 | let titleElement = document.createElement("pre"); |
| 148 | titleElement.appendText(title); |
| 149 | titleElement.className = "obsidian-embed-code-file"; |
| 150 | titleElement.style.color = this.settings.titleFontColor; |
| 151 | titleElement.style.backgroundColor = this.settings.titleBackgroundColor; |
| 152 | pre.prepend(titleElement); |
| 153 | } |
| 154 | } |
no outgoing calls
no test coverage detected