summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2014-11-21commonmark.rb: separated Renderer class.John MacFarlane
2014-11-21html: 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-20commonmark.rb: more progress.John MacFarlane
2014-11-20commonmark.rb improvements.John MacFarlane
2014-11-20Added commonmark.rb, steps towards a nice ruby wrapper of the parser.John MacFarlane
2014-11-20Removed variance from stats.py.John MacFarlane
2014-11-20Added utf8proc_is_space.John MacFarlane
2014-11-20Added utf8proc_is_punctuation.John MacFarlane
We'll probably need this when the spec for emph/strong gets revised.
2014-11-20Removed leakchek from travis script.John MacFarlane
2014-11-20Travis: run valgrind after finishing.John MacFarlane
2014-11-20Use --no-normalize in tests.John MacFarlane
2014-11-20Reformatted some spec examples to match output of cmark.John MacFarlane
This way cmark passes tests with `--no-normalize`. See #161.
2014-11-20runtests.py: Fixed normalization of declarations and CDATA.John MacFarlane
If the input contains CDATA, we break it out and pass it through verbatim, without sending it through HTMLParser, which breaks on CDATA. Improves on #161.
2014-11-20runtests.py: catch HTMLParser errors in normalizer.John MacFarlane
2014-11-19leakcheck: Have valgrind return error code on errors.John MacFarlane
This should perhaps be integrated into the cmake tests?
2014-11-19Merge pull request #208 from nwellnhof/more_accessors_and_testsJohn MacFarlane
More accessors and tests
2014-11-19cmark: Add space before '/' in img tag.John MacFarlane
2014-11-19runtests.py: Added --no-normalize option.John MacFarlane
This disables all normalization. Note that the spec tests don't currently pass w/o normalization!
2014-11-19Renamed --test-normalization to --debug-normalizationJohn MacFarlane
2014-11-19Further runtests.py improvements.John MacFarlane
Better handling of br. Distinguish between a case where there's space on the next line and one where there isn't. Added --test-normalization flag to test normalization feature.
2014-11-19Improved normalization in runtests.py.John MacFarlane
Closes #161.
2014-11-19Input validation for settersNick Wellnhofer
2014-11-19Accessor testsNick Wellnhofer
2014-11-19Fix api_test summaryNick Wellnhofer
2014-11-19Fix {get|set}_string_contentNick Wellnhofer
2014-11-19Accessors for start_line, start_column, end_lineNick Wellnhofer
These are read-only as they're only metadata returned by the parser.
2014-11-19Accessors for link titlesNick Wellnhofer
2014-11-19Accessors for fence infoNick 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-19Accessors for list dataNick 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-19Accessors for header levelNick Wellnhofer
2014-11-19Accessors for string content of code and HTML blocksNick Wellnhofer
2014-11-19Rename {get|set}_content to {get|set}_string_contentNick Wellnhofer
2014-11-19Add tests for insert_{before|after} functionsNick Wellnhofer
2014-11-19Add cmark_node_insert_after to cmark.hNick Wellnhofer
Fix copy/paste error.
2014-11-18Added python version of test runner.John MacFarlane
This tests the dynamic library when run without a second argument. The code makes use of an amended version of the normalization method from karlcow/markdown-testsuite. Closes #161.
2014-11-18make test: Use cmake to run tests. So we get api tests too.John MacFarlane
2014-11-18Add api_test directory to archive.John MacFarlane
2014-11-18Merge branch 'api_tests' of https://github.com/nwellnhof/CommonMark into ↵John MacFarlane
nwellnhof-api_tests
2014-11-18Removed remarkable.js benchmark.John MacFarlane
2014-11-18Fix api_test warningsNick Wellnhofer
2014-11-18Set compiler flags for api_testNick Wellnhofer
2014-11-18Add header file to CMake api_test sourcesNick Wellnhofer
2014-11-18Try to support older CMake versionsNick Wellnhofer
2014-11-18Boldface commonmark.js too in benchmarks.John MacFarlane
2014-11-18Added a few more benchmarks.John MacFarlane
2014-11-18Start with tests for the C APINick 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-18Add node constructor and accessors to the public APINick 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-18Make render_html support nodes with no childrenNick 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-18Added remarkable.js benchmark.John MacFarlane
2014-11-18Initialize all fields in node when creating inlines.John MacFarlane