mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Fix window is not defined for parsing code blocks
This commit is contained in:
parent
20ea93168f
commit
e76fb02f43
1 changed files with 1 additions and 1 deletions
|
|
@ -257,7 +257,7 @@ export const parsePreparedContent = async (
|
|||
console.log(e.textContent)
|
||||
if (e.textContent) {
|
||||
const att = hljs.highlightAuto(e.textContent)
|
||||
const code = window.document.createElement('code')
|
||||
const code = dom.createElement('code')
|
||||
const langClass =
|
||||
`hljs language-${att.language}` +
|
||||
(att.second_best?.language
|
||||
|
|
|
|||
Loading…
Reference in a new issue