-
-
Notifications
You must be signed in to change notification settings - Fork 85
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
Bump dependencies to support tasklists #94
Conversation
|
not my problem!
@kivikakk I believe something upstream is not quite right, but I haven't identified what it is just yet. In this gem, parsing a file as doc = CommonMarker.render_doc(text, :DEFAULT, %i[tasklist])
doc.to_html works precisely as expected. But when attempting to step through and render individual nodes: CommonMarker::HtmlRenderer.new.render(doc) the generation hangs. That renderer depends on a node's type string to understand what to do. According to just |
Ugh, I cannot believe what has happened here:
I don't have time to work on a fix for this atm, but hopefully this is enough of a pointer. |
Relevant sections of code: commonmarker/ext/commonmarker/commonmarker.c Lines 83 to 101 in b9e5751
commonmarker/lib/commonmarker/node.rb Lines 55 to 65 in b9e5751
|
And: commonmarker/ext/commonmarker/tasklist.c Lines 7 to 10 in 4da613e
commonmarker/ext/commonmarker/tasklist.c Lines 65 to 71 in 4da613e
|
If possible, the tasklist code in |
I C what you did there hyuck hyuck Thanks a bunch! This helps a ton. |
I can't even admit to doing that on purpose /o\ |
🎉 |
Great stuff, thanks for working on this! 🙇♂️ |
Re: #64 (comment)
Something is a bit missing when it comes to walking the nodes around a task list...it ends up in a recursion. Not sure if this is a problem here or upstream just yet.