Skip to content

Detect duplicate HTML attributes #201

@winniehell

Description

@winniehell

Current behavior is that duplicate attributes in HTML tags overwrite previous values:

$ kramdown -ihtml -okramdown <<<'<a href="a" href="b">c</a>'
[c](b)
$ kramdown -ihtml -okramdown <<<'<img src="a" src="b" alt="c" alt="d"/>'
![d](b)

I would at least expect a warning in such a case.

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions