dbuenzli / cmarkit

CommonMark parser and renderer for OCaml
https://erratique.ch/software/cmarkit
ISC License
46 stars 8 forks source link

Improve mapper and folder for label definitions #1

Open dbuenzli opened 1 year ago

dbuenzli commented 1 year ago

The current story for folding and mapping document label definitions is a bit subpar. Something better should be designed. Maybe we should integrate label definitions in the mapper/folder structure.

This only became acute because of the label definition generalization that was needed for footnotes whose definitions have blocks. Link definitions have neither blocks nor inlines.