Closed rossta closed 1 month ago
You're right, there's no way to access it at all. There's an almost-complexity in that, in the underlying library, the string content is placed in a different place entirely, but there's no reason I can see that Commonmarker can't abstract that.
I'll get a PR up and see what @gjtorikian thinks!
Not intentional at all! Thank you for reporting it.
Problem
Given a parsed document with default settings for markdown containing either code or code blocks:
MD
Expected Behavior
The parsed "code nodes" contain either string content or a set of children containing a text node with the string content:
Thank you for Commonmarker! I'm excited to see the re-introduction of the AST behavior. Apologies if this is expected behavior and perhaps I'm misunderstanding the defaults.