Skip to content

Allow <div> inside <pre> #479

@blat

Description

@blat

Hi!

I have an issue with some HTML containing syntax highlighted code. My <pre> tags contains <span> and <div>, but... Tidy doesn't allow <div> inside a <pre> :(

For example, input HTML:

<pre>one<div>two</div>three</pre>

Tidy output:

<pre>one</pre>
<div>two</div>
<pre>three</pre>

The result is totally different!

FYI, in error buffer:

line 1 column 1 - Warning: missing </pre> before <div>
line 1 column 17 - Warning: inserting implicit <pre>

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions