-
-
Notifications
You must be signed in to change notification settings - Fork 565
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
Clarify parser and render options in docs #88
Comments
Some of the options are render options, others are parsing Parsing: NORMALIZE, VALIDATE_UTF8, SMART Rendering: SOURCEPOS, SAFE, HARDBREAKS This could be clearer from the cmark.3 man page, because I don't want to store render options in the parse tree, +++ Garen Torikian [Oct 25 15 13:21 ]:
|
That makes sense. I'll change the title to reflect that this might be better fixed by a change in the docs. |
An interesting issue came up on the Ruby wrapper for libcmark.
It looks like, in order to render a string into a document, and that document into HTML, you must pass the rendering options twice, like this:
As far as I can see, there's no way for
render_doc
to store the render options on thecmark_node
document itself. And there's no way for that same node to callto_html
—it must be handled by a differentcmark_render_html
method.Is that correct? And if so, is that design intentional? I could piece something together for the Ruby wrapper to work around this, but I thought it might make sense to apply the change at the C level.
The text was updated successfully, but these errors were encountered: