aboutsummaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2014-10-31Merge branch 'master' into cmakeJohn MacFarlane
2014-10-28Disallow bracketed labels nested more than 1000 deep.John MacFarlane
For performance reasons. See #166.
2014-10-28Changed EMPHASIS_STACK_LIMIT -> STACK_LIMIT.John MacFarlane
We'll also use it in parsing bracketed link labels.
2014-10-28Rename number_of_emphasis_openers -> emphasis_nestlevel.John MacFarlane
2014-10-26Require space before closing # sequence in ATX header.John MacFarlane
Closes #169.
2014-10-26Add 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.
2014-10-25CMakeLists tweaks.John MacFarlane
Use compiler optimizations, -Wall, -Werror.
2014-10-25config.h unnecessary for now.John MacFarlane
2014-10-25Removed obsolete src/getopt.c; modified CMake build accordingly.John MacFarlane
2014-10-25Merge branch 'cmake-build' of https://github.com/gittiver/stmd into ↵John MacFarlane
gittiver-cmake-build Conflicts: .gitignore
2014-10-24Renamed c program and library stmd -> cmark.John MacFarlane
Also renamed internal library functions accordingly.
2014-10-24Only define MIN if it's undefined.John MacFarlane
Note: it is defined in GNU libc (Linux) and FreeBSD and OSX sys/param.h.
2014-10-24Merge branch 'master' of https://github.com/abduelhamit/stmd into ↵John MacFarlane
abduelhamit-master
2014-10-24Add a newline to a line that doesn't end with one.John MacFarlane
Closes #115.
2014-10-24Fixed regex for processing instruction.John MacFarlane
We now handle properly `<?php echo '>'; ?>`. Closes #117.
2014-10-24Merge branch 'master' of https://github.com/tchetch/stmd into tchetch-masterJohn MacFarlane
Conflicts: src/inlines.c
2014-10-24Use unsigned char, not char, throughout.John MacFarlane
Closes #43.
2014-10-24Fixed a memory allocation error.John MacFarlane
2014-10-24Fixed memory leak by freeing all unused emphasis openers.John MacFarlane
2014-10-24Renamed subj->last_emphasis to subj->emphasis_openers.John MacFarlane
2014-10-19Removed now-undeeded 'first' parameter in parse_inline.John MacFarlane
2014-10-19Whitespace changes.John MacFarlane
2014-10-18parse_inline: Correctly move to last inline.John MacFarlane
2014-10-18Fixed performance regression.John MacFarlane
See discussion under #157.
2014-10-18Don't emit empty str elements in handle_strong_emph.John MacFarlane
2014-10-18Reindented c sources.John MacFarlane
2014-10-13Add missing MIN directiveAbdülhamit Yilmaz
It's needed in strbuf_cmp().
2014-10-09After inline parsing free any remaining InlineStack instances.user
2014-10-09Modified inline parsing to keep track of two pointers - the head of the list ↵user
and the tail.
2014-10-09Revert "Modified inline parsing to keep track of two pointers - the head of ↵Knagis
the list and the tail." This reverts commit bc78ad0a182bd322552fd081e30e552c18a87455.
2014-10-09Modified inline parsing to keep track of two pointers - the head of the list ↵Knagis
and the tail.
2014-10-08Implemented stack-based algorithm for matching emphasisKnagis
2014-10-06- Use of calloc instead of malloctchetch
- Test for NULL after allocation
2014-09-22using only includes from systemGulliver
2014-09-18Fix memory leak when rendering images as HTMLJordan Milne
2014-09-18Use a lookup table for subject_find_special_charJordan Milne
2014-09-18Add missing headerVicent Marti
2014-09-17Better handle trailing backslashes in ATX-style headersJordan Milne
Previously something like '# `\' would hang the parser while it waited for an extra character that wasn't there.
2014-09-15Cleanup external APIsVicent Marti
2014-09-11using only includes from systemGulliver
2014-09-11fixed using variable ${PROGRAM_stmd}Gulliver
2014-09-10Handle overflows in the codepoint parserVicent Marti
2014-09-10Do not create references with empty namesVicent Marti
2014-09-10Do not use strchr for span searchesVicent Marti
Strchr will return a valid pointer for '\0' when searching a static string, as the NULL byte is part of the string.
2014-09-10Improve invalid UTF8 codepoint skippingVicent Marti
2014-09-10Fix infinite loop when case folding invalid UTF8 charsVicent Marti
2014-09-10Fix misc bugsVicent Marti
2014-09-10Remove old hash tableVicent Marti
2014-09-10Cleanup reference implementationVicent Marti
2014-09-10added scanner.c to sources and special ruleGulliver
for it to build it from scanner.re (added setting RE2C which contains the path to needed re2c utilitity)