Skip to content

Is there a way to include inline js? #483

Answered by yhatt
j2deme asked this question in Q&A
Discussion options

You must be logged in to vote

By the CommonMark spec, Markdown actually allows to contain the <script> element, to use both of inline and external scripts.
https://spec.commonmark.org/0.30/#example-170

For security reasons, Marp tools are disallowed containing the most of HTML tags by default, including <script>. But you can allow using HTML tags by the preferences for each tools.

#250 might be helpful if you want to use the inline script.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@j2deme
Comment options

Answer selected by yhatt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants