Граф коммитов

513 Коммитов

Автор SHA1 Сообщение Дата
John MacFarlane 4158b2c457 Fixed memory allocation bug. 2014-11-10 14:07:33 -08:00
John MacFarlane b8acbe96ba Makefile - default to Debug for make target 2014-11-10 14:07:02 -08:00
John MacFarlane 500c62bd38 Properly set default build type in CMakeLists.txt. 2014-11-10 13:45:16 -08:00
John MacFarlane 1e1a96d760 Added BUILDTYPE to Makefile, default to Release.
Previously we weren't building with release flags.
2014-11-10 13:41:51 -08:00
John MacFarlane 6d2137fd8a Fuzztest: indicate when command terminates abnormally. 2014-11-10 12:56:35 -08:00
John MacFarlane cf4501323a Make FUZZCHARS settable from environment. 2014-11-10 12:34:00 -08:00
John MacFarlane e87a540442 Version 0.12. 2014-11-10 10:55:11 -08:00
John MacFarlane 5e5997bd9c Added a link. 2014-11-10 10:54:59 -08:00
John MacFarlane 4d4a3f7289 Allow images to contain images. 2014-11-10 10:52:11 -08:00
John MacFarlane 65af8da7a8 Rebuild commonmark.js before update-site. 2014-11-10 07:47:05 -08:00
John MacFarlane cf24c953a6 Bump spec version to 0.11. 2014-11-10 07:02:41 -08:00
John MacFarlane 4ebdaa5636 jshint improvements. 2014-11-10 06:56:01 -08:00
John MacFarlane 3bf790198c Stack-based link handling in js. All tests pass. 2014-11-10 06:52:06 -08:00
John MacFarlane 8999926893 Variable renaming in inlines.c. 2014-11-10 05:44:37 -08:00
John MacFarlane 5c0ee64d2c Rewrote parseLink in js consistent with the C and spec. 2014-11-09 22:43:39 -08:00
John MacFarlane d6a73928f9 Added processEmphasis, run at end of parseInlines. 2014-11-09 22:18:30 -08:00
John MacFarlane 4a4b050a54 Changed parseEmphasis to just put things on stack. 2014-11-09 20:29:43 -08:00
John MacFarlane 9a9a15312c Added clarification that hard breaks don't work at ends of blocks.
Closes #191.
2014-11-09 18:21:52 -08:00
John MacFarlane 5e9db2581e Spec: use terminology of "image description" rather than "alt text".
"alt text" has to do with one possible rendering decision.
2014-11-09 17:55:20 -08:00
John MacFarlane dc4a6c8cda Fixed spec tests. 2014-11-09 16:39:32 -08:00
John MacFarlane a5753eb866 Fixed 2 typos in spec tests. 2014-11-09 16:31:22 -08:00
John MacFarlane e123516bfb Fixed bug.
Need to remove open delimiters from the stack when they don't match
for a link.
2014-11-09 16:28:52 -08:00
John MacFarlane bc89203925 README: more than 500 tests.
changes.  Lines starting
2014-11-09 16:28:52 -08:00
John MacFarlane 62088c6182 Updated spec for links.
Still a work in progress.
2014-11-09 16:28:52 -08:00
John MacFarlane f1bbd86910 Merge branch 'master' of github.com:jgm/CommonMark 2014-11-09 13:37:13 -08:00
John MacFarlane 014d2d0699 Restored priority of links over emphasis grouping.
Now when we encounter (possibly) closing `*` or `_` delimiters,
we simply add them to the delimiters stack.

This gets processed by `process_emphasis` either (a) when
a link is created (in which case only the inlines created
by the link are processed) or at the end of processing
a run of inlines.
2014-11-09 13:21:37 -08:00
John MacFarlane 7c1733bbf5 runtests.pl: distinguish error status from failures. 2014-11-09 13:21:37 -08:00
John MacFarlane 13da682b01 Added MAX_LINK_LABEL_LENGTH to cmark.h.
Use in link label parsing and reference lookup.
2014-11-09 13:21:37 -08:00
John MacFarlane d352e22ff9 Removed some unused code. 2014-11-09 13:21:37 -08:00
John MacFarlane db596350ac Disallow links inside links and images inside images. 2014-11-09 13:21:37 -08:00
John MacFarlane 7c44ac85bf Fixed backslash-escape inside link label.
Down to 8 failures, all cases where the spec will need to be
changed to reflect lack of priority of links over emphasis.
2014-11-09 13:21:37 -08:00
John MacFarlane c6f95684f9 Fixed problem with images. 2014-11-09 13:21:37 -08:00
John MacFarlane 18207addd5 Fixed allocation issue. 2014-11-09 13:21:37 -08:00
John MacFarlane ea81ce0001 Got ref links working, but with deallocation issues. 2014-11-09 13:21:37 -08:00
John MacFarlane 2750fd3341 Got inline links working. 2014-11-09 13:21:37 -08:00
John MacFarlane c84db152b5 Initial steps towards link parsing. 2014-11-09 13:21:36 -08:00
John MacFarlane 98dfa2d659 Simplified link_label parser.
It now just scans for an unescaped `]`.  No `[` characters are
permitted in labels.  Backticks don't have their usual meaning in
labels.

This accords with the behavior of some of the main Markdown parsers:
marked, sundown, discount, kramdown, showdown, Markdown.pl,
PHP Markdown.
2014-11-09 13:21:36 -08:00
John MacFarlane ac1c9301f0 template.html changes needed to make visible spaces work. 2014-11-08 21:01:45 -08:00
John MacFarlane faacf7065f Make spaces visible using CSS.
Closes #49.

I didn't want to actually insert the characters, since I want
the code samples to be cut/pasteable.  But this CSS trick seems
to work.
2014-11-08 20:58:24 -08:00
John MacFarlane 535afc08fe Spec: better system for designating definitions of terms.
`[foo](@foo)` turns into an anchor with id `foo` that links to
itself and has class `definition`.  This allows us to remove the
manual `<a>` tags in `spec.txt`.

A simple regex substitution in the Makefile handles the transformation.

I believe this addresses some of the concerns in #141 by giving
the definitions a prominent appearance.  Note that
we want definitions to link to themselves, to allow users to
quickly generate a link to the relevant bit of the spec.
2014-11-08 20:58:17 -08:00
John MacFarlane ead4f4b77b Improved fuzztest. 2014-11-08 20:58:11 -08:00
John MacFarlane 58ebff02fd Improved fuzztest. 2014-11-08 16:19:35 -08:00
John MacFarlane 71e14bb77b Removed unused emphasis_nestlevel. 2014-11-07 21:59:28 -08:00
John MacFarlane 37b536cf8d Factored out push_delimiter.
Conflicts:
	src/inlines.c
2014-11-07 21:57:59 -08:00
John MacFarlane 26aac3c502 Removed config.h.cmake (not used). 2014-11-07 21:52:01 -08:00
John MacFarlane 490e9f08a2 Replace parse_inlines_while with parse_inlines_from_subject. 2014-11-07 21:51:05 -08:00
John MacFarlane 9f78f9d0b2 Removed release_it scripts. 2014-11-07 12:17:14 -08:00
John MacFarlane 2091909f6a Revised README with cmake instructions. 2014-11-07 11:15:18 -08:00
John MacFarlane dc31167e9d Moved site building targets to _site/Makefile. 2014-11-07 10:52:41 -08:00
John MacFarlane af75d8303c Moved old bits of Makefile to Makefile.old. 2014-11-07 10:39:22 -08:00