(codeElement: HTMLElement)
| 213 | export const isInsideWysiwygCodeMirror = isInsideCodeMirror; |
| 214 | |
| 215 | export const getCodeLanguageName = (codeElement: HTMLElement) => { |
| 216 | const match = codeElement.className.match(/language-([^\s]+)/); |
| 217 | return match ? match[1] : ""; |
| 218 | }; |
| 219 | |
| 220 | /** @deprecated use getCodeLanguageName */ |
| 221 | const getLanguageName = getCodeLanguageName; |
no outgoing calls
no test coverage detected