4 ms·
I don't know much of these things. I was thinking more that maybe some aspect of markdown was not easily expressed using a PEG (it's the same implementer behin
by maxerickson 12y ago
I don't know much of these things.
I was thinking more that maybe some aspect of markdown was not easily expressed using a PEG (it's the same implementer behind both the parser in Pandoc and this project) .
- phpnode 12y agoKeeping track of indent levels is not easy with PEGs but can be dealt with by pre processing
- kaoD 12y agoI might've missed something. Where do indent levels come into play? AFAICT Markdown has no concept of indentation.
- BruceIV 12y agoIIRC, lists and code blocks depend on indentation to decide where they begin/end, and I think what level they're at.
- kaoD 12y agoI think code blocks don't track indentation. A code block is just a bunch of lines beginning with 4 spaces (or blank lines) and the rest (when >4 spaces) are treated as leading spaces. I think you're right about lists though.