Skip to content

Extract hardcoded functions from strings into real functions #15

Description

@jonpalmisc

Some plugins have functions written inside strings to be placed inside elements, which is kinda sketchy. It would be better to make them part of the code, and get their string representations with Function.prototype.toString()

initScript.text = "mermaid.initialize({ flowchart: { htmlLabels: false } });";

`document.addEventListener("DOMContentLoaded",function(){renderMathInElement(document.body,{delimiters:[{left:"$$",right:"$$",display:!0},{left:"$",right:"$",display:!1}]})});`

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions