scalameta / mdoc

Typechecked markdown documentation for Scala
https://scalameta.org/mdoc/
Apache License 2.0
394 stars 81 forks source link

RFE: support `mdoc:push` and `mdoc:pop` for scope #794

Open erikerlandson opened 1 year ago

erikerlandson commented 1 year ago

mdoc:nest seems close to "push a new nested scoping", but there does not seem to be a concept of "pop one scope up" - mdoc:reset basically pops all existing scope off.

I'd love a pair mdoc:push that starts a new nested scope, and mdoc:pop that moves up one scope layer, and only loses the current most-nested scope.