You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to create Latex.js with existing React project. There I have to create runtime environment for latex just like playground. For which I am going through Latex documentation. In documentation I got code snippet which is not working for me. It is giving me an error can not find module 'fs' for svgdom package.
import { parse, HtmlGenerator } from 'latex.js'
import { createHTMLWindow } from 'svgdom'
global.window = createHTMLWindow()
global.document = window.document
let latex = "Hi, this is a line of text."
let generator = new HtmlGenerator({ hyphenate: false })
let doc = parse(latex, { generator: generator }).htmlDocument()
console.log(doc.documentElement.outerHTML)
Please provide detail information here or in docs.
Thank you.
The text was updated successfully, but these errors were encountered:
I want to create Latex.js with existing React project. There I have to create runtime environment for latex just like playground. For which I am going through Latex documentation. In documentation I got code snippet which is not working for me. It is giving me an error
can not find module 'fs'
forsvgdom
package.Please provide detail information here or in docs.
Thank you.
The text was updated successfully, but these errors were encountered: