@@mermshaus
<script type="text/markdown"> [...] </script>
Ich war mir einerseits nicht sicher, dass das möglich ist. Das ist nicht das, was ich spontan mit der Semantik von einem Element namens
script
verbinde.
Die HTML-Spec ist sich da aber ziemlich sicher:
“The script
element allows authors to include dynamic script and data blocks in their documents. […] Setting the [type
] attribute to any other value [than a JavaScript MIME type or "module"
] means that the script is a data block, which is not processed.”
LLAP 🖖
--
“I love to go to JS conferences to speak about how to avoid using JavaScript. Please learn CSS & HTML to reduce your JS code bloat.” —Estelle Weyl
“I love to go to JS conferences to speak about how to avoid using JavaScript. Please learn CSS & HTML to reduce your JS code bloat.” —Estelle Weyl