summaryrefslogtreecommitdiff
path: root/src/print.c
AgeCommit message (Collapse)Author
2014-11-25Replaced cmark_debug_print with cmark_render_ast.John MacFarlane
This returns a string.
2014-11-25print.c: use nonrecursive algorithm.John MacFarlane
2014-11-25Use strbuf in print.c.John MacFarlane
This is preliminary to having it return a string.
2014-11-25Replaced print_blocks and print_inlines with print_nodes.John MacFarlane
2014-11-25`print.c` - make `document` node implicit.John MacFarlane
It doesn't add information and just increases the indent level of everything else.
2014-11-25Rename NODE_STRING -> NODE_TEXT.John MacFarlane
In JS, use 'Text' instead of 'Str'. In spec, use "plain textual content" instead of "strings."
2014-11-23Do not distinguish btw fenced and indented code in AST.John MacFarlane
Use a single CMARK_NODE_CODE_BLOCK tag for both. Distinguish them when needed for parsing by looking at the fence_length attribute, which is 0 for indented blocks.
2014-11-23Revert "Revert "Remove distinction btw atx and setext header in AST.""John MacFarlane
This reverts commit 4570eb2bff2e1b71fa5b6408abbc69c98ff5ff24.
2014-11-22Revert "Remove distinction btw atx and setext header in AST."John MacFarlane
This reverts commit a71423f6ee1b77d9f79d42599ea00b4ca99f5da0. Not quite sure about this change, so reverting for now. Note that we still have a distinction between fenced and indented code blocks in the AST. These two distinctions seem to stand or fall together.
2014-11-22Remove distinction btw atx and setext header in AST.John MacFarlane
Now we just have 'header' -- Setext and ATX are just two ways of forming these; it's not a semantic difference that should remain in the AST.
2014-11-22Renamed NODE_BQUOTE -> NODE_BLOCK_QUOTE.John MacFarlane
2014-11-17Store link labels as children in tree structureNick Wellnhofer
2014-11-17Rename ast.h to parser.hNick Wellnhofer
2014-11-17Switch cmark_node_inl over to cmark_nodeNick Wellnhofer
2014-11-17Switch cmark_node_block over to cmark_nodeNick Wellnhofer
2014-11-16Export enums for inline, block types, list and list delim types.John MacFarlane
Also switched from `bullet`, `ordered`, `parens`, `period` to `CMARK_BULLET_LIST`, `CMARK_ORDERED_LIST`, `CMARK_PAREN_DELIM`, `CMARK_PERIOD_DELIM`.
2014-11-16Moved AST details from public header cmark.h to private ast.h.John MacFarlane
2014-11-06Removed unnecessary C99-ism.John MacFarlane
2014-10-24Renamed c program and library stmd -> cmark.John MacFarlane
Also renamed internal library functions accordingly.
2014-10-18Reindented c sources.John MacFarlane
2014-09-15Cleanup external APIsVicent Marti
2014-09-09Abstract the Block unionVicent Marti
2014-09-09UTF8-aware detabbing and entity handlingVicent Marti
2014-09-09Rename block literalsVicent Marti
2014-09-09Rename node_blockVicent Marti
2014-09-09Rename `inl`Vicent Marti
2014-09-09Rename inlVicent Marti
2014-09-09433/8Vicent Marti
2014-09-09338/103Vicent Marti
2014-09-09Rename inlinesVicent Marti
2014-09-09ffffixVicent Marti
2014-08-13Initial commitJohn MacFarlane