mity / md4c

C Markdown parser. Fast. SAX-like interface. Compliant to CommonMark specification.
MIT License
776 stars 146 forks source link

Attributes of `CommonMark.dtd` omitted by parser #13

Closed tin-pot closed 7 years ago

tin-pot commented 7 years ago

When porting some code (which up to now used cmark) to MD4C I missed some information from the parser which is represented as attributes in the CommonMark DTD:

  1. In the details for MD_BLOCK_UL, the information whether the list is "tight" or "loose" (attribute tight (true|false).

  2. In the details for MD_BLOCK_OL, the information whether the list is "tight" or "loose" (attribute tight (true|false), and which style of item marker was used (attribute delimiter (period|paren)).

Any chance to put corresponding information into MD_BLOCK_UL_DETAIL rsp MD_BLOCK_OL_DETAIL?

"CommonMark DTD on GitHub"

mity commented 7 years ago

That should be quite easy to add. I'll try to get to it tonight.

mity commented 7 years ago

Done.

tin-pot commented 7 years ago

Great - thank you!