Skip to content

Normalization should not change whitespace within <pre> and <code> blocks #18

@vassudanagunta

Description

@vassudanagunta

(each observed flaw, all related, is marked with 🚩)

🚩 Normalize tries to make pretty, indented HTML, but in so doing messes up the whitespace of <pre> blocks which should never be touched:

normalized

If Normalize is unchecked, you can see the untouched HTML output of the various Markdown parsers.

🚩 Note how the preview rendering uses the normalized version. Even if Normalize had no bugs, it would be best if the preview displayed the actual HTML shown above it.

non-normalized

CommonMark Dingus just for comparison:

block dingus


🚩 The same problem occurs for non-pre <code> bocks used for inline code:

inline normalized

Normalize is unchecked shows the correct HTML, 🚩 but as before the preview rendering uses the faulty normalized version:

inline non-normalized

CommonMark Dingus for comparison:

inline dingus

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions