Skip to content

Extract hardcoded functions from strings into real functions #15

@jonpalmisc

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}]})});`

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions