Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for Cmark? #2

Open
solomonhawk opened this issue May 6, 2020 · 0 comments
Open

Support for Cmark? #2

solomonhawk opened this issue May 6, 2020 · 0 comments

Comments

@solomonhawk
Copy link

solomonhawk commented May 6, 2020

This is an interesting project! I found my way here after bumping into pragdave/earmark#228 (earmark does not parse content inside of html tags as markdown) which led me to trying the Cmark parser bundled with ExDoc. This produced much better results (formatted markdown inside html tags) except the syntax highlighting for elixir code was gone. A few steps later and here I am.

This library depends on Earmark explicitly. Both this library and the Cmark processor need to be specified as the markdown_processor to ExDoc.

Is it possible for ex_doc_makeup to support a configurable parser?

EDIT:

Digging in further I'm guessing the main reason this would be difficult or impossible is that Cmark doesn't provide a callback for each block (or a configurable code renderer of any sort) since it's shelling out to a C library under the hood.

Feel free to close if this is a no-go. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant