-
I am including a script in my ppt, below a minimal example and its output. ---
marp: true
---
<script>
var a = 10
var b = 11
console.log(a > b)
</script> returns: <script>
var a = 10
var b = 11
console.log(a > b)
</script> I'd like to avoid converting the |
Beta Was this translation helpful? Give feedback.
Answered by
yhatt
Jan 23, 2022
Replies: 2 comments
This comment has been hidden.
This comment has been hidden.
-
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. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
yhatt
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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
<!-- -->
.It's available in Marp CLI v1.5.2 or Marp for VS Code v1.4.7.