Skip to content

time should be span level by default #794

@EtienneMiret

Description

@EtienneMiret

The below input:

Please, make sure you will be available               
<time datetime="2023-10-14">next Saturday</time>.

generates:

<p>Please, make sure you will be available</p>
<time datetime="2023-10-14">next Saturday</time>
<p>.</p>

(using kramdown 2.4.0 on ruby 3.2.2)

Which, well… is plain wrong.

Sure, the time element is not listed among the span level elements in the kramdown syntax, so this may be a new feature rather than a bug. Yet, those 3 lists (raw HTML, block-level elements and span-level elements) need to be updated each time the HTML standard is updated. At least until #793 is supported.

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions