Skip to content
Olivier Nizet edited this page Oct 4, 2017 · 2 revisions

Preformatted text (<pre>)

Inside a <pre> tag, the spaces are conserved.

<pre>
Text in a pre element
is displayed in a fixed-width
font, and it preserves
both      spaces and
line breaks
</pre>

By default, the converter renders them as a single table but you can turn this option off. This is useful for piece of code like what you see in the blog nowadays.

converter.RenderPreAsTable = false;