Age | Commit message (Collapse) | Author | |
---|---|---|---|
2014-11-25 | Replaced cmark_debug_print with cmark_render_ast. | John MacFarlane | |
This returns a string. | |||
2014-11-25 | Rename NODE_STRING -> NODE_TEXT. | John MacFarlane | |
In JS, use 'Text' instead of 'Str'. In spec, use "plain textual content" instead of "strings." | |||
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-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 | Make parser accept a char* | Nick Wellnhofer | |
2014-11-22 | Make render_html return a char* | Nick Wellnhofer | |
2014-11-19 | Accessors for start_line, start_column, end_line | Nick Wellnhofer | |
These are read-only as they're only metadata returned by the parser. | |||
2014-11-19 | Accessors for link titles | Nick Wellnhofer | |
2014-11-19 | Accessors for fence info | Nick Wellnhofer | |
Only fence info should be relevant for rendering. Accessors for other fenced code data could be added for completeness but they don't seem very useful. | |||
2014-11-19 | Accessors for list data | Nick Wellnhofer | |
Only 'list_type', 'start', and 'tight' should be relevant for rendering. Accessors for other list data could be added for completeness but they don't seem very useful. | |||
2014-11-19 | Accessors for header level | Nick Wellnhofer | |
2014-11-19 | Rename {get|set}_content to {get|set}_string_content | Nick Wellnhofer | |
2014-11-19 | Add cmark_node_insert_after to cmark.h | Nick Wellnhofer | |
Fix copy/paste error. | |||
2014-11-18 | Add node constructor and accessors to the public API | Nick Wellnhofer | |
The approach I'm taking is to copy inline literals internally to NULL-terminated C strings if requested by an accessor. This allows to return a 'const char *' that doesn't have to be freed by the caller. | |||
2014-11-17 | Store link labels as children in tree structure | Nick Wellnhofer | |
2014-11-17 | Move public stuff from node.h to cmark.h | Nick Wellnhofer | |
2014-11-17 | Remove old node_block and node_inl | 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 | Added some basic functions for traversing/editing blocks in AST. | 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 | Moved MAX_LINK_LABEL_LENGTH out of public header. | John MacFarlane | |
Put it in ast.h. | |||
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 | We don't need to include stdbool in the public header. | John MacFarlane | |
2014-11-16 | Moved inline/block-making functions to ast.h. | John MacFarlane | |
Now we no longer depend on buffer.h or chunk.h in the public API. Install cmark.h and cmark_export.h into PREFIX/include instead of PREFIX/include/cmark. | |||
2014-11-16 | cmark_render_html now just returns a regular C string. | John MacFarlane | |
This way, we don't have to expose buffer.h; it is just used internally. | |||
2014-11-16 | Moved AST details from public header cmark.h to private ast.h. | John MacFarlane | |
2014-11-16 | Rename include guards for consistency and to avoid reserved identifiers | Craig Barnes | |
2014-11-15 | Don't expose append_inlines. | 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 | Use cmake's generate_export_header. | John MacFarlane | |
2014-11-13 | Added cmark_append_blocks, exposed more functions. | John MacFarlane | |
2014-11-13 | Removed ast modules, moved these defs back to cmark.h. | John MacFarlane | |
2014-11-13 | Make basic functions in cmark.h visible. | John MacFarlane | |
2014-11-13 | Added ast.[c,h] for AST definitions and AST-manipulating functions. | John MacFarlane | |
2014-11-12 | Prefix names in cmark.h | Nick Wellnhofer | |
2014-11-12 | Prefix names in references.h | Nick Wellnhofer | |
2014-11-12 | Prefix names in chunk.h | Nick Wellnhofer | |
2014-11-12 | Prefix names in buffer.h | Nick Wellnhofer | |
2014-11-11 | Improved cmark_markdown_to_html. | John MacFarlane | |
Added length parameter so we can avoid strlen. Properly free buffer. | |||
2014-11-11 | Added cmark_markdown_to_html with a simple interface. | John MacFarlane | |
See #70. | |||
2014-11-11 | Added macro def needed for cpp. | John MacFarlane | |
2014-11-10 | Define _CMARK_H_ instead of _STDMD_H_. | John MacFarlane | |
2014-11-09 | Added MAX_LINK_LABEL_LENGTH to cmark.h. | John MacFarlane | |
Use in link label parsing and reference lookup. | |||
2014-11-05 | Removed stack limits in inline parsing. | John MacFarlane | |
This brings back segfaults, but we're now aiming for a better solution, revising the renderer so it doesn't use recursion, and using a stack approach for nested brackets. Removing these limits will allow us to know when we've got it right. See #166, #187. | |||
2014-10-28 | Changed EMPHASIS_STACK_LIMIT -> STACK_LIMIT. | John MacFarlane | |
We'll also use it in parsing bracketed link labels. | |||
2014-10-26 | Add EMPHASIS_STACK_LIMIT. | John MacFarlane | |
If we get more than 1000 deep in potential emphasis/strong emphasis openers, we refuse to add more to the stack. This prevents the sort of stack overflow we previously got with python -c 'print "*a **a " * 100000; print " a** a*" * 100000' | ./cmark Partially addresses #166. |