mmark-md / mmark

Strict markdown processor for writers
Other
111 stars 20 forks source link

Expose Internal Modules #115

Closed emekoi closed 2 months ago

emekoi commented 2 months ago

Would it be possible to expose the modules:

I want to implement custom rendering logic, generating different header ids than what mmark does as well as header anchors. While this is currently possible using blockRender and discarding the old rendering function, that isn't really compositional and relies on manually inserting a "reset" pass to replace the default render function. Furthermore, exposing these modules allows users to write monadic rendering passes if they need them.

mrkkrp commented 2 months ago

Thanks. This makes sense to me. The modules will be available in 0.0.8.0.

emekoi commented 2 months ago

Thanks for the quick response!