Age | Commit message (Collapse) | Author | |
---|---|---|---|
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 | C html renderer: ensure newline before hr or raw html block. | John MacFarlane | |
2014-11-22 | Make render_html return a char* | Nick Wellnhofer | |
2014-11-22 | Stackless HTML rendering | Nick Wellnhofer | |
Now that every node has a parent pointer, it's possible to implement the HTML rendering functions without render stacks and any dynamic memory allocations. This commit also adds some minor optimizations that eliminate some strbuf_put* calls for the common case and avoid printf for headers. | |||
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-19 | cmark: Add space before '/' in img tag. | John MacFarlane | |
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 | html: Removed union from RenderStack. | John MacFarlane | |
It doesn't make sense to have a union here, and this simplifies the code. | |||
2014-11-17 | Store link labels as children in tree structure | 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 | 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 | 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 | Feature test for __builtin_expect | Nick Wellnhofer | |
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 | Create html_unescape.h as ANSI C | Nick Wellnhofer | |
Pass -L ANSI-C to gperf to create more compatible code. | |||
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-14 | Exported some functions from buffer that are used elsewhere. | John MacFarlane | |
2014-11-11 | Added cmark_markdown_to_html with a simple interface. | John MacFarlane | |
See #70. | |||
2014-11-10 | html_unescape: Made find_entity static | John MacFarlane | |
2014-11-09 | Fixed allocation issue. | John MacFarlane | |
2014-11-06 | Made blocks_to_html non-recursive (using a stack). | John MacFarlane | |
This will help avoid stack overflows with deeply nested structures. See #187. | |||
2014-11-06 | Reformatted code consistently. | John MacFarlane | |
2014-11-06 | HTML renderer: render alt text as plain, unformatted string. | John MacFarlane | |
2014-11-06 | Use render stack for inline links. | John MacFarlane | |
2014-11-05 | Use regular strings for literal in render_stack. | John MacFarlane | |
2014-11-05 | Use stack approach for rendering strong, emph. | John MacFarlane | |
2014-11-05 | Added basic infrastructure for render_stack. | John MacFarlane | |
2014-10-24 | Renamed c program and library stmd -> cmark. | John MacFarlane | |
Also renamed internal library functions accordingly. | |||
2014-09-18 | Fix memory leak when rendering images as HTML | Jordan Milne | |
2014-09-15 | Cleanup external APIs | Vicent Marti | |
2014-09-10 | Handle overflows in the codepoint parser | Vicent Marti | |
2014-09-09 | Update the spec with better entity handling | Vicent Marti | |
2014-09-09 | Oops | Vicent Marti | |
2014-09-09 | Fix the class attribute for code fences | Vicent Marti | |
2014-09-09 | Abstract the Block union | Vicent Marti | |
2014-09-09 | Entity declarations | 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 `inl` | Vicent Marti | |
2014-09-09 | Rename inl | Vicent Marti | |