summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2015-03-27 22:31:44 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2015-03-27 22:31:44 -0700
commitea888d7291523b8e207ab32b66374fa043384e65 (patch)
treeacac3056602322676c8efd4cd0de60558d127779 /src
parentc8de565f118fa194236230a432ea4bc29292daba (diff)
More TODOs in commonmark renderer.
Diffstat (limited to 'src')
-rw-r--r--src/commonmark.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/commonmark.c b/src/commonmark.c
index fa5dd96..9606fbe 100644
--- a/src/commonmark.c
+++ b/src/commonmark.c
@@ -240,6 +240,8 @@ S_render_node(cmark_node *node, cmark_event_type ev_type,
marker_width = strlen(listmarker);
}
if (entering) {
+ // TODO change bullet list marker to avoid
+ // interpretation as setext headers?
if (cmark_node_get_list_type(node->parent) ==
CMARK_BULLET_LIST) {
lit(state, "- ", false);
@@ -259,6 +261,7 @@ S_render_node(cmark_node *node, cmark_event_type ev_type,
break;
case CMARK_NODE_HEADER:
+ // TODO escape literal ##s at the end of header conetnt
if (entering) {
for (int i = cmark_node_get_header_level(node); i > 0; i--) {
lit(state, "#", false);
@@ -376,6 +379,7 @@ S_render_node(cmark_node *node, cmark_event_type ev_type,
if (entering) {
lit(state, "[", false);
} else {
+ // TODO - emit autolink when url matches link text
// TODO - backslash-escape " and \ inside url, title
// for both links and images
lit(state, "](", false);