Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extract hardcoded functions from strings into real functions #15

Open
jonpalmisc opened this issue Jan 26, 2021 · 0 comments
Open

Extract hardcoded functions from strings into real functions #15

jonpalmisc opened this issue Jan 26, 2021 · 0 comments
Assignees
Milestone

Comments

@jonpalmisc
Copy link
Owner

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

@jonpalmisc jonpalmisc self-assigned this Jan 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant