Skip to content

<mark> treated as block tag #298

Description

@ndarville

Using Seems to have the result of removing <p> tags when writing in Jekyll.

Markdown input:

Lorem ipsum.

<mark>Test</mark>

<mark>Foobar</mark>

HTML output:

<p>Lorem ipsum.</p>

<mark>Test</mark>

<mark>Foobar</mark>
$ bundle exec kramdown -v
1.9.0

I thought it might have to do with the tag being treated as an unknown tag or a block tag given the behaviour, but the main problem is that using markdown=“1" and markdown="span" doesn’t fix it either.

I take it this can’t be expected behaviour, at least if you can’t mitigate it with the markdown attribute. Or does is it “not working, as expected”, if you will? :)

I’ll be using <span class="highlight"> for now, but that’s obviously not ideal for a number of reasons.

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions