learning html and css back when IE6 was a thing has scarred me

@andrew @hrbrmstr newbie quarto question: what does the equals sign before the html do?

@capbri @hrbrmstr That creates a pandoc RawBlock, which prevents the contents from getting parsed as Markdown (see quarto.org/docs/authoring/tabl for an example)

@capbri @hrbrmstr Like, if you just included regular HTML like this in a Markdown file:

<div>
<p>blah</p>
</div>

when pandoc renders it, it would see the four spaces in front of <p> and treat that line as code and render it as <pre><code><p>blah</p></code></pre>

If you wrap it in a raw block, pandoc won't parse it as markdown and it'll go straight into the HTML document as is

```{=html}
<div>
<p>blah</p>
</div>
```

@capbri @hrbrmstr It works for all other output languages too, like special latex macros or whatever

```{=latex}
\newcommand{...}
{whatever}
```

Sign in to participate in the conversation
Qoto Mastodon

QOTO: Question Others to Teach Ourselves
An inclusive, Academic Freedom, instance
All cultures welcome.
Hate speech and harassment strictly forbidden.