yuin / goldmark-highlighting

A Syntax highlighting extension for the goldmark markdown parser.
MIT License
100 stars 14 forks source link

Proposal - Improve attribute parsing #28

Closed jmooring closed 2 years ago

jmooring commented 2 years ago

Users are accustomed to quoting HTML attributes, regardless of type, because many have no concept of type. And the browser doesn't care. I understand this is markdown, not HTML, but there is a similar expectation from non-developer users.

With this module, quoting or not quoting an attribute makes a big difference.

Example Notes
{linenostart="1"} Panic (see #27)
{linenos="false"} Effectively setting it to true
{hl_lines="[2]"} Ignored
yuin commented 2 years ago

This is not only for this extension, but for the goldmark core.

Could you create a new discussion in yuin/goldmark?