What's the distinction between "raw HTML" and a HTML code block? #334
-
|
It looks like, if I'm writing an article in Djot about javascript, or Python, or Typst, or whatever, I can put code in a code block. But what if I'm writing an article about HTML? The readme suggests that a HTML code block is for passing through raw HTML, which is not something I'm likely to want to do. Or maybe I'm reading the readme wrong. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
|
A code block is for presenting code in a document (e.g. to talk about it). So, the HTML code block will be rendered as a |
Beta Was this translation helpful? Give feedback.
A code block is for presenting code in a document (e.g. to talk about it). So, the HTML code block will be rendered as a
<pre>element,&characters will be escaped as&, and so on. A raw block, by contrast, just gets passed verbatim to the output format.