commonmarker 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of commonmarker might be problematic. Click here for more details.
- checksums.yaml +7 -0
- data/Gemfile +8 -0
- data/LICENSE.txt +22 -0
- data/README.md +119 -0
- data/Rakefile +39 -0
- data/bin/commonmarker +41 -0
- data/commonmarker.gemspec +30 -0
- data/ext/commonmarker/cmark/CMakeLists.txt +25 -0
- data/ext/commonmarker/cmark/COPYING +192 -0
- data/ext/commonmarker/cmark/FindAsan.cmake +74 -0
- data/ext/commonmarker/cmark/Makefile +170 -0
- data/ext/commonmarker/cmark/Makefile.nmake +36 -0
- data/ext/commonmarker/cmark/README.md +169 -0
- data/ext/commonmarker/cmark/api_test/CMakeLists.txt +25 -0
- data/ext/commonmarker/cmark/api_test/cplusplus.cpp +15 -0
- data/ext/commonmarker/cmark/api_test/cplusplus.h +17 -0
- data/ext/commonmarker/cmark/api_test/harness.c +102 -0
- data/ext/commonmarker/cmark/api_test/harness.h +42 -0
- data/ext/commonmarker/cmark/api_test/main.c +700 -0
- data/ext/commonmarker/cmark/appveyor.yml +15 -0
- data/ext/commonmarker/cmark/bench/statistics.py +595 -0
- data/ext/commonmarker/cmark/bench/stats.py +19 -0
- data/ext/commonmarker/cmark/benchmarks.md +33 -0
- data/ext/commonmarker/cmark/build/CMakeCache.txt +362 -0
- data/ext/commonmarker/cmark/build/CMakeFiles/3.2.2/CMakeCCompiler.cmake +63 -0
- data/ext/commonmarker/cmark/build/CMakeFiles/3.2.2/CMakeCXXCompiler.cmake +64 -0
- data/ext/commonmarker/cmark/build/CMakeFiles/3.2.2/CMakeDetermineCompilerABI_C.bin +0 -0
- data/ext/commonmarker/cmark/build/CMakeFiles/3.2.2/CMakeDetermineCompilerABI_CXX.bin +0 -0
- data/ext/commonmarker/cmark/build/CMakeFiles/3.2.2/CMakeSystem.cmake +15 -0
- data/ext/commonmarker/cmark/build/CMakeFiles/3.2.2/CompilerIdC/CMakeCCompilerId.c +499 -0
- data/ext/commonmarker/cmark/build/CMakeFiles/3.2.2/CompilerIdC/a.out +0 -0
- data/ext/commonmarker/cmark/build/CMakeFiles/3.2.2/CompilerIdCXX/CMakeCXXCompilerId.cpp +489 -0
- data/ext/commonmarker/cmark/build/CMakeFiles/3.2.2/CompilerIdCXX/a.out +0 -0
- data/ext/commonmarker/cmark/build/CMakeFiles/CMakeDirectoryInformation.cmake +16 -0
- data/ext/commonmarker/cmark/build/CMakeFiles/CMakeError.log +30 -0
- data/ext/commonmarker/cmark/build/CMakeFiles/CMakeOutput.log +598 -0
- data/ext/commonmarker/cmark/build/CMakeFiles/Makefile.cmake +77 -0
- data/ext/commonmarker/cmark/build/CMakeFiles/Makefile2 +268 -0
- data/ext/commonmarker/cmark/build/CMakeFiles/TargetDirectories.txt +4 -0
- data/ext/commonmarker/cmark/build/CMakeFiles/cmake.check_cache +1 -0
- data/ext/commonmarker/cmark/build/CMakeFiles/feature_tests.bin +0 -0
- data/ext/commonmarker/cmark/build/CMakeFiles/feature_tests.c +34 -0
- data/ext/commonmarker/cmark/build/CMakeFiles/feature_tests.cxx +405 -0
- data/ext/commonmarker/cmark/build/CMakeFiles/progress.marks +1 -0
- data/ext/commonmarker/cmark/build/CTestTestfile.cmake +10 -0
- data/ext/commonmarker/cmark/build/Makefile +237 -0
- data/ext/commonmarker/cmark/build/api_test/CMakeFiles/CMakeDirectoryInformation.cmake +16 -0
- data/ext/commonmarker/cmark/build/api_test/CMakeFiles/api_test.dir/C.includecache +92 -0
- data/ext/commonmarker/cmark/build/api_test/CMakeFiles/api_test.dir/CXX.includecache +36 -0
- data/ext/commonmarker/cmark/build/api_test/CMakeFiles/api_test.dir/DependInfo.cmake +29 -0
- data/ext/commonmarker/cmark/build/api_test/CMakeFiles/api_test.dir/build.make +155 -0
- data/ext/commonmarker/cmark/build/api_test/CMakeFiles/api_test.dir/cmake_clean.cmake +12 -0
- data/ext/commonmarker/cmark/build/api_test/CMakeFiles/api_test.dir/cplusplus.cpp.o +0 -0
- data/ext/commonmarker/cmark/build/api_test/CMakeFiles/api_test.dir/depend.internal +25 -0
- data/ext/commonmarker/cmark/build/api_test/CMakeFiles/api_test.dir/depend.make +25 -0
- data/ext/commonmarker/cmark/build/api_test/CMakeFiles/api_test.dir/flags.make +13 -0
- data/ext/commonmarker/cmark/build/api_test/CMakeFiles/api_test.dir/harness.c.o +0 -0
- data/ext/commonmarker/cmark/build/api_test/CMakeFiles/api_test.dir/link.txt +1 -0
- data/ext/commonmarker/cmark/build/api_test/CMakeFiles/api_test.dir/main.c.o +0 -0
- data/ext/commonmarker/cmark/build/api_test/CMakeFiles/api_test.dir/progress.make +4 -0
- data/ext/commonmarker/cmark/build/api_test/CMakeFiles/progress.marks +1 -0
- data/ext/commonmarker/cmark/build/api_test/Makefile +277 -0
- data/ext/commonmarker/cmark/build/api_test/api_test +0 -0
- data/ext/commonmarker/cmark/build/api_test/cmake_install.cmake +29 -0
- data/ext/commonmarker/cmark/build/cmake_install.cmake +48 -0
- data/ext/commonmarker/cmark/build/man/CMakeFiles/CMakeDirectoryInformation.cmake +16 -0
- data/ext/commonmarker/cmark/build/man/CMakeFiles/progress.marks +1 -0
- data/ext/commonmarker/cmark/build/man/Makefile +181 -0
- data/ext/commonmarker/cmark/build/man/cmake_install.cmake +37 -0
- data/ext/commonmarker/cmark/build/src/CMakeFiles/CMakeDirectoryInformation.cmake +16 -0
- data/ext/commonmarker/cmark/build/src/CMakeFiles/cmark.dir/C.includecache +422 -0
- data/ext/commonmarker/cmark/build/src/CMakeFiles/cmark.dir/DependInfo.cmake +39 -0
- data/ext/commonmarker/cmark/build/src/CMakeFiles/cmark.dir/blocks.c.o +0 -0
- data/ext/commonmarker/cmark/build/src/CMakeFiles/cmark.dir/buffer.c.o +0 -0
- data/ext/commonmarker/cmark/build/src/CMakeFiles/cmark.dir/build.make +544 -0
- data/ext/commonmarker/cmark/build/src/CMakeFiles/cmark.dir/cmake_clean.cmake +27 -0
- data/ext/commonmarker/cmark/build/src/CMakeFiles/cmark.dir/cmark.c.o +0 -0
- data/ext/commonmarker/cmark/build/src/CMakeFiles/cmark.dir/cmark_ctype.c.o +0 -0
- data/ext/commonmarker/cmark/build/src/CMakeFiles/cmark.dir/commonmark.c.o +0 -0
- data/ext/commonmarker/cmark/build/src/CMakeFiles/cmark.dir/depend.internal +177 -0
- data/ext/commonmarker/cmark/build/src/CMakeFiles/cmark.dir/depend.make +177 -0
- data/ext/commonmarker/cmark/build/src/CMakeFiles/cmark.dir/flags.make +8 -0
- data/ext/commonmarker/cmark/build/src/CMakeFiles/cmark.dir/houdini_href_e.c.o +0 -0
- data/ext/commonmarker/cmark/build/src/CMakeFiles/cmark.dir/houdini_html_e.c.o +0 -0
- data/ext/commonmarker/cmark/build/src/CMakeFiles/cmark.dir/houdini_html_u.c.o +0 -0
- data/ext/commonmarker/cmark/build/src/CMakeFiles/cmark.dir/html.c.o +0 -0
- data/ext/commonmarker/cmark/build/src/CMakeFiles/cmark.dir/inlines.c.o +0 -0
- data/ext/commonmarker/cmark/build/src/CMakeFiles/cmark.dir/iterator.c.o +0 -0
- data/ext/commonmarker/cmark/build/src/CMakeFiles/cmark.dir/link.txt +1 -0
- data/ext/commonmarker/cmark/build/src/CMakeFiles/cmark.dir/main.c.o +0 -0
- data/ext/commonmarker/cmark/build/src/CMakeFiles/cmark.dir/man.c.o +0 -0
- data/ext/commonmarker/cmark/build/src/CMakeFiles/cmark.dir/node.c.o +0 -0
- data/ext/commonmarker/cmark/build/src/CMakeFiles/cmark.dir/progress.make +19 -0
- data/ext/commonmarker/cmark/build/src/CMakeFiles/cmark.dir/references.c.o +0 -0
- data/ext/commonmarker/cmark/build/src/CMakeFiles/cmark.dir/scanners.c.o +0 -0
- data/ext/commonmarker/cmark/build/src/CMakeFiles/cmark.dir/utf8.c.o +0 -0
- data/ext/commonmarker/cmark/build/src/CMakeFiles/cmark.dir/xml.c.o +0 -0
- data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark.dir/C.includecache +394 -0
- data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark.dir/DependInfo.cmake +44 -0
- data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark.dir/blocks.c.o +0 -0
- data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark.dir/buffer.c.o +0 -0
- data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark.dir/build.make +522 -0
- data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark.dir/cmake_clean.cmake +27 -0
- data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark.dir/cmark.c.o +0 -0
- data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark.dir/cmark_ctype.c.o +0 -0
- data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark.dir/commonmark.c.o +0 -0
- data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark.dir/depend.internal +169 -0
- data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark.dir/depend.make +169 -0
- data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark.dir/flags.make +8 -0
- data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark.dir/houdini_href_e.c.o +0 -0
- data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark.dir/houdini_html_e.c.o +0 -0
- data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark.dir/houdini_html_u.c.o +0 -0
- data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark.dir/html.c.o +0 -0
- data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark.dir/inlines.c.o +0 -0
- data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark.dir/iterator.c.o +0 -0
- data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark.dir/link.txt +1 -0
- data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark.dir/man.c.o +0 -0
- data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark.dir/node.c.o +0 -0
- data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark.dir/progress.make +18 -0
- data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark.dir/references.c.o +0 -0
- data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark.dir/scanners.c.o +0 -0
- data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark.dir/utf8.c.o +0 -0
- data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark.dir/xml.c.o +0 -0
- data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark_static.dir/C.includecache +394 -0
- data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark_static.dir/DependInfo.cmake +38 -0
- data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark_static.dir/blocks.c.o +0 -0
- data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark_static.dir/buffer.c.o +0 -0
- data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark_static.dir/build.make +519 -0
- data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark_static.dir/cmake_clean.cmake +26 -0
- data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark_static.dir/cmake_clean_target.cmake +3 -0
- data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark_static.dir/cmark.c.o +0 -0
- data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark_static.dir/cmark_ctype.c.o +0 -0
- data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark_static.dir/commonmark.c.o +0 -0
- data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark_static.dir/depend.internal +169 -0
- data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark_static.dir/depend.make +169 -0
- data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark_static.dir/flags.make +8 -0
- data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark_static.dir/houdini_href_e.c.o +0 -0
- data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark_static.dir/houdini_html_e.c.o +0 -0
- data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark_static.dir/houdini_html_u.c.o +0 -0
- data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark_static.dir/html.c.o +0 -0
- data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark_static.dir/inlines.c.o +0 -0
- data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark_static.dir/iterator.c.o +0 -0
- data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark_static.dir/link.txt +2 -0
- data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark_static.dir/man.c.o +0 -0
- data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark_static.dir/node.c.o +0 -0
- data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark_static.dir/progress.make +18 -0
- data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark_static.dir/references.c.o +0 -0
- data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark_static.dir/scanners.c.o +0 -0
- data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark_static.dir/utf8.c.o +0 -0
- data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark_static.dir/xml.c.o +0 -0
- data/ext/commonmarker/cmark/build/src/CMakeFiles/progress.marks +1 -0
- data/ext/commonmarker/cmark/build/src/Makefile +814 -0
- data/ext/commonmarker/cmark/build/src/cmake_install.cmake +69 -0
- data/ext/commonmarker/cmark/build/src/cmark +0 -0
- data/ext/commonmarker/cmark/build/src/cmark_export.h +41 -0
- data/ext/commonmarker/cmark/build/src/cmark_version.h +7 -0
- data/ext/commonmarker/cmark/build/src/config.h +23 -0
- data/ext/commonmarker/cmark/build/src/libcmark.0.19.0.dylib +0 -0
- data/ext/commonmarker/cmark/build/src/libcmark.a +0 -0
- data/ext/commonmarker/cmark/build/src/libcmark.dylib +0 -0
- data/ext/commonmarker/cmark/build/src/libcmark.pc +10 -0
- data/ext/commonmarker/cmark/build/testdir/CMakeFiles/CMakeDirectoryInformation.cmake +16 -0
- data/ext/commonmarker/cmark/build/testdir/CMakeFiles/progress.marks +1 -0
- data/ext/commonmarker/cmark/build/testdir/CTestTestfile.cmake +12 -0
- data/ext/commonmarker/cmark/build/testdir/Makefile +181 -0
- data/ext/commonmarker/cmark/build/testdir/cmake_install.cmake +29 -0
- data/ext/commonmarker/cmark/changelog.txt +153 -0
- data/ext/commonmarker/cmark/data/CaseFolding-3.2.0.txt +912 -0
- data/ext/commonmarker/cmark/man/CMakeLists.txt +8 -0
- data/ext/commonmarker/cmark/man/make_man_page.py +131 -0
- data/ext/commonmarker/cmark/man/man1/cmark.1 +54 -0
- data/ext/commonmarker/cmark/man/man3/cmark.3 +583 -0
- data/ext/commonmarker/cmark/nmake.bat +1 -0
- data/ext/commonmarker/cmark/src/CMakeLists.txt +166 -0
- data/ext/commonmarker/cmark/src/bench.h +27 -0
- data/ext/commonmarker/cmark/src/blocks.c +887 -0
- data/ext/commonmarker/cmark/src/buffer.c +381 -0
- data/ext/commonmarker/cmark/src/buffer.h +113 -0
- data/ext/commonmarker/cmark/src/case_fold_switch.inc +2637 -0
- data/ext/commonmarker/cmark/src/chunk.h +110 -0
- data/ext/commonmarker/cmark/src/cmark.c +24 -0
- data/ext/commonmarker/cmark/src/cmark.h +565 -0
- data/ext/commonmarker/cmark/src/cmark_ctype.c +53 -0
- data/ext/commonmarker/cmark/src/cmark_ctype.h +24 -0
- data/ext/commonmarker/cmark/src/cmark_version.h.in +7 -0
- data/ext/commonmarker/cmark/src/commonmark.c +607 -0
- data/ext/commonmarker/cmark/src/config.h.in +23 -0
- data/ext/commonmarker/cmark/src/debug.h +36 -0
- data/ext/commonmarker/cmark/src/houdini.h +52 -0
- data/ext/commonmarker/cmark/src/houdini_href_e.c +107 -0
- data/ext/commonmarker/cmark/src/houdini_html_e.c +81 -0
- data/ext/commonmarker/cmark/src/houdini_html_u.c +116 -0
- data/ext/commonmarker/cmark/src/html.c +322 -0
- data/ext/commonmarker/cmark/src/html_unescape.gperf +2130 -0
- data/ext/commonmarker/cmark/src/html_unescape.h +13375 -0
- data/ext/commonmarker/cmark/src/inlines.c +1147 -0
- data/ext/commonmarker/cmark/src/inlines.h +19 -0
- data/ext/commonmarker/cmark/src/iterator.c +148 -0
- data/ext/commonmarker/cmark/src/iterator.h +25 -0
- data/ext/commonmarker/cmark/src/libcmark.pc.in +10 -0
- data/ext/commonmarker/cmark/src/main.c +191 -0
- data/ext/commonmarker/cmark/src/man.c +287 -0
- data/ext/commonmarker/cmark/src/node.c +873 -0
- data/ext/commonmarker/cmark/src/node.h +82 -0
- data/ext/commonmarker/cmark/src/parser.h +29 -0
- data/ext/commonmarker/cmark/src/references.c +154 -0
- data/ext/commonmarker/cmark/src/references.h +37 -0
- data/ext/commonmarker/cmark/src/scanners.c +15291 -0
- data/ext/commonmarker/cmark/src/scanners.h +41 -0
- data/ext/commonmarker/cmark/src/scanners.re +247 -0
- data/ext/commonmarker/cmark/src/utf8.c +452 -0
- data/ext/commonmarker/cmark/src/utf8.h +22 -0
- data/ext/commonmarker/cmark/src/xml.c +170 -0
- data/ext/commonmarker/cmark/test/CMakeLists.txt +53 -0
- data/ext/commonmarker/cmark/test/afl_dictionary/asterisk +1 -0
- data/ext/commonmarker/cmark/test/afl_dictionary/attr_generic +1 -0
- data/ext/commonmarker/cmark/test/afl_dictionary/attr_href +1 -0
- data/ext/commonmarker/cmark/test/afl_dictionary/attr_xml_lang +1 -0
- data/ext/commonmarker/cmark/test/afl_dictionary/attr_xmlns +1 -0
- data/ext/commonmarker/cmark/test/afl_dictionary/backslash +1 -0
- data/ext/commonmarker/cmark/test/afl_dictionary/backtick +1 -0
- data/ext/commonmarker/cmark/test/afl_dictionary/colon +1 -0
- data/ext/commonmarker/cmark/test/afl_dictionary/dashes +1 -0
- data/ext/commonmarker/cmark/test/afl_dictionary/double_quote +1 -0
- data/ext/commonmarker/cmark/test/afl_dictionary/entity_builtin +1 -0
- data/ext/commonmarker/cmark/test/afl_dictionary/entity_decimal +1 -0
- data/ext/commonmarker/cmark/test/afl_dictionary/entity_external +1 -0
- data/ext/commonmarker/cmark/test/afl_dictionary/entity_hex +1 -0
- data/ext/commonmarker/cmark/test/afl_dictionary/equals +1 -0
- data/ext/commonmarker/cmark/test/afl_dictionary/exclamation +1 -0
- data/ext/commonmarker/cmark/test/afl_dictionary/greater_than +1 -0
- data/ext/commonmarker/cmark/test/afl_dictionary/hash +1 -0
- data/ext/commonmarker/cmark/test/afl_dictionary/hyphen +0 -0
- data/ext/commonmarker/cmark/test/afl_dictionary/indent +1 -0
- data/ext/commonmarker/cmark/test/afl_dictionary/left_bracket +1 -0
- data/ext/commonmarker/cmark/test/afl_dictionary/left_paren +1 -0
- data/ext/commonmarker/cmark/test/afl_dictionary/less_than +1 -0
- data/ext/commonmarker/cmark/test/afl_dictionary/plus +1 -0
- data/ext/commonmarker/cmark/test/afl_dictionary/right_bracket +1 -0
- data/ext/commonmarker/cmark/test/afl_dictionary/right_paren +1 -0
- data/ext/commonmarker/cmark/test/afl_dictionary/single_quote +1 -0
- data/ext/commonmarker/cmark/test/afl_dictionary/string_any +1 -0
- data/ext/commonmarker/cmark/test/afl_dictionary/string_brackets +1 -0
- data/ext/commonmarker/cmark/test/afl_dictionary/string_cdata +1 -0
- data/ext/commonmarker/cmark/test/afl_dictionary/string_dashes +1 -0
- data/ext/commonmarker/cmark/test/afl_dictionary/string_empty_dblquotes +1 -0
- data/ext/commonmarker/cmark/test/afl_dictionary/string_empty_quotes +1 -0
- data/ext/commonmarker/cmark/test/afl_dictionary/string_idrefs +1 -0
- data/ext/commonmarker/cmark/test/afl_dictionary/string_parentheses +1 -0
- data/ext/commonmarker/cmark/test/afl_dictionary/string_pcdata +1 -0
- data/ext/commonmarker/cmark/test/afl_dictionary/tag_cdata +1 -0
- data/ext/commonmarker/cmark/test/afl_dictionary/tag_close +1 -0
- data/ext/commonmarker/cmark/test/afl_dictionary/tag_doctype +1 -0
- data/ext/commonmarker/cmark/test/afl_dictionary/tag_element +1 -0
- data/ext/commonmarker/cmark/test/afl_dictionary/tag_entity +1 -0
- data/ext/commonmarker/cmark/test/afl_dictionary/tag_notation +1 -0
- data/ext/commonmarker/cmark/test/afl_dictionary/tag_open +1 -0
- data/ext/commonmarker/cmark/test/afl_dictionary/tag_open_close +1 -0
- data/ext/commonmarker/cmark/test/afl_dictionary/tag_open_exclamation +1 -0
- data/ext/commonmarker/cmark/test/afl_dictionary/tag_open_q +1 -0
- data/ext/commonmarker/cmark/test/afl_dictionary/tag_sq2_close +1 -0
- data/ext/commonmarker/cmark/test/afl_dictionary/tag_xml_q +1 -0
- data/ext/commonmarker/cmark/test/afl_dictionary/underscore +1 -0
- data/ext/commonmarker/cmark/test/afl_test_cases/test.md +36 -0
- data/ext/commonmarker/cmark/test/cmark.py +40 -0
- data/ext/commonmarker/cmark/test/normalize.py +179 -0
- data/ext/commonmarker/cmark/test/pathological_tests.py +63 -0
- data/ext/commonmarker/cmark/test/roundtrip.sh +2 -0
- data/ext/commonmarker/cmark/test/smart_punct.txt +96 -0
- data/ext/commonmarker/cmark/test/spec.txt +7505 -0
- data/ext/commonmarker/cmark/test/spec_tests.py +139 -0
- data/ext/commonmarker/cmark/toolchain-mingw32.cmake +17 -0
- data/ext/commonmarker/cmark/tools/mkcasefold.pl +22 -0
- data/ext/commonmarker/cmark/wrappers/wrapper.lua +239 -0
- data/ext/commonmarker/cmark/wrappers/wrapper.py +37 -0
- data/ext/commonmarker/cmark/wrappers/wrapper.rb +15 -0
- data/ext/commonmarker/cmark/wrappers/wrapper.rkt +190 -0
- data/ext/commonmarker/commonmarker.c +165 -0
- data/ext/commonmarker/commonmarker.h +11 -0
- data/ext/commonmarker/extconf.rb +18 -0
- data/lib/commonmarker/config.rb +20 -0
- data/lib/commonmarker/version.rb +3 -0
- data/lib/commonmarker.rb +588 -0
- data/test/benchmark.rb +30 -0
- data/test/spec_tests.json +4074 -0
- data/test/test_basics.rb +44 -0
- data/test/test_helper.rb +5 -0
- data/test/test_maliciousness.rb +9 -0
- data/test/test_pathological_inputs.rb +52 -0
- data/test/test_spec.rb +20 -0
- metadata +399 -0
@@ -0,0 +1,69 @@
|
|
1
|
+
# Install script for directory: /Users/gjtorikian/Development/commonmarker/ext/commonmarker/cmark/src
|
2
|
+
|
3
|
+
# Set the install prefix
|
4
|
+
if(NOT DEFINED CMAKE_INSTALL_PREFIX)
|
5
|
+
set(CMAKE_INSTALL_PREFIX "/usr/local")
|
6
|
+
endif()
|
7
|
+
string(REGEX REPLACE "/$" "" CMAKE_INSTALL_PREFIX "${CMAKE_INSTALL_PREFIX}")
|
8
|
+
|
9
|
+
# Set the install configuration name.
|
10
|
+
if(NOT DEFINED CMAKE_INSTALL_CONFIG_NAME)
|
11
|
+
if(BUILD_TYPE)
|
12
|
+
string(REGEX REPLACE "^[^A-Za-z0-9_]+" ""
|
13
|
+
CMAKE_INSTALL_CONFIG_NAME "${BUILD_TYPE}")
|
14
|
+
else()
|
15
|
+
set(CMAKE_INSTALL_CONFIG_NAME "Release")
|
16
|
+
endif()
|
17
|
+
message(STATUS "Install configuration: \"${CMAKE_INSTALL_CONFIG_NAME}\"")
|
18
|
+
endif()
|
19
|
+
|
20
|
+
# Set the component getting installed.
|
21
|
+
if(NOT CMAKE_INSTALL_COMPONENT)
|
22
|
+
if(COMPONENT)
|
23
|
+
message(STATUS "Install component: \"${COMPONENT}\"")
|
24
|
+
set(CMAKE_INSTALL_COMPONENT "${COMPONENT}")
|
25
|
+
else()
|
26
|
+
set(CMAKE_INSTALL_COMPONENT)
|
27
|
+
endif()
|
28
|
+
endif()
|
29
|
+
|
30
|
+
if(NOT CMAKE_INSTALL_COMPONENT OR "${CMAKE_INSTALL_COMPONENT}" STREQUAL "Unspecified")
|
31
|
+
file(INSTALL DESTINATION "${CMAKE_INSTALL_PREFIX}/lib/pkgconfig" TYPE FILE FILES "/Users/gjtorikian/Development/commonmarker/ext/commonmarker/cmark/build/src/libcmark.pc")
|
32
|
+
endif()
|
33
|
+
|
34
|
+
if(NOT CMAKE_INSTALL_COMPONENT OR "${CMAKE_INSTALL_COMPONENT}" STREQUAL "Unspecified")
|
35
|
+
file(INSTALL DESTINATION "${CMAKE_INSTALL_PREFIX}/bin" TYPE EXECUTABLE FILES "/Users/gjtorikian/Development/commonmarker/ext/commonmarker/cmark/build/src/cmark")
|
36
|
+
if(EXISTS "$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/bin/cmark" AND
|
37
|
+
NOT IS_SYMLINK "$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/bin/cmark")
|
38
|
+
if(CMAKE_INSTALL_DO_STRIP)
|
39
|
+
execute_process(COMMAND "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/strip" "$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/bin/cmark")
|
40
|
+
endif()
|
41
|
+
endif()
|
42
|
+
endif()
|
43
|
+
|
44
|
+
if(NOT CMAKE_INSTALL_COMPONENT OR "${CMAKE_INSTALL_COMPONENT}" STREQUAL "Unspecified")
|
45
|
+
file(INSTALL DESTINATION "${CMAKE_INSTALL_PREFIX}/lib" TYPE SHARED_LIBRARY FILES
|
46
|
+
"/Users/gjtorikian/Development/commonmarker/ext/commonmarker/cmark/build/src/libcmark.0.19.0.dylib"
|
47
|
+
"/Users/gjtorikian/Development/commonmarker/ext/commonmarker/cmark/build/src/libcmark.dylib"
|
48
|
+
)
|
49
|
+
foreach(file
|
50
|
+
"$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/lib/libcmark.0.19.0.dylib"
|
51
|
+
"$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/lib/libcmark.dylib"
|
52
|
+
)
|
53
|
+
if(EXISTS "${file}" AND
|
54
|
+
NOT IS_SYMLINK "${file}")
|
55
|
+
if(CMAKE_INSTALL_DO_STRIP)
|
56
|
+
execute_process(COMMAND "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/strip" "${file}")
|
57
|
+
endif()
|
58
|
+
endif()
|
59
|
+
endforeach()
|
60
|
+
endif()
|
61
|
+
|
62
|
+
if(NOT CMAKE_INSTALL_COMPONENT OR "${CMAKE_INSTALL_COMPONENT}" STREQUAL "Unspecified")
|
63
|
+
file(INSTALL DESTINATION "${CMAKE_INSTALL_PREFIX}/include" TYPE FILE FILES
|
64
|
+
"/Users/gjtorikian/Development/commonmarker/ext/commonmarker/cmark/src/cmark.h"
|
65
|
+
"/Users/gjtorikian/Development/commonmarker/ext/commonmarker/cmark/build/src/cmark_export.h"
|
66
|
+
"/Users/gjtorikian/Development/commonmarker/ext/commonmarker/cmark/build/src/cmark_version.h"
|
67
|
+
)
|
68
|
+
endif()
|
69
|
+
|
Binary file
|
@@ -0,0 +1,41 @@
|
|
1
|
+
|
2
|
+
#ifndef CMARK_EXPORT_H
|
3
|
+
#define CMARK_EXPORT_H
|
4
|
+
|
5
|
+
#ifdef CMARK_STATIC_DEFINE
|
6
|
+
# define CMARK_EXPORT
|
7
|
+
# define CMARK_NO_EXPORT
|
8
|
+
#else
|
9
|
+
# ifndef CMARK_EXPORT
|
10
|
+
# ifdef libcmark_EXPORTS
|
11
|
+
/* We are building this library */
|
12
|
+
# define CMARK_EXPORT __attribute__((visibility("default")))
|
13
|
+
# else
|
14
|
+
/* We are using this library */
|
15
|
+
# define CMARK_EXPORT __attribute__((visibility("default")))
|
16
|
+
# endif
|
17
|
+
# endif
|
18
|
+
|
19
|
+
# ifndef CMARK_NO_EXPORT
|
20
|
+
# define CMARK_NO_EXPORT __attribute__((visibility("hidden")))
|
21
|
+
# endif
|
22
|
+
#endif
|
23
|
+
|
24
|
+
#ifndef CMARK_DEPRECATED
|
25
|
+
# define CMARK_DEPRECATED __attribute__ ((__deprecated__))
|
26
|
+
#endif
|
27
|
+
|
28
|
+
#ifndef CMARK_DEPRECATED_EXPORT
|
29
|
+
# define CMARK_DEPRECATED_EXPORT CMARK_EXPORT CMARK_DEPRECATED
|
30
|
+
#endif
|
31
|
+
|
32
|
+
#ifndef CMARK_DEPRECATED_NO_EXPORT
|
33
|
+
# define CMARK_DEPRECATED_NO_EXPORT CMARK_NO_EXPORT CMARK_DEPRECATED
|
34
|
+
#endif
|
35
|
+
|
36
|
+
#define DEFINE_NO_DEPRECATED 0
|
37
|
+
#if DEFINE_NO_DEPRECATED
|
38
|
+
# define CMARK_NO_DEPRECATED
|
39
|
+
#endif
|
40
|
+
|
41
|
+
#endif
|
@@ -0,0 +1,23 @@
|
|
1
|
+
#define HAVE_STDBOOL_H
|
2
|
+
|
3
|
+
#ifdef HAVE_STDBOOL_H
|
4
|
+
#include <stdbool.h>
|
5
|
+
#elif !defined(__cplusplus)
|
6
|
+
typedef char bool;
|
7
|
+
#endif
|
8
|
+
|
9
|
+
#define HAVE___BUILTIN_EXPECT
|
10
|
+
|
11
|
+
#define HAVE___ATTRIBUTE__
|
12
|
+
|
13
|
+
#ifdef HAVE___ATTRIBUTE__
|
14
|
+
#define CMARK_ATTRIBUTE(list) __attribute__ (list)
|
15
|
+
#else
|
16
|
+
#define CMARK_ATTRIBUTE(list)
|
17
|
+
#endif
|
18
|
+
|
19
|
+
#define HAVE_VA_COPY
|
20
|
+
|
21
|
+
#ifndef HAVE_VA_COPY
|
22
|
+
#define va_copy(dest, src) ((dest) = (src))
|
23
|
+
#endif
|
Binary file
|
Binary file
|
Binary file
|
@@ -0,0 +1,16 @@
|
|
1
|
+
# CMAKE generated file: DO NOT EDIT!
|
2
|
+
# Generated by "Unix Makefiles" Generator, CMake Version 3.2
|
3
|
+
|
4
|
+
# Relative path conversion top directories.
|
5
|
+
set(CMAKE_RELATIVE_PATH_TOP_SOURCE "/Users/gjtorikian/Development/commonmarker/ext/commonmarker/cmark")
|
6
|
+
set(CMAKE_RELATIVE_PATH_TOP_BINARY "/Users/gjtorikian/Development/commonmarker/ext/commonmarker/cmark/build")
|
7
|
+
|
8
|
+
# Force unix paths in dependencies.
|
9
|
+
set(CMAKE_FORCE_UNIX_PATHS 1)
|
10
|
+
|
11
|
+
|
12
|
+
# The C and CXX include file regular expressions for this directory.
|
13
|
+
set(CMAKE_C_INCLUDE_REGEX_SCAN "^.*$")
|
14
|
+
set(CMAKE_C_INCLUDE_REGEX_COMPLAIN "^$")
|
15
|
+
set(CMAKE_CXX_INCLUDE_REGEX_SCAN ${CMAKE_C_INCLUDE_REGEX_SCAN})
|
16
|
+
set(CMAKE_CXX_INCLUDE_REGEX_COMPLAIN ${CMAKE_C_INCLUDE_REGEX_COMPLAIN})
|
@@ -0,0 +1 @@
|
|
1
|
+
0
|
@@ -0,0 +1,12 @@
|
|
1
|
+
# CMake generated Testfile for
|
2
|
+
# Source directory: /Users/gjtorikian/Development/commonmarker/ext/commonmarker/cmark/test
|
3
|
+
# Build directory: /Users/gjtorikian/Development/commonmarker/ext/commonmarker/cmark/build/testdir
|
4
|
+
#
|
5
|
+
# This file includes the relevant testing commands required for
|
6
|
+
# testing this directory and lists subdirectories to be tested as well.
|
7
|
+
add_test(api_test "/Users/gjtorikian/Development/commonmarker/ext/commonmarker/cmark/build/api_test/api_test")
|
8
|
+
add_test(html_normalization "/usr/local/bin/python3" "-m" "doctest" "/Users/gjtorikian/Development/commonmarker/ext/commonmarker/cmark/test/normalize.py")
|
9
|
+
add_test(spectest_library "/usr/local/bin/python3" "/Users/gjtorikian/Development/commonmarker/ext/commonmarker/cmark/test/spec_tests.py" "--no-normalize" "--spec" "/Users/gjtorikian/Development/commonmarker/ext/commonmarker/cmark/test/spec.txt" "--library-dir" "/Users/gjtorikian/Development/commonmarker/ext/commonmarker/cmark/build/src")
|
10
|
+
add_test(pathological_tests_library "/usr/local/bin/python3" "/Users/gjtorikian/Development/commonmarker/ext/commonmarker/cmark/test/pathological_tests.py" "--library-dir" "/Users/gjtorikian/Development/commonmarker/ext/commonmarker/cmark/build/src")
|
11
|
+
add_test(spectest_executable "/usr/local/bin/python3" "/Users/gjtorikian/Development/commonmarker/ext/commonmarker/cmark/test/spec_tests.py" "--no-normalize" "--spec" "/Users/gjtorikian/Development/commonmarker/ext/commonmarker/cmark/test/spec.txt" "--program" "/Users/gjtorikian/Development/commonmarker/ext/commonmarker/cmark/build/src/cmark")
|
12
|
+
add_test(smartpuncttest_executable "/usr/local/bin/python3" "/Users/gjtorikian/Development/commonmarker/ext/commonmarker/cmark/test/spec_tests.py" "--no-normalize" "--spec" "/Users/gjtorikian/Development/commonmarker/ext/commonmarker/cmark/test/smart_punct.txt" "--program" "/Users/gjtorikian/Development/commonmarker/ext/commonmarker/cmark/build/src/cmark --smart")
|
@@ -0,0 +1,181 @@
|
|
1
|
+
# CMAKE generated file: DO NOT EDIT!
|
2
|
+
# Generated by "Unix Makefiles" Generator, CMake Version 3.2
|
3
|
+
|
4
|
+
# Default target executed when no arguments are given to make.
|
5
|
+
default_target: all
|
6
|
+
.PHONY : default_target
|
7
|
+
|
8
|
+
# Allow only one "make -f Makefile2" at a time, but pass parallelism.
|
9
|
+
.NOTPARALLEL:
|
10
|
+
|
11
|
+
#=============================================================================
|
12
|
+
# Special targets provided by cmake.
|
13
|
+
|
14
|
+
# Disable implicit rules so canonical targets will work.
|
15
|
+
.SUFFIXES:
|
16
|
+
|
17
|
+
# Remove some rules from gmake that .SUFFIXES does not remove.
|
18
|
+
SUFFIXES =
|
19
|
+
|
20
|
+
.SUFFIXES: .hpux_make_needs_suffix_list
|
21
|
+
|
22
|
+
# Suppress display of executed commands.
|
23
|
+
$(VERBOSE).SILENT:
|
24
|
+
|
25
|
+
# A target that is always out of date.
|
26
|
+
cmake_force:
|
27
|
+
.PHONY : cmake_force
|
28
|
+
|
29
|
+
#=============================================================================
|
30
|
+
# Set environment variables for the build.
|
31
|
+
|
32
|
+
# The shell in which to execute make rules.
|
33
|
+
SHELL = /bin/sh
|
34
|
+
|
35
|
+
# The CMake executable.
|
36
|
+
CMAKE_COMMAND = /usr/local/Cellar/cmake/3.2.2/bin/cmake
|
37
|
+
|
38
|
+
# The command to remove a file.
|
39
|
+
RM = /usr/local/Cellar/cmake/3.2.2/bin/cmake -E remove -f
|
40
|
+
|
41
|
+
# Escaping for special characters.
|
42
|
+
EQUALS = =
|
43
|
+
|
44
|
+
# The top-level source directory on which CMake was run.
|
45
|
+
CMAKE_SOURCE_DIR = /Users/gjtorikian/Development/commonmarker/ext/commonmarker/cmark
|
46
|
+
|
47
|
+
# The top-level build directory on which CMake was run.
|
48
|
+
CMAKE_BINARY_DIR = /Users/gjtorikian/Development/commonmarker/ext/commonmarker/cmark/build
|
49
|
+
|
50
|
+
#=============================================================================
|
51
|
+
# Targets provided globally by CMake.
|
52
|
+
|
53
|
+
# Special rule for the target install/strip
|
54
|
+
install/strip: preinstall
|
55
|
+
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Installing the project stripped..."
|
56
|
+
/usr/local/Cellar/cmake/3.2.2/bin/cmake -DCMAKE_INSTALL_DO_STRIP=1 -P cmake_install.cmake
|
57
|
+
.PHONY : install/strip
|
58
|
+
|
59
|
+
# Special rule for the target install/strip
|
60
|
+
install/strip/fast: install/strip
|
61
|
+
.PHONY : install/strip/fast
|
62
|
+
|
63
|
+
# Special rule for the target edit_cache
|
64
|
+
edit_cache:
|
65
|
+
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Running CMake cache editor..."
|
66
|
+
/usr/local/Cellar/cmake/3.2.2/bin/ccmake -H$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR)
|
67
|
+
.PHONY : edit_cache
|
68
|
+
|
69
|
+
# Special rule for the target edit_cache
|
70
|
+
edit_cache/fast: edit_cache
|
71
|
+
.PHONY : edit_cache/fast
|
72
|
+
|
73
|
+
# Special rule for the target rebuild_cache
|
74
|
+
rebuild_cache:
|
75
|
+
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Running CMake to regenerate build system..."
|
76
|
+
/usr/local/Cellar/cmake/3.2.2/bin/cmake -H$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR)
|
77
|
+
.PHONY : rebuild_cache
|
78
|
+
|
79
|
+
# Special rule for the target rebuild_cache
|
80
|
+
rebuild_cache/fast: rebuild_cache
|
81
|
+
.PHONY : rebuild_cache/fast
|
82
|
+
|
83
|
+
# Special rule for the target install
|
84
|
+
install: preinstall
|
85
|
+
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Install the project..."
|
86
|
+
/usr/local/Cellar/cmake/3.2.2/bin/cmake -P cmake_install.cmake
|
87
|
+
.PHONY : install
|
88
|
+
|
89
|
+
# Special rule for the target install
|
90
|
+
install/fast: preinstall/fast
|
91
|
+
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Install the project..."
|
92
|
+
/usr/local/Cellar/cmake/3.2.2/bin/cmake -P cmake_install.cmake
|
93
|
+
.PHONY : install/fast
|
94
|
+
|
95
|
+
# Special rule for the target list_install_components
|
96
|
+
list_install_components:
|
97
|
+
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Available install components are: \"Unspecified\""
|
98
|
+
.PHONY : list_install_components
|
99
|
+
|
100
|
+
# Special rule for the target list_install_components
|
101
|
+
list_install_components/fast: list_install_components
|
102
|
+
.PHONY : list_install_components/fast
|
103
|
+
|
104
|
+
# Special rule for the target test
|
105
|
+
test:
|
106
|
+
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Running tests..."
|
107
|
+
/usr/local/Cellar/cmake/3.2.2/bin/ctest --force-new-ctest-process $(ARGS)
|
108
|
+
.PHONY : test
|
109
|
+
|
110
|
+
# Special rule for the target test
|
111
|
+
test/fast: test
|
112
|
+
.PHONY : test/fast
|
113
|
+
|
114
|
+
# Special rule for the target install/local
|
115
|
+
install/local: preinstall
|
116
|
+
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Installing only the local directory..."
|
117
|
+
/usr/local/Cellar/cmake/3.2.2/bin/cmake -DCMAKE_INSTALL_LOCAL_ONLY=1 -P cmake_install.cmake
|
118
|
+
.PHONY : install/local
|
119
|
+
|
120
|
+
# Special rule for the target install/local
|
121
|
+
install/local/fast: install/local
|
122
|
+
.PHONY : install/local/fast
|
123
|
+
|
124
|
+
# The main all target
|
125
|
+
all: cmake_check_build_system
|
126
|
+
cd /Users/gjtorikian/Development/commonmarker/ext/commonmarker/cmark/build && $(CMAKE_COMMAND) -E cmake_progress_start /Users/gjtorikian/Development/commonmarker/ext/commonmarker/cmark/build/CMakeFiles /Users/gjtorikian/Development/commonmarker/ext/commonmarker/cmark/build/testdir/CMakeFiles/progress.marks
|
127
|
+
cd /Users/gjtorikian/Development/commonmarker/ext/commonmarker/cmark/build && $(MAKE) -f CMakeFiles/Makefile2 testdir/all
|
128
|
+
$(CMAKE_COMMAND) -E cmake_progress_start /Users/gjtorikian/Development/commonmarker/ext/commonmarker/cmark/build/CMakeFiles 0
|
129
|
+
.PHONY : all
|
130
|
+
|
131
|
+
# The main clean target
|
132
|
+
clean:
|
133
|
+
cd /Users/gjtorikian/Development/commonmarker/ext/commonmarker/cmark/build && $(MAKE) -f CMakeFiles/Makefile2 testdir/clean
|
134
|
+
.PHONY : clean
|
135
|
+
|
136
|
+
# The main clean target
|
137
|
+
clean/fast: clean
|
138
|
+
.PHONY : clean/fast
|
139
|
+
|
140
|
+
# Prepare targets for installation.
|
141
|
+
preinstall: all
|
142
|
+
cd /Users/gjtorikian/Development/commonmarker/ext/commonmarker/cmark/build && $(MAKE) -f CMakeFiles/Makefile2 testdir/preinstall
|
143
|
+
.PHONY : preinstall
|
144
|
+
|
145
|
+
# Prepare targets for installation.
|
146
|
+
preinstall/fast:
|
147
|
+
cd /Users/gjtorikian/Development/commonmarker/ext/commonmarker/cmark/build && $(MAKE) -f CMakeFiles/Makefile2 testdir/preinstall
|
148
|
+
.PHONY : preinstall/fast
|
149
|
+
|
150
|
+
# clear depends
|
151
|
+
depend:
|
152
|
+
cd /Users/gjtorikian/Development/commonmarker/ext/commonmarker/cmark/build && $(CMAKE_COMMAND) -H$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 1
|
153
|
+
.PHONY : depend
|
154
|
+
|
155
|
+
# Help Target
|
156
|
+
help:
|
157
|
+
@echo "The following are some of the valid targets for this Makefile:"
|
158
|
+
@echo "... all (the default if no target is provided)"
|
159
|
+
@echo "... clean"
|
160
|
+
@echo "... depend"
|
161
|
+
@echo "... install/strip"
|
162
|
+
@echo "... edit_cache"
|
163
|
+
@echo "... rebuild_cache"
|
164
|
+
@echo "... install"
|
165
|
+
@echo "... list_install_components"
|
166
|
+
@echo "... test"
|
167
|
+
@echo "... install/local"
|
168
|
+
.PHONY : help
|
169
|
+
|
170
|
+
|
171
|
+
|
172
|
+
#=============================================================================
|
173
|
+
# Special targets to cleanup operation of make.
|
174
|
+
|
175
|
+
# Special rule to run CMake to check the build system integrity.
|
176
|
+
# No rule that depends on this can have commands that come from listfiles
|
177
|
+
# because they might be regenerated.
|
178
|
+
cmake_check_build_system:
|
179
|
+
cd /Users/gjtorikian/Development/commonmarker/ext/commonmarker/cmark/build && $(CMAKE_COMMAND) -H$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 0
|
180
|
+
.PHONY : cmake_check_build_system
|
181
|
+
|
@@ -0,0 +1,29 @@
|
|
1
|
+
# Install script for directory: /Users/gjtorikian/Development/commonmarker/ext/commonmarker/cmark/test
|
2
|
+
|
3
|
+
# Set the install prefix
|
4
|
+
if(NOT DEFINED CMAKE_INSTALL_PREFIX)
|
5
|
+
set(CMAKE_INSTALL_PREFIX "/usr/local")
|
6
|
+
endif()
|
7
|
+
string(REGEX REPLACE "/$" "" CMAKE_INSTALL_PREFIX "${CMAKE_INSTALL_PREFIX}")
|
8
|
+
|
9
|
+
# Set the install configuration name.
|
10
|
+
if(NOT DEFINED CMAKE_INSTALL_CONFIG_NAME)
|
11
|
+
if(BUILD_TYPE)
|
12
|
+
string(REGEX REPLACE "^[^A-Za-z0-9_]+" ""
|
13
|
+
CMAKE_INSTALL_CONFIG_NAME "${BUILD_TYPE}")
|
14
|
+
else()
|
15
|
+
set(CMAKE_INSTALL_CONFIG_NAME "Release")
|
16
|
+
endif()
|
17
|
+
message(STATUS "Install configuration: \"${CMAKE_INSTALL_CONFIG_NAME}\"")
|
18
|
+
endif()
|
19
|
+
|
20
|
+
# Set the component getting installed.
|
21
|
+
if(NOT CMAKE_INSTALL_COMPONENT)
|
22
|
+
if(COMPONENT)
|
23
|
+
message(STATUS "Install component: \"${COMPONENT}\"")
|
24
|
+
set(CMAKE_INSTALL_COMPONENT "${COMPONENT}")
|
25
|
+
else()
|
26
|
+
set(CMAKE_INSTALL_COMPONENT)
|
27
|
+
endif()
|
28
|
+
endif()
|
29
|
+
|
@@ -0,0 +1,153 @@
|
|
1
|
+
[0.19.0]
|
2
|
+
|
3
|
+
* Fixed `_` emphasis parsing to conform to spec (jgm/CommonMark#317).
|
4
|
+
* Updated `spec.txt`.
|
5
|
+
* Compile static library with `-DCMARK_STATIC_DEFINE` (Nick Wellnhofer).
|
6
|
+
* Suppress warnings about Windows runtime library files (Nick Wellnhofer).
|
7
|
+
Visual Studio Express editions do not include the redistributable files.
|
8
|
+
Set `CMAKE_INSTALL_SYSTEM_RUNTIME_LIBS_NO_WARNINGS` to suppress warnings.
|
9
|
+
* Added appyeyor: Windows continuous integration (`appveyor.yml`).
|
10
|
+
* Use `os.path.join` in `test/cmark.py` for proper cross-platform paths.
|
11
|
+
* Fixed `Makefile.nmake`.
|
12
|
+
* Improved `make afl`: added `test/afl_dictionary`, increased timeout
|
13
|
+
for hangs.
|
14
|
+
* Improved README with a description of the library's strengths.
|
15
|
+
* Pass-through Unicode non-characters (Nick Wellnhofer).
|
16
|
+
Despite their name, Unicode non-characters are valid code points. They
|
17
|
+
should be passed through by a library like libcmark.
|
18
|
+
* Check return status of `utf8proc_iterate` (#27).
|
19
|
+
|
20
|
+
[0.18.3]
|
21
|
+
|
22
|
+
* Include patch level in soname (Nick Wellnhofer). Minor version is
|
23
|
+
tied to spec version, so this allows breaking the ABI between spec
|
24
|
+
releases.
|
25
|
+
* Install compiler-provided system runtime libraries (Changjiang Yang).
|
26
|
+
* Use `strbuf_printf` instead of `snprintf`. `snprintf` is not
|
27
|
+
available on some platforms (Visual Studio 2013 and earlier).
|
28
|
+
* Fixed memory access bug: "invalid read of size 1" on input `[link](<>)`.
|
29
|
+
|
30
|
+
[0.18.2]
|
31
|
+
|
32
|
+
* Added commonmark renderer: `cmark_render_commonmark`. In addition
|
33
|
+
to options, this takes a `width` parameter. A value of 0 disables
|
34
|
+
wrapping; a positive value wraps the document to the specified
|
35
|
+
width. Note that width is automatically set to 0 if the
|
36
|
+
`CMARK_OPT_HARDBREAKS` option is set.
|
37
|
+
* The `cmark` executable now allows `-t commonmark` for output as
|
38
|
+
CommonMark. A `--width` option has been added to specify wrapping
|
39
|
+
width.
|
40
|
+
* Added `roundtrip_test` Makefile target. This runs all the spec
|
41
|
+
through the commonmark renderer, and then through the commonmark
|
42
|
+
parser, and compares normalized HTML to the test. All tests pass
|
43
|
+
with the current parser and renderer, giving us some confidence that
|
44
|
+
the commonmark renderer is sufficiently robust. Eventually this
|
45
|
+
should be pythonized and put in the cmake test routine.
|
46
|
+
* Removed an unnecessary check in `blocks.c`. By the time we check
|
47
|
+
for a list start, we've already checked for a horizontal rule, so
|
48
|
+
we don't need to repeat that check here. Thanks to Robin Stocker for
|
49
|
+
pointing out a similar redundancy in commonmark.js.
|
50
|
+
* Fixed bug in `cmark_strbuf_unescape` (`buffer.c`). The old function
|
51
|
+
gave incorrect results on input like `\\*`, since the next backslash
|
52
|
+
would be treated as escaping the `*` instead of being escaped itself.
|
53
|
+
* `scanners.re`: added `_scan_scheme`, `scan_scheme`, used in the
|
54
|
+
commonmark renderer.
|
55
|
+
* Check for `CMAKE_C_COMPILER` (not `CC_COMPILER`) when setting C flags.
|
56
|
+
* Update code examples in documentation, adding new parser option
|
57
|
+
argument, and using `CMARK_OPT_DEFAULT` (Nick Wellnhofer).
|
58
|
+
* Added options parameter to `cmark_markdown_to_html`.
|
59
|
+
* Removed obsolete reference to `CMARK_NODE_LINK_LABEL`.
|
60
|
+
* `make leakcheck` now checks all output formats.
|
61
|
+
* `test/cmark.py`: set default options for `markdown_to_html`.
|
62
|
+
* Warn about buggy re2c versions (Nick Wellnhofer).
|
63
|
+
|
64
|
+
[0.18.1]
|
65
|
+
|
66
|
+
* Build static version of library in default build (#11).
|
67
|
+
* `cmark.h`: Add missing argument to `cmark_parser_new` (#12).
|
68
|
+
|
69
|
+
[0.18]
|
70
|
+
|
71
|
+
* Switch to 2-clause BSD license, with agreement of contributors.
|
72
|
+
* Added Profile build type, `make prof` target.
|
73
|
+
* Fixed autolink scanner to conform to the spec. Backslash escapes
|
74
|
+
not allowed in autolinks.
|
75
|
+
* Don't rely on strnlen being available (Nick Wellnhofer).
|
76
|
+
* Updated scanners for new whitespace definition.
|
77
|
+
* Added `CMARK_OPT_SMART` and `--smart` option, `smart.c`, `smart.h`.
|
78
|
+
* Added test for `--smart` option.
|
79
|
+
* Fixed segfault with --normalize (closes #7).
|
80
|
+
* Moved normalization step from XML renderer to `cmark_parser_finish`.
|
81
|
+
* Added options parameter to `cmark_parse_document`, `cmark_parse_file`.
|
82
|
+
* Fixed man renderer's escaping for unicode characters.
|
83
|
+
* Don't require python3 to make `cmark.3` man page.
|
84
|
+
* Use ASCII escapes for punctuation characters for portability.
|
85
|
+
* Made `options` an int rather than a long, for consistency.
|
86
|
+
* Packed `cmark_node` struct to fit into 128 bytes.
|
87
|
+
This gives a small performance boost and lowers memory usage.
|
88
|
+
* Repacked `delimiter` struct to avoid hole.
|
89
|
+
* Fixed use-after-free bug, which arose when a paragraph containing
|
90
|
+
only reference links and blank space was finalized (#9).
|
91
|
+
Avoid using `parser->current` in the loop that creates new
|
92
|
+
blocks, since `finalize` in `add_child` may have removed
|
93
|
+
the current parser (if it contains only reference definitions).
|
94
|
+
This isn't a great solution; in the long run we need to rewrite
|
95
|
+
to make the logic clearer and to make it harder to make
|
96
|
+
mistakes like this one.
|
97
|
+
* Added 'Asan' build type. `make asan` will link against ASan; the
|
98
|
+
resulting executable will do checks for memory access issues.
|
99
|
+
Thanks @JordanMilne for the suggestion.
|
100
|
+
* Add Makefile target to fuzz with AFL (Nick Wellnhofer)
|
101
|
+
The variable `$AFL_PATH` must point to the directory containing the AFL
|
102
|
+
binaries. It can be set as an environment variable or passed to make on
|
103
|
+
the command line.
|
104
|
+
|
105
|
+
[0.17]
|
106
|
+
|
107
|
+
* Stripped out all JavaScript related code and documentation, moving
|
108
|
+
it to a separate repository (<https://github.com/jgm/commonmark.js>).
|
109
|
+
* Improved Makefile targets, so that `cmake` is run again only when
|
110
|
+
necessary (Nick Wellnhofer).
|
111
|
+
* Added `INSTALL_PREFIX` to the Makefile, allowing installation to a
|
112
|
+
location other than `/usr/local` without invoking `cmake`
|
113
|
+
manually (Nick Wellnhofer).
|
114
|
+
* `make test` now guarantees that the project will
|
115
|
+
be rebuilt before tests are run (Nick Wellnhofer).
|
116
|
+
* Prohibited overriding of some Makefile variables (Nick Wellnhofer).
|
117
|
+
* Provide version number and string, both as macros
|
118
|
+
(`CMARK_VERSION`, `CMARK_VERSION_STRING`) and as symbols
|
119
|
+
(`cmark_version`, `cmark_version_string`) (Nick Wellnhofer). All of
|
120
|
+
these come from `cmark_version.h`, which is constructed from a
|
121
|
+
template `cmark_version.h.in` and data in `CMakeLists.txt`.
|
122
|
+
* Avoid calling `free` on null pointer.
|
123
|
+
* Added an accessor for an iterator's root node (`cmark_iter_get_root`).
|
124
|
+
* Added user data field for nodes (Nick Wellnhofer). This is
|
125
|
+
intended mainly for use in bindings for dynamic languages, where
|
126
|
+
it could store a pointer to a target language object (#287). But
|
127
|
+
it can be used for anything.
|
128
|
+
* Man renderer: properly escape multiline strings.
|
129
|
+
* Added assertion to raise error if finalize is called on a closed block.
|
130
|
+
* Implemented the new spec rule for emphasis and strong emphasis with `_`.
|
131
|
+
* Moved the check for fence-close with the other checks for end-of-block.
|
132
|
+
* Fixed a bug with loose list detection with items containings
|
133
|
+
fenced code blocks (#285).
|
134
|
+
* Removed recursive algorithm in `ends_with_blank_line` (#286).
|
135
|
+
* Minor code reformatting: renamed parameters.
|
136
|
+
|
137
|
+
[0.16]
|
138
|
+
|
139
|
+
* Added xml renderer (XML representation of the CommonMark AST,
|
140
|
+
which is described in `CommonMark.dtd`).
|
141
|
+
* Reduced size of gperf entity table (Nick Wellnhofer).
|
142
|
+
* Reworked iterators to allow deletion of nodes during iteration
|
143
|
+
(Nick Wellnhofer).
|
144
|
+
* Optimized `S_is_leaf`.
|
145
|
+
* Added `cmark_iter_reset` to iterator API.
|
146
|
+
* Added `cmark_consolidate_text_nodes` to API to combine adjacent
|
147
|
+
text nodes.
|
148
|
+
* Added `CMARK_OPT_NORMALIZE` to options (this combines adjacent
|
149
|
+
text nodes).
|
150
|
+
* Added `--normalize` option to command-line program.
|
151
|
+
* Improved regex for HTML comments in inline parsing.
|
152
|
+
* Python is no longer required for a basic build from the
|
153
|
+
repository.
|