Skip to content

The <pre> block is rendered in FlowDocument as a single line #3

@rzinnatullin

Description

@rzinnatullin

Assume we have the following HTML:

<p>Code <strong>goes</strong> <em>next</em></p>
<div style="color:#DADADA;background-color:#1E1E1E;"><pre>
<span style="color:#569CD6;">using</span> System;
<span style="color:#569CD6;">namespace</span> TestApp
</pre></div>
<p>That was a code.</p>
<p>This is <code>inline</code> code.</p>

This is how it's rendered in Google Chrome:
image

And this is how it's rendered in FlowDocument after HTML > DOM > FlowDocument conversion:
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions