Skip to content

Avoid escaping <script> content #250

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

You must be logged in to vote

I've worked for providing a better solution at marp-team/marp-core#282.

In the latest Marp tools, you can disable encoding HTML special characters by wrapping script in HTML comment <!-- -->.

<script>
<!--
var a = 10
var b = 11
console.log(a > b)
-->
</script>

It's available in Marp CLI v1.5.2 or Marp for VS Code v1.4.7.

Replies: 2 comments

This comment has been hidden.

Comment options

You must be logged in to vote
0 replies
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