-
Let's say I want to include a Google map with some pins, lines o polygons on it (not an image) or maybe a D3js graph to show show charts, or an example for graph theory, or some sort of dynamic data structure visualization... I may also see a use case to get dynamic data from an API when the most updated value is needed 🤔 or when you want to show info as the number of repos or stars, or maybe the last tweet or an specific tweet (I don't now if they are still called tweets 😅) from a user. I haven't tried yet, but, is there a way to use inline or external js file to get the proposed result? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
By the CommonMark spec, Markdown actually allows to contain the For security reasons, Marp tools are disallowed containing the most of HTML tags by default, including
#250 might be helpful if you want to use the inline script. |
Beta Was this translation helpful? Give feedback.
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.--html
option to allow HTML elements.Markdown > Marp: Enable HTML
from the extension setting. You may also have to relax the security setting of VS Code's Markdown preview to run the script.#250 might be helpful if you want to use the inline script.