Skip to content

HTML Reader: <br> inside <pre> tags is ignored. #1620

@mpickering

Description

@mpickering

From this stack overflow question.

Input

<pre>
line1 <br> line2
</pre>

command - pandoc -f html -t native

output

[CodeBlock ("",[],[]) "line1  line2"]

expected

[CodeBlock ("", [], []) "line1\nline2"]

Fix: Modify the pCodeBlock function in the HTML Reader.

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