Age | Commit message (Collapse) | Author | |
---|---|---|---|
2014-11-23 | Added internal flag to distinguish setext from atx headers. | John MacFarlane | |
2014-11-23 | Do 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-23 | Revert "Revert "Remove distinction btw atx and setext header in AST."" | John MacFarlane | |
This reverts commit 4570eb2bff2e1b71fa5b6408abbc69c98ff5ff24. | |||
2014-11-23 | Fix segfault on docs without trailing newline | Nick Wellnhofer | |
2014-11-22 | Revert "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-22 | Remove 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-22 | Renamed NODE_BQUOTE -> NODE_BLOCK_QUOTE. | John MacFarlane | |
2014-11-22 | Fixed #192. | John MacFarlane | |
The C and JS implementations were not registering blank lines after atx headers for purposes of tight/loose list calculation. Exmaple: * item * # block1 ## block2 | |||
2014-11-22 | Updated JS and C implementations for #209. | John MacFarlane | |
A setext header was being treated a if it were a blank line for purposes of tight/loose list determination. Closes #209. | |||
2014-11-22 | Make parser accept a char* | Nick Wellnhofer | |
2014-11-22 | Fix and test node_check | Nick Wellnhofer | |
2014-11-17 | Make parse_inlines add directly to parent. | John MacFarlane | |
Previously parse_inlines returned a list of parsed inlines. This had to be added to the parent, and fix_parents had to be called to manually add the 'parent' links to the children, and the 'last_child' link to the parent. Now parse_inlines takes the parent block as a parameter, and uses cmark_node_append_child to add the children, so that the pointers should be properly managed. This avoids the need for the fix_parents pass. | |||
2014-11-17 | Set prev, parent and last_child for inlines | Nick Wellnhofer | |
2014-11-17 | Rename ast.h to parser.h | Nick Wellnhofer | |
2014-11-17 | Switch cmark_node_inl over to cmark_node | Nick Wellnhofer | |
2014-11-17 | Switch cmark_node_block over to cmark_node | Nick Wellnhofer | |
2014-11-16 | Moved refmap from the top-level block node to the doc_parser. | John MacFarlane | |
2014-11-16 | Export 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-16 | Removed CMARK_CODE_INDENT, CODE_INDENT from public header. | John MacFarlane | |
Now it's in blocks.c, the only module that uses it. | |||
2014-11-16 | Probe for stdbool.h | Nick Wellnhofer | |
Let cmake create a cmark_config.h file to deal with platforms missing stdbool.h. | |||
2014-11-16 | Use named enum types | Nick Wellnhofer | |
Needed for C++ compatibility. | |||
2014-11-16 | Cast void pointers explicitly | Nick Wellnhofer | |
Needed for C++ compatibility. | |||
2014-11-16 | Moved AST details from public header cmark.h to private ast.h. | John MacFarlane | |
2014-11-15 | Expose lower-level parsing API. | John MacFarlane | |
The new functions cmark_new_doc_parser, cmark_free_doc_parser, cmark_process_line, and cmark_finish allow you to feed lines one by one (possibly from several files) to the parser and call finish when you're done. This is now used in main for mulitple files. | |||
2014-11-14 | Added some includes of buffer.h | John MacFarlane | |
2014-11-13 | Moved the timing macros to get finer-grained information. | John MacFarlane | |
2014-11-13 | Added ast.[c,h] for AST definitions and AST-manipulating functions. | John MacFarlane | |
2014-11-12 | Mark some functions as static | Nick Wellnhofer | |
2014-11-06 | Use non-recursive algorithm for process_inlines. | John MacFarlane | |
Closes #187. | |||
2014-11-06 | Reformatted code consistently. | John MacFarlane | |
2014-11-05 | Made block-freeing slightly more efficient by using last_child. | John MacFarlane | |
2014-11-05 | Made cmark_free_nodes non-recursive. | John MacFarlane | |
See #187. | |||
2014-10-26 | Require space before closing # sequence in ATX header. | John MacFarlane | |
Closes #169. | |||
2014-10-24 | Renamed c program and library stmd -> cmark. | John MacFarlane | |
Also renamed internal library functions accordingly. | |||
2014-10-24 | Add a newline to a line that doesn't end with one. | John MacFarlane | |
Closes #115. | |||
2014-10-24 | Merge branch 'master' of https://github.com/tchetch/stmd into tchetch-master | John MacFarlane | |
Conflicts: src/inlines.c | |||
2014-10-24 | Use unsigned char, not char, throughout. | John MacFarlane | |
Closes #43. | |||
2014-10-18 | Reindented c sources. | John MacFarlane | |
2014-10-06 | - Use of calloc instead of malloc | tchetch | |
- Test for NULL after allocation | |||
2014-09-17 | Better handle trailing backslashes in ATX-style headers | Jordan Milne | |
Previously something like '# `\' would hang the parser while it waited for an extra character that wasn't there. | |||
2014-09-15 | Cleanup external APIs | Vicent Marti | |
2014-09-10 | Cleanup reference implementation | Vicent Marti | |
2014-09-09 | Abstract the Block union | Vicent Marti | |
2014-09-09 | UTF8-aware detabbing and entity handling | Vicent Marti | |
2014-09-09 | Rename block literals | Vicent Marti | |
2014-09-09 | Rename node_block | Vicent Marti | |
2014-09-09 | Rename to strbuf | Vicent Marti | |
2014-09-09 | 379/62 | Vicent Marti | |
2014-09-09 | 368/73 | Vicent Marti | |
2014-09-09 | 338/103 | Vicent Marti | |