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.

Files changed (291) hide show
  1. checksums.yaml +7 -0
  2. data/Gemfile +8 -0
  3. data/LICENSE.txt +22 -0
  4. data/README.md +119 -0
  5. data/Rakefile +39 -0
  6. data/bin/commonmarker +41 -0
  7. data/commonmarker.gemspec +30 -0
  8. data/ext/commonmarker/cmark/CMakeLists.txt +25 -0
  9. data/ext/commonmarker/cmark/COPYING +192 -0
  10. data/ext/commonmarker/cmark/FindAsan.cmake +74 -0
  11. data/ext/commonmarker/cmark/Makefile +170 -0
  12. data/ext/commonmarker/cmark/Makefile.nmake +36 -0
  13. data/ext/commonmarker/cmark/README.md +169 -0
  14. data/ext/commonmarker/cmark/api_test/CMakeLists.txt +25 -0
  15. data/ext/commonmarker/cmark/api_test/cplusplus.cpp +15 -0
  16. data/ext/commonmarker/cmark/api_test/cplusplus.h +17 -0
  17. data/ext/commonmarker/cmark/api_test/harness.c +102 -0
  18. data/ext/commonmarker/cmark/api_test/harness.h +42 -0
  19. data/ext/commonmarker/cmark/api_test/main.c +700 -0
  20. data/ext/commonmarker/cmark/appveyor.yml +15 -0
  21. data/ext/commonmarker/cmark/bench/statistics.py +595 -0
  22. data/ext/commonmarker/cmark/bench/stats.py +19 -0
  23. data/ext/commonmarker/cmark/benchmarks.md +33 -0
  24. data/ext/commonmarker/cmark/build/CMakeCache.txt +362 -0
  25. data/ext/commonmarker/cmark/build/CMakeFiles/3.2.2/CMakeCCompiler.cmake +63 -0
  26. data/ext/commonmarker/cmark/build/CMakeFiles/3.2.2/CMakeCXXCompiler.cmake +64 -0
  27. data/ext/commonmarker/cmark/build/CMakeFiles/3.2.2/CMakeDetermineCompilerABI_C.bin +0 -0
  28. data/ext/commonmarker/cmark/build/CMakeFiles/3.2.2/CMakeDetermineCompilerABI_CXX.bin +0 -0
  29. data/ext/commonmarker/cmark/build/CMakeFiles/3.2.2/CMakeSystem.cmake +15 -0
  30. data/ext/commonmarker/cmark/build/CMakeFiles/3.2.2/CompilerIdC/CMakeCCompilerId.c +499 -0
  31. data/ext/commonmarker/cmark/build/CMakeFiles/3.2.2/CompilerIdC/a.out +0 -0
  32. data/ext/commonmarker/cmark/build/CMakeFiles/3.2.2/CompilerIdCXX/CMakeCXXCompilerId.cpp +489 -0
  33. data/ext/commonmarker/cmark/build/CMakeFiles/3.2.2/CompilerIdCXX/a.out +0 -0
  34. data/ext/commonmarker/cmark/build/CMakeFiles/CMakeDirectoryInformation.cmake +16 -0
  35. data/ext/commonmarker/cmark/build/CMakeFiles/CMakeError.log +30 -0
  36. data/ext/commonmarker/cmark/build/CMakeFiles/CMakeOutput.log +598 -0
  37. data/ext/commonmarker/cmark/build/CMakeFiles/Makefile.cmake +77 -0
  38. data/ext/commonmarker/cmark/build/CMakeFiles/Makefile2 +268 -0
  39. data/ext/commonmarker/cmark/build/CMakeFiles/TargetDirectories.txt +4 -0
  40. data/ext/commonmarker/cmark/build/CMakeFiles/cmake.check_cache +1 -0
  41. data/ext/commonmarker/cmark/build/CMakeFiles/feature_tests.bin +0 -0
  42. data/ext/commonmarker/cmark/build/CMakeFiles/feature_tests.c +34 -0
  43. data/ext/commonmarker/cmark/build/CMakeFiles/feature_tests.cxx +405 -0
  44. data/ext/commonmarker/cmark/build/CMakeFiles/progress.marks +1 -0
  45. data/ext/commonmarker/cmark/build/CTestTestfile.cmake +10 -0
  46. data/ext/commonmarker/cmark/build/Makefile +237 -0
  47. data/ext/commonmarker/cmark/build/api_test/CMakeFiles/CMakeDirectoryInformation.cmake +16 -0
  48. data/ext/commonmarker/cmark/build/api_test/CMakeFiles/api_test.dir/C.includecache +92 -0
  49. data/ext/commonmarker/cmark/build/api_test/CMakeFiles/api_test.dir/CXX.includecache +36 -0
  50. data/ext/commonmarker/cmark/build/api_test/CMakeFiles/api_test.dir/DependInfo.cmake +29 -0
  51. data/ext/commonmarker/cmark/build/api_test/CMakeFiles/api_test.dir/build.make +155 -0
  52. data/ext/commonmarker/cmark/build/api_test/CMakeFiles/api_test.dir/cmake_clean.cmake +12 -0
  53. data/ext/commonmarker/cmark/build/api_test/CMakeFiles/api_test.dir/cplusplus.cpp.o +0 -0
  54. data/ext/commonmarker/cmark/build/api_test/CMakeFiles/api_test.dir/depend.internal +25 -0
  55. data/ext/commonmarker/cmark/build/api_test/CMakeFiles/api_test.dir/depend.make +25 -0
  56. data/ext/commonmarker/cmark/build/api_test/CMakeFiles/api_test.dir/flags.make +13 -0
  57. data/ext/commonmarker/cmark/build/api_test/CMakeFiles/api_test.dir/harness.c.o +0 -0
  58. data/ext/commonmarker/cmark/build/api_test/CMakeFiles/api_test.dir/link.txt +1 -0
  59. data/ext/commonmarker/cmark/build/api_test/CMakeFiles/api_test.dir/main.c.o +0 -0
  60. data/ext/commonmarker/cmark/build/api_test/CMakeFiles/api_test.dir/progress.make +4 -0
  61. data/ext/commonmarker/cmark/build/api_test/CMakeFiles/progress.marks +1 -0
  62. data/ext/commonmarker/cmark/build/api_test/Makefile +277 -0
  63. data/ext/commonmarker/cmark/build/api_test/api_test +0 -0
  64. data/ext/commonmarker/cmark/build/api_test/cmake_install.cmake +29 -0
  65. data/ext/commonmarker/cmark/build/cmake_install.cmake +48 -0
  66. data/ext/commonmarker/cmark/build/man/CMakeFiles/CMakeDirectoryInformation.cmake +16 -0
  67. data/ext/commonmarker/cmark/build/man/CMakeFiles/progress.marks +1 -0
  68. data/ext/commonmarker/cmark/build/man/Makefile +181 -0
  69. data/ext/commonmarker/cmark/build/man/cmake_install.cmake +37 -0
  70. data/ext/commonmarker/cmark/build/src/CMakeFiles/CMakeDirectoryInformation.cmake +16 -0
  71. data/ext/commonmarker/cmark/build/src/CMakeFiles/cmark.dir/C.includecache +422 -0
  72. data/ext/commonmarker/cmark/build/src/CMakeFiles/cmark.dir/DependInfo.cmake +39 -0
  73. data/ext/commonmarker/cmark/build/src/CMakeFiles/cmark.dir/blocks.c.o +0 -0
  74. data/ext/commonmarker/cmark/build/src/CMakeFiles/cmark.dir/buffer.c.o +0 -0
  75. data/ext/commonmarker/cmark/build/src/CMakeFiles/cmark.dir/build.make +544 -0
  76. data/ext/commonmarker/cmark/build/src/CMakeFiles/cmark.dir/cmake_clean.cmake +27 -0
  77. data/ext/commonmarker/cmark/build/src/CMakeFiles/cmark.dir/cmark.c.o +0 -0
  78. data/ext/commonmarker/cmark/build/src/CMakeFiles/cmark.dir/cmark_ctype.c.o +0 -0
  79. data/ext/commonmarker/cmark/build/src/CMakeFiles/cmark.dir/commonmark.c.o +0 -0
  80. data/ext/commonmarker/cmark/build/src/CMakeFiles/cmark.dir/depend.internal +177 -0
  81. data/ext/commonmarker/cmark/build/src/CMakeFiles/cmark.dir/depend.make +177 -0
  82. data/ext/commonmarker/cmark/build/src/CMakeFiles/cmark.dir/flags.make +8 -0
  83. data/ext/commonmarker/cmark/build/src/CMakeFiles/cmark.dir/houdini_href_e.c.o +0 -0
  84. data/ext/commonmarker/cmark/build/src/CMakeFiles/cmark.dir/houdini_html_e.c.o +0 -0
  85. data/ext/commonmarker/cmark/build/src/CMakeFiles/cmark.dir/houdini_html_u.c.o +0 -0
  86. data/ext/commonmarker/cmark/build/src/CMakeFiles/cmark.dir/html.c.o +0 -0
  87. data/ext/commonmarker/cmark/build/src/CMakeFiles/cmark.dir/inlines.c.o +0 -0
  88. data/ext/commonmarker/cmark/build/src/CMakeFiles/cmark.dir/iterator.c.o +0 -0
  89. data/ext/commonmarker/cmark/build/src/CMakeFiles/cmark.dir/link.txt +1 -0
  90. data/ext/commonmarker/cmark/build/src/CMakeFiles/cmark.dir/main.c.o +0 -0
  91. data/ext/commonmarker/cmark/build/src/CMakeFiles/cmark.dir/man.c.o +0 -0
  92. data/ext/commonmarker/cmark/build/src/CMakeFiles/cmark.dir/node.c.o +0 -0
  93. data/ext/commonmarker/cmark/build/src/CMakeFiles/cmark.dir/progress.make +19 -0
  94. data/ext/commonmarker/cmark/build/src/CMakeFiles/cmark.dir/references.c.o +0 -0
  95. data/ext/commonmarker/cmark/build/src/CMakeFiles/cmark.dir/scanners.c.o +0 -0
  96. data/ext/commonmarker/cmark/build/src/CMakeFiles/cmark.dir/utf8.c.o +0 -0
  97. data/ext/commonmarker/cmark/build/src/CMakeFiles/cmark.dir/xml.c.o +0 -0
  98. data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark.dir/C.includecache +394 -0
  99. data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark.dir/DependInfo.cmake +44 -0
  100. data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark.dir/blocks.c.o +0 -0
  101. data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark.dir/buffer.c.o +0 -0
  102. data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark.dir/build.make +522 -0
  103. data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark.dir/cmake_clean.cmake +27 -0
  104. data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark.dir/cmark.c.o +0 -0
  105. data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark.dir/cmark_ctype.c.o +0 -0
  106. data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark.dir/commonmark.c.o +0 -0
  107. data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark.dir/depend.internal +169 -0
  108. data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark.dir/depend.make +169 -0
  109. data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark.dir/flags.make +8 -0
  110. data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark.dir/houdini_href_e.c.o +0 -0
  111. data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark.dir/houdini_html_e.c.o +0 -0
  112. data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark.dir/houdini_html_u.c.o +0 -0
  113. data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark.dir/html.c.o +0 -0
  114. data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark.dir/inlines.c.o +0 -0
  115. data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark.dir/iterator.c.o +0 -0
  116. data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark.dir/link.txt +1 -0
  117. data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark.dir/man.c.o +0 -0
  118. data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark.dir/node.c.o +0 -0
  119. data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark.dir/progress.make +18 -0
  120. data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark.dir/references.c.o +0 -0
  121. data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark.dir/scanners.c.o +0 -0
  122. data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark.dir/utf8.c.o +0 -0
  123. data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark.dir/xml.c.o +0 -0
  124. data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark_static.dir/C.includecache +394 -0
  125. data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark_static.dir/DependInfo.cmake +38 -0
  126. data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark_static.dir/blocks.c.o +0 -0
  127. data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark_static.dir/buffer.c.o +0 -0
  128. data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark_static.dir/build.make +519 -0
  129. data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark_static.dir/cmake_clean.cmake +26 -0
  130. data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark_static.dir/cmake_clean_target.cmake +3 -0
  131. data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark_static.dir/cmark.c.o +0 -0
  132. data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark_static.dir/cmark_ctype.c.o +0 -0
  133. data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark_static.dir/commonmark.c.o +0 -0
  134. data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark_static.dir/depend.internal +169 -0
  135. data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark_static.dir/depend.make +169 -0
  136. data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark_static.dir/flags.make +8 -0
  137. data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark_static.dir/houdini_href_e.c.o +0 -0
  138. data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark_static.dir/houdini_html_e.c.o +0 -0
  139. data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark_static.dir/houdini_html_u.c.o +0 -0
  140. data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark_static.dir/html.c.o +0 -0
  141. data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark_static.dir/inlines.c.o +0 -0
  142. data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark_static.dir/iterator.c.o +0 -0
  143. data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark_static.dir/link.txt +2 -0
  144. data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark_static.dir/man.c.o +0 -0
  145. data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark_static.dir/node.c.o +0 -0
  146. data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark_static.dir/progress.make +18 -0
  147. data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark_static.dir/references.c.o +0 -0
  148. data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark_static.dir/scanners.c.o +0 -0
  149. data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark_static.dir/utf8.c.o +0 -0
  150. data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark_static.dir/xml.c.o +0 -0
  151. data/ext/commonmarker/cmark/build/src/CMakeFiles/progress.marks +1 -0
  152. data/ext/commonmarker/cmark/build/src/Makefile +814 -0
  153. data/ext/commonmarker/cmark/build/src/cmake_install.cmake +69 -0
  154. data/ext/commonmarker/cmark/build/src/cmark +0 -0
  155. data/ext/commonmarker/cmark/build/src/cmark_export.h +41 -0
  156. data/ext/commonmarker/cmark/build/src/cmark_version.h +7 -0
  157. data/ext/commonmarker/cmark/build/src/config.h +23 -0
  158. data/ext/commonmarker/cmark/build/src/libcmark.0.19.0.dylib +0 -0
  159. data/ext/commonmarker/cmark/build/src/libcmark.a +0 -0
  160. data/ext/commonmarker/cmark/build/src/libcmark.dylib +0 -0
  161. data/ext/commonmarker/cmark/build/src/libcmark.pc +10 -0
  162. data/ext/commonmarker/cmark/build/testdir/CMakeFiles/CMakeDirectoryInformation.cmake +16 -0
  163. data/ext/commonmarker/cmark/build/testdir/CMakeFiles/progress.marks +1 -0
  164. data/ext/commonmarker/cmark/build/testdir/CTestTestfile.cmake +12 -0
  165. data/ext/commonmarker/cmark/build/testdir/Makefile +181 -0
  166. data/ext/commonmarker/cmark/build/testdir/cmake_install.cmake +29 -0
  167. data/ext/commonmarker/cmark/changelog.txt +153 -0
  168. data/ext/commonmarker/cmark/data/CaseFolding-3.2.0.txt +912 -0
  169. data/ext/commonmarker/cmark/man/CMakeLists.txt +8 -0
  170. data/ext/commonmarker/cmark/man/make_man_page.py +131 -0
  171. data/ext/commonmarker/cmark/man/man1/cmark.1 +54 -0
  172. data/ext/commonmarker/cmark/man/man3/cmark.3 +583 -0
  173. data/ext/commonmarker/cmark/nmake.bat +1 -0
  174. data/ext/commonmarker/cmark/src/CMakeLists.txt +166 -0
  175. data/ext/commonmarker/cmark/src/bench.h +27 -0
  176. data/ext/commonmarker/cmark/src/blocks.c +887 -0
  177. data/ext/commonmarker/cmark/src/buffer.c +381 -0
  178. data/ext/commonmarker/cmark/src/buffer.h +113 -0
  179. data/ext/commonmarker/cmark/src/case_fold_switch.inc +2637 -0
  180. data/ext/commonmarker/cmark/src/chunk.h +110 -0
  181. data/ext/commonmarker/cmark/src/cmark.c +24 -0
  182. data/ext/commonmarker/cmark/src/cmark.h +565 -0
  183. data/ext/commonmarker/cmark/src/cmark_ctype.c +53 -0
  184. data/ext/commonmarker/cmark/src/cmark_ctype.h +24 -0
  185. data/ext/commonmarker/cmark/src/cmark_version.h.in +7 -0
  186. data/ext/commonmarker/cmark/src/commonmark.c +607 -0
  187. data/ext/commonmarker/cmark/src/config.h.in +23 -0
  188. data/ext/commonmarker/cmark/src/debug.h +36 -0
  189. data/ext/commonmarker/cmark/src/houdini.h +52 -0
  190. data/ext/commonmarker/cmark/src/houdini_href_e.c +107 -0
  191. data/ext/commonmarker/cmark/src/houdini_html_e.c +81 -0
  192. data/ext/commonmarker/cmark/src/houdini_html_u.c +116 -0
  193. data/ext/commonmarker/cmark/src/html.c +322 -0
  194. data/ext/commonmarker/cmark/src/html_unescape.gperf +2130 -0
  195. data/ext/commonmarker/cmark/src/html_unescape.h +13375 -0
  196. data/ext/commonmarker/cmark/src/inlines.c +1147 -0
  197. data/ext/commonmarker/cmark/src/inlines.h +19 -0
  198. data/ext/commonmarker/cmark/src/iterator.c +148 -0
  199. data/ext/commonmarker/cmark/src/iterator.h +25 -0
  200. data/ext/commonmarker/cmark/src/libcmark.pc.in +10 -0
  201. data/ext/commonmarker/cmark/src/main.c +191 -0
  202. data/ext/commonmarker/cmark/src/man.c +287 -0
  203. data/ext/commonmarker/cmark/src/node.c +873 -0
  204. data/ext/commonmarker/cmark/src/node.h +82 -0
  205. data/ext/commonmarker/cmark/src/parser.h +29 -0
  206. data/ext/commonmarker/cmark/src/references.c +154 -0
  207. data/ext/commonmarker/cmark/src/references.h +37 -0
  208. data/ext/commonmarker/cmark/src/scanners.c +15291 -0
  209. data/ext/commonmarker/cmark/src/scanners.h +41 -0
  210. data/ext/commonmarker/cmark/src/scanners.re +247 -0
  211. data/ext/commonmarker/cmark/src/utf8.c +452 -0
  212. data/ext/commonmarker/cmark/src/utf8.h +22 -0
  213. data/ext/commonmarker/cmark/src/xml.c +170 -0
  214. data/ext/commonmarker/cmark/test/CMakeLists.txt +53 -0
  215. data/ext/commonmarker/cmark/test/afl_dictionary/asterisk +1 -0
  216. data/ext/commonmarker/cmark/test/afl_dictionary/attr_generic +1 -0
  217. data/ext/commonmarker/cmark/test/afl_dictionary/attr_href +1 -0
  218. data/ext/commonmarker/cmark/test/afl_dictionary/attr_xml_lang +1 -0
  219. data/ext/commonmarker/cmark/test/afl_dictionary/attr_xmlns +1 -0
  220. data/ext/commonmarker/cmark/test/afl_dictionary/backslash +1 -0
  221. data/ext/commonmarker/cmark/test/afl_dictionary/backtick +1 -0
  222. data/ext/commonmarker/cmark/test/afl_dictionary/colon +1 -0
  223. data/ext/commonmarker/cmark/test/afl_dictionary/dashes +1 -0
  224. data/ext/commonmarker/cmark/test/afl_dictionary/double_quote +1 -0
  225. data/ext/commonmarker/cmark/test/afl_dictionary/entity_builtin +1 -0
  226. data/ext/commonmarker/cmark/test/afl_dictionary/entity_decimal +1 -0
  227. data/ext/commonmarker/cmark/test/afl_dictionary/entity_external +1 -0
  228. data/ext/commonmarker/cmark/test/afl_dictionary/entity_hex +1 -0
  229. data/ext/commonmarker/cmark/test/afl_dictionary/equals +1 -0
  230. data/ext/commonmarker/cmark/test/afl_dictionary/exclamation +1 -0
  231. data/ext/commonmarker/cmark/test/afl_dictionary/greater_than +1 -0
  232. data/ext/commonmarker/cmark/test/afl_dictionary/hash +1 -0
  233. data/ext/commonmarker/cmark/test/afl_dictionary/hyphen +0 -0
  234. data/ext/commonmarker/cmark/test/afl_dictionary/indent +1 -0
  235. data/ext/commonmarker/cmark/test/afl_dictionary/left_bracket +1 -0
  236. data/ext/commonmarker/cmark/test/afl_dictionary/left_paren +1 -0
  237. data/ext/commonmarker/cmark/test/afl_dictionary/less_than +1 -0
  238. data/ext/commonmarker/cmark/test/afl_dictionary/plus +1 -0
  239. data/ext/commonmarker/cmark/test/afl_dictionary/right_bracket +1 -0
  240. data/ext/commonmarker/cmark/test/afl_dictionary/right_paren +1 -0
  241. data/ext/commonmarker/cmark/test/afl_dictionary/single_quote +1 -0
  242. data/ext/commonmarker/cmark/test/afl_dictionary/string_any +1 -0
  243. data/ext/commonmarker/cmark/test/afl_dictionary/string_brackets +1 -0
  244. data/ext/commonmarker/cmark/test/afl_dictionary/string_cdata +1 -0
  245. data/ext/commonmarker/cmark/test/afl_dictionary/string_dashes +1 -0
  246. data/ext/commonmarker/cmark/test/afl_dictionary/string_empty_dblquotes +1 -0
  247. data/ext/commonmarker/cmark/test/afl_dictionary/string_empty_quotes +1 -0
  248. data/ext/commonmarker/cmark/test/afl_dictionary/string_idrefs +1 -0
  249. data/ext/commonmarker/cmark/test/afl_dictionary/string_parentheses +1 -0
  250. data/ext/commonmarker/cmark/test/afl_dictionary/string_pcdata +1 -0
  251. data/ext/commonmarker/cmark/test/afl_dictionary/tag_cdata +1 -0
  252. data/ext/commonmarker/cmark/test/afl_dictionary/tag_close +1 -0
  253. data/ext/commonmarker/cmark/test/afl_dictionary/tag_doctype +1 -0
  254. data/ext/commonmarker/cmark/test/afl_dictionary/tag_element +1 -0
  255. data/ext/commonmarker/cmark/test/afl_dictionary/tag_entity +1 -0
  256. data/ext/commonmarker/cmark/test/afl_dictionary/tag_notation +1 -0
  257. data/ext/commonmarker/cmark/test/afl_dictionary/tag_open +1 -0
  258. data/ext/commonmarker/cmark/test/afl_dictionary/tag_open_close +1 -0
  259. data/ext/commonmarker/cmark/test/afl_dictionary/tag_open_exclamation +1 -0
  260. data/ext/commonmarker/cmark/test/afl_dictionary/tag_open_q +1 -0
  261. data/ext/commonmarker/cmark/test/afl_dictionary/tag_sq2_close +1 -0
  262. data/ext/commonmarker/cmark/test/afl_dictionary/tag_xml_q +1 -0
  263. data/ext/commonmarker/cmark/test/afl_dictionary/underscore +1 -0
  264. data/ext/commonmarker/cmark/test/afl_test_cases/test.md +36 -0
  265. data/ext/commonmarker/cmark/test/cmark.py +40 -0
  266. data/ext/commonmarker/cmark/test/normalize.py +179 -0
  267. data/ext/commonmarker/cmark/test/pathological_tests.py +63 -0
  268. data/ext/commonmarker/cmark/test/roundtrip.sh +2 -0
  269. data/ext/commonmarker/cmark/test/smart_punct.txt +96 -0
  270. data/ext/commonmarker/cmark/test/spec.txt +7505 -0
  271. data/ext/commonmarker/cmark/test/spec_tests.py +139 -0
  272. data/ext/commonmarker/cmark/toolchain-mingw32.cmake +17 -0
  273. data/ext/commonmarker/cmark/tools/mkcasefold.pl +22 -0
  274. data/ext/commonmarker/cmark/wrappers/wrapper.lua +239 -0
  275. data/ext/commonmarker/cmark/wrappers/wrapper.py +37 -0
  276. data/ext/commonmarker/cmark/wrappers/wrapper.rb +15 -0
  277. data/ext/commonmarker/cmark/wrappers/wrapper.rkt +190 -0
  278. data/ext/commonmarker/commonmarker.c +165 -0
  279. data/ext/commonmarker/commonmarker.h +11 -0
  280. data/ext/commonmarker/extconf.rb +18 -0
  281. data/lib/commonmarker/config.rb +20 -0
  282. data/lib/commonmarker/version.rb +3 -0
  283. data/lib/commonmarker.rb +588 -0
  284. data/test/benchmark.rb +30 -0
  285. data/test/spec_tests.json +4074 -0
  286. data/test/test_basics.rb +44 -0
  287. data/test/test_helper.rb +5 -0
  288. data/test/test_maliciousness.rb +9 -0
  289. data/test/test_pathological_inputs.rb +52 -0
  290. data/test/test_spec.rb +20 -0
  291. 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
+
@@ -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,7 @@
1
+ #ifndef CMARK_VERSION_H
2
+ #define CMARK_VERSION_H
3
+
4
+ #define CMARK_VERSION ((0 << 16) | (19 << 8) | 0)
5
+ #define CMARK_VERSION_STRING "0.19.0"
6
+
7
+ #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
@@ -0,0 +1,10 @@
1
+ prefix=/usr/local
2
+ exec_prefix=/usr/local
3
+ libdir=/usr/local/lib
4
+ includedir=/usr/local/include
5
+
6
+ Name: libcmark
7
+ Description: CommonMark parsing, rendering, and manipulation
8
+ Version: 0.19.0
9
+ Libs: -L${libdir} -lcmark
10
+ Cflags: -I${includedir}
@@ -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,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.