Age | Commit message (Collapse) | Author | |
---|---|---|---|
2014-11-21 | html: Simplified render_stack code. | John MacFarlane | |
Now that we have just one node type, it is not necessary to have two separate 'push' functions. | |||
2014-11-20 | Added utf8proc_is_space. | John MacFarlane | |
2014-11-20 | Added utf8proc_is_punctuation. | John MacFarlane | |
We'll probably need this when the spec for emph/strong gets revised. | |||
2014-11-19 | Merge pull request #208 from nwellnhof/more_accessors_and_tests | John MacFarlane | |
More accessors and tests | |||
2014-11-19 | cmark: Add space before '/' in img tag. | John MacFarlane | |
2014-11-19 | Input validation for setters | Nick Wellnhofer | |
2014-11-19 | Fix {get|set}_string_content | 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 | Accessors for string content of code and HTML blocks | 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 | Start with tests for the C API | Nick Wellnhofer | |
The C API tests can be run individually via build/api_test/api_test Or together with the spec tests via cmake --build build --target test | |||
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-18 | Make render_html support nodes with no children | Nick Wellnhofer | |
For empty inline nodes like EMPH, the parser always creates a child containing an empty string. Using the tree manipulation API, nodes with no children can be created. Adjust render_html to cope. | |||
2014-11-18 | Initialize all fields in node when creating inlines. | John MacFarlane | |
2014-11-18 | html: Removed union from RenderStack. | John MacFarlane | |
It doesn't make sense to have a union here, and this simplifies the code. | |||
2014-11-18 | Improve output of tree integrity check | Nick Wellnhofer | |
2014-11-17 | Make sure the emph inline added in process_emphasis has a parent. | John MacFarlane | |
2014-11-17 | Set CMARK_DEBUG_NODES for debug builds. | John MacFarlane | |
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 last_child and parent in make_link | Nick Wellnhofer | |
2014-11-17 | Store link labels as children in tree structure | Nick Wellnhofer | |
2014-11-17 | Set prev, parent and last_child for inlines | Nick Wellnhofer | |
2014-11-17 | Move cmark_free_nodes to node.c | Nick Wellnhofer | |
2014-11-17 | Rename ast.h to parser.h | Nick Wellnhofer | |
2014-11-17 | Move reference type definitions to reference.h | Nick Wellnhofer | |
2014-11-17 | Move inline-related stuff to inlines.c | 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-17 | Start with unified nodes | Nick Wellnhofer | |
2014-11-16 | Free the string returned by html renderer in main program. | John MacFarlane | |
2014-11-16 | Moved refmap from the top-level block node to the doc_parser. | John MacFarlane | |
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 | Added targets to regenerate html_unescape.h and case_fold_switch.inc. | John MacFarlane | |
For now these are just in the regular Makefile, not in CMakeLists.txt, since the generated files are in the repo and shouldn't ordinarily be regenerated. Note that html_unescape.h is a bit different on regeneration, and this removes error messages we were getting with Clang. | |||
2014-11-16 | Move inline function definitions to header files | Nick Wellnhofer | |
Inline functions must be defined in header files in order to be inlined in other compilation units. This also fixes the MSVC build where out-of-line versions weren't created and allows to remove the -fgnu89-inline flag. | |||
2014-11-16 | Feature test for GCC attributes | Nick Wellnhofer | |
2014-11-16 | Look for re2c in path when compiling with MSVC | Nick Wellnhofer | |
2014-11-16 | Feature test for __builtin_expect | Nick Wellnhofer | |
2014-11-16 | Remove unneeded va_copy | Nick Wellnhofer | |
va_copy isn't needed here. See http://stackoverflow.com/questions/26953289 Remove it because it isn't part of C89 and not implemented by MSVC. | |||
2014-11-16 | Compile as C++ under MSVC | Nick Wellnhofer | |
2014-11-16 | Declare all functions as extern "C" | Nick Wellnhofer | |