Skip to content

Suggestion: don't force global katex for auto-render to work #692

@benstevens48

Description

@benstevens48

At the moment you have to declare katex globally for auto-render to work. The easiest way not to force this would be to add katex as a property of the renderMathInElement options which could be used by the user to supply an instance of katex, although this is perhaps slightly cumbersome. Alternatively you could do a conditional require if require is defined and katex is not defined globally, using a relative path so katex would be pulled in automatically assuming the directory structure is correct (and make sure katex isn't bundled during the build).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions