You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Identify type of Markdown item as part of AST? #125
To do this, we'd need to extend the API with something like cmark_node_get_list_bullet or something like that.
Here's one potential issue I see: suppose we have an HTML -> CommonMark converter (I've written one of these using my lua bindings). If we add bullet types to the AST, then when we're building the AST to match the structure of the HTML document, we need to specify a bullet type of *, +, or - for each unordered list. But of course, there's nothing corresponding to that in HTML.
Perhaps this is just a minor inconvenience, since you could set this arbitrarily or leave it as its default value.
I'd be receptive to a PR to add this feature, if you need it in github.
Activity
jgm commentedon May 13, 2016
I'm not sure about this one. See the discussion at
http://talk.commonmark.org/t/preserve-bullet-char-in-ast/1108
It would be helpful if you'd comment there on the discussion
so far, and say a bit about why you'd like this feature.
+++ Garen Torikian [May 12 16 14:53 ]:
jgm commentedon Jun 24, 2016
To do this, we'd need to extend the API with something like
cmark_node_get_list_bulletor something like that.Here's one potential issue I see: suppose we have an HTML -> CommonMark converter (I've written one of these using my lua bindings). If we add bullet types to the AST, then when we're building the AST to match the structure of the HTML document, we need to specify a bullet type of
*,+, or-for each unordered list. But of course, there's nothing corresponding to that in HTML.Perhaps this is just a minor inconvenience, since you could set this arbitrarily or leave it as its default value.
I'd be receptive to a PR to add this feature, if you need it in github.
Limit the recursion in autolink extension. (commonmark#125)