commonmarker 0.17.7 → 0.17.7.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 (337) hide show
  1. checksums.yaml +4 -4
  2. data/commonmarker.gemspec +1 -1
  3. data/lib/commonmarker/version.rb +1 -1
  4. metadata +2 -335
  5. data/ext/commonmarker/cmark-upstream/CMakeLists.txt +0 -44
  6. data/ext/commonmarker/cmark-upstream/COPYING +0 -170
  7. data/ext/commonmarker/cmark-upstream/FindAsan.cmake +0 -74
  8. data/ext/commonmarker/cmark-upstream/Makefile +0 -226
  9. data/ext/commonmarker/cmark-upstream/Makefile.nmake +0 -36
  10. data/ext/commonmarker/cmark-upstream/README.md +0 -206
  11. data/ext/commonmarker/cmark-upstream/api_test/CMakeLists.txt +0 -26
  12. data/ext/commonmarker/cmark-upstream/api_test/cplusplus.cpp +0 -15
  13. data/ext/commonmarker/cmark-upstream/api_test/cplusplus.h +0 -16
  14. data/ext/commonmarker/cmark-upstream/api_test/harness.c +0 -110
  15. data/ext/commonmarker/cmark-upstream/api_test/harness.h +0 -35
  16. data/ext/commonmarker/cmark-upstream/api_test/main.c +0 -1116
  17. data/ext/commonmarker/cmark-upstream/appveyor.yml +0 -17
  18. data/ext/commonmarker/cmark-upstream/bench/samples/block-bq-flat.md +0 -16
  19. data/ext/commonmarker/cmark-upstream/bench/samples/block-bq-nested.md +0 -13
  20. data/ext/commonmarker/cmark-upstream/bench/samples/block-code.md +0 -11
  21. data/ext/commonmarker/cmark-upstream/bench/samples/block-fences.md +0 -14
  22. data/ext/commonmarker/cmark-upstream/bench/samples/block-heading.md +0 -9
  23. data/ext/commonmarker/cmark-upstream/bench/samples/block-hr.md +0 -10
  24. data/ext/commonmarker/cmark-upstream/bench/samples/block-html.md +0 -32
  25. data/ext/commonmarker/cmark-upstream/bench/samples/block-lheading.md +0 -8
  26. data/ext/commonmarker/cmark-upstream/bench/samples/block-list-flat.md +0 -67
  27. data/ext/commonmarker/cmark-upstream/bench/samples/block-list-nested.md +0 -36
  28. data/ext/commonmarker/cmark-upstream/bench/samples/block-ref-flat.md +0 -15
  29. data/ext/commonmarker/cmark-upstream/bench/samples/block-ref-nested.md +0 -17
  30. data/ext/commonmarker/cmark-upstream/bench/samples/inline-autolink.md +0 -14
  31. data/ext/commonmarker/cmark-upstream/bench/samples/inline-backticks.md +0 -3
  32. data/ext/commonmarker/cmark-upstream/bench/samples/inline-em-flat.md +0 -5
  33. data/ext/commonmarker/cmark-upstream/bench/samples/inline-em-nested.md +0 -5
  34. data/ext/commonmarker/cmark-upstream/bench/samples/inline-em-worst.md +0 -5
  35. data/ext/commonmarker/cmark-upstream/bench/samples/inline-entity.md +0 -11
  36. data/ext/commonmarker/cmark-upstream/bench/samples/inline-escape.md +0 -15
  37. data/ext/commonmarker/cmark-upstream/bench/samples/inline-html.md +0 -44
  38. data/ext/commonmarker/cmark-upstream/bench/samples/inline-links-flat.md +0 -23
  39. data/ext/commonmarker/cmark-upstream/bench/samples/inline-links-nested.md +0 -13
  40. data/ext/commonmarker/cmark-upstream/bench/samples/inline-newlines.md +0 -24
  41. data/ext/commonmarker/cmark-upstream/bench/samples/lorem1.md +0 -13
  42. data/ext/commonmarker/cmark-upstream/bench/samples/rawtabs.md +0 -18
  43. data/ext/commonmarker/cmark-upstream/bench/statistics.py +0 -595
  44. data/ext/commonmarker/cmark-upstream/bench/stats.py +0 -19
  45. data/ext/commonmarker/cmark-upstream/benchmarks.md +0 -33
  46. data/ext/commonmarker/cmark-upstream/build/CMakeCache.txt +0 -478
  47. data/ext/commonmarker/cmark-upstream/build/CMakeFiles/3.9.6/CMakeCCompiler.cmake +0 -71
  48. data/ext/commonmarker/cmark-upstream/build/CMakeFiles/3.9.6/CMakeCXXCompiler.cmake +0 -73
  49. data/ext/commonmarker/cmark-upstream/build/CMakeFiles/3.9.6/CMakeDetermineCompilerABI_C.bin +0 -0
  50. data/ext/commonmarker/cmark-upstream/build/CMakeFiles/3.9.6/CMakeDetermineCompilerABI_CXX.bin +0 -0
  51. data/ext/commonmarker/cmark-upstream/build/CMakeFiles/3.9.6/CMakeSystem.cmake +0 -15
  52. data/ext/commonmarker/cmark-upstream/build/CMakeFiles/3.9.6/CompilerIdC/CMakeCCompilerId.c +0 -567
  53. data/ext/commonmarker/cmark-upstream/build/CMakeFiles/3.9.6/CompilerIdC/a.out +0 -0
  54. data/ext/commonmarker/cmark-upstream/build/CMakeFiles/3.9.6/CompilerIdCXX/CMakeCXXCompilerId.cpp +0 -539
  55. data/ext/commonmarker/cmark-upstream/build/CMakeFiles/3.9.6/CompilerIdCXX/a.out +0 -0
  56. data/ext/commonmarker/cmark-upstream/build/CMakeFiles/CMakeDirectoryInformation.cmake +0 -16
  57. data/ext/commonmarker/cmark-upstream/build/CMakeFiles/CMakeError.log +0 -18
  58. data/ext/commonmarker/cmark-upstream/build/CMakeFiles/CMakeOutput.log +0 -709
  59. data/ext/commonmarker/cmark-upstream/build/CMakeFiles/Makefile.cmake +0 -157
  60. data/ext/commonmarker/cmark-upstream/build/CMakeFiles/Makefile2 +0 -391
  61. data/ext/commonmarker/cmark-upstream/build/CMakeFiles/TargetDirectories.txt +0 -48
  62. data/ext/commonmarker/cmark-upstream/build/CMakeFiles/cmake.check_cache +0 -1
  63. data/ext/commonmarker/cmark-upstream/build/CMakeFiles/feature_tests.bin +0 -0
  64. data/ext/commonmarker/cmark-upstream/build/CMakeFiles/feature_tests.c +0 -34
  65. data/ext/commonmarker/cmark-upstream/build/CMakeFiles/feature_tests.cxx +0 -405
  66. data/ext/commonmarker/cmark-upstream/build/CMakeFiles/progress.marks +0 -1
  67. data/ext/commonmarker/cmark-upstream/build/CTestTestfile.cmake +0 -11
  68. data/ext/commonmarker/cmark-upstream/build/Makefile +0 -280
  69. data/ext/commonmarker/cmark-upstream/build/api_test/CMakeFiles/CMakeDirectoryInformation.cmake +0 -16
  70. data/ext/commonmarker/cmark-upstream/build/api_test/CMakeFiles/api_test.dir/C.includecache +0 -134
  71. data/ext/commonmarker/cmark-upstream/build/api_test/CMakeFiles/api_test.dir/CXX.includecache +0 -38
  72. data/ext/commonmarker/cmark-upstream/build/api_test/CMakeFiles/api_test.dir/DependInfo.cmake +0 -38
  73. data/ext/commonmarker/cmark-upstream/build/api_test/CMakeFiles/api_test.dir/build.make +0 -169
  74. data/ext/commonmarker/cmark-upstream/build/api_test/CMakeFiles/api_test.dir/cmake_clean.cmake +0 -12
  75. data/ext/commonmarker/cmark-upstream/build/api_test/CMakeFiles/api_test.dir/cplusplus.cpp.o +0 -0
  76. data/ext/commonmarker/cmark-upstream/build/api_test/CMakeFiles/api_test.dir/depend.internal +0 -28
  77. data/ext/commonmarker/cmark-upstream/build/api_test/CMakeFiles/api_test.dir/depend.make +0 -28
  78. data/ext/commonmarker/cmark-upstream/build/api_test/CMakeFiles/api_test.dir/flags.make +0 -17
  79. data/ext/commonmarker/cmark-upstream/build/api_test/CMakeFiles/api_test.dir/harness.c.o +0 -0
  80. data/ext/commonmarker/cmark-upstream/build/api_test/CMakeFiles/api_test.dir/link.txt +0 -1
  81. data/ext/commonmarker/cmark-upstream/build/api_test/CMakeFiles/api_test.dir/main.c.o +0 -0
  82. data/ext/commonmarker/cmark-upstream/build/api_test/CMakeFiles/api_test.dir/progress.make +0 -5
  83. data/ext/commonmarker/cmark-upstream/build/api_test/CMakeFiles/progress.marks +0 -1
  84. data/ext/commonmarker/cmark-upstream/build/api_test/Makefile +0 -302
  85. data/ext/commonmarker/cmark-upstream/build/api_test/api_test +0 -0
  86. data/ext/commonmarker/cmark-upstream/build/api_test/cmake_install.cmake +0 -29
  87. data/ext/commonmarker/cmark-upstream/build/cmake_install.cmake +0 -49
  88. data/ext/commonmarker/cmark-upstream/build/compile_commands.json +0 -352
  89. data/ext/commonmarker/cmark-upstream/build/extensions/CMakeFiles/CMakeDirectoryInformation.cmake +0 -16
  90. data/ext/commonmarker/cmark-upstream/build/extensions/CMakeFiles/Export/lib/cmake-gfmextensions/cmark-gfmextensions-release.cmake +0 -30
  91. data/ext/commonmarker/cmark-upstream/build/extensions/CMakeFiles/Export/lib/cmake-gfmextensions/cmark-gfmextensions.cmake +0 -108
  92. data/ext/commonmarker/cmark-upstream/build/extensions/CMakeFiles/libcmark-gfmextensions.dir/C.includecache +0 -246
  93. data/ext/commonmarker/cmark-upstream/build/extensions/CMakeFiles/libcmark-gfmextensions.dir/DependInfo.cmake +0 -36
  94. data/ext/commonmarker/cmark-upstream/build/extensions/CMakeFiles/libcmark-gfmextensions.dir/autolink.c.o +0 -0
  95. data/ext/commonmarker/cmark-upstream/build/extensions/CMakeFiles/libcmark-gfmextensions.dir/build.make +0 -253
  96. data/ext/commonmarker/cmark-upstream/build/extensions/CMakeFiles/libcmark-gfmextensions.dir/cmake_clean.cmake +0 -16
  97. data/ext/commonmarker/cmark-upstream/build/extensions/CMakeFiles/libcmark-gfmextensions.dir/core-extensions.c.o +0 -0
  98. data/ext/commonmarker/cmark-upstream/build/extensions/CMakeFiles/libcmark-gfmextensions.dir/depend.internal +0 -96
  99. data/ext/commonmarker/cmark-upstream/build/extensions/CMakeFiles/libcmark-gfmextensions.dir/depend.make +0 -96
  100. data/ext/commonmarker/cmark-upstream/build/extensions/CMakeFiles/libcmark-gfmextensions.dir/ext_scanners.c.o +0 -0
  101. data/ext/commonmarker/cmark-upstream/build/extensions/CMakeFiles/libcmark-gfmextensions.dir/flags.make +0 -10
  102. data/ext/commonmarker/cmark-upstream/build/extensions/CMakeFiles/libcmark-gfmextensions.dir/link.txt +0 -1
  103. data/ext/commonmarker/cmark-upstream/build/extensions/CMakeFiles/libcmark-gfmextensions.dir/progress.make +0 -8
  104. data/ext/commonmarker/cmark-upstream/build/extensions/CMakeFiles/libcmark-gfmextensions.dir/strikethrough.c.o +0 -0
  105. data/ext/commonmarker/cmark-upstream/build/extensions/CMakeFiles/libcmark-gfmextensions.dir/table.c.o +0 -0
  106. data/ext/commonmarker/cmark-upstream/build/extensions/CMakeFiles/libcmark-gfmextensions.dir/tagfilter.c.o +0 -0
  107. data/ext/commonmarker/cmark-upstream/build/extensions/CMakeFiles/libcmark-gfmextensions_static.dir/C.includecache +0 -246
  108. data/ext/commonmarker/cmark-upstream/build/extensions/CMakeFiles/libcmark-gfmextensions_static.dir/DependInfo.cmake +0 -29
  109. data/ext/commonmarker/cmark-upstream/build/extensions/CMakeFiles/libcmark-gfmextensions_static.dir/autolink.c.o +0 -0
  110. data/ext/commonmarker/cmark-upstream/build/extensions/CMakeFiles/libcmark-gfmextensions_static.dir/build.make +0 -249
  111. data/ext/commonmarker/cmark-upstream/build/extensions/CMakeFiles/libcmark-gfmextensions_static.dir/cmake_clean.cmake +0 -15
  112. data/ext/commonmarker/cmark-upstream/build/extensions/CMakeFiles/libcmark-gfmextensions_static.dir/cmake_clean_target.cmake +0 -3
  113. data/ext/commonmarker/cmark-upstream/build/extensions/CMakeFiles/libcmark-gfmextensions_static.dir/core-extensions.c.o +0 -0
  114. data/ext/commonmarker/cmark-upstream/build/extensions/CMakeFiles/libcmark-gfmextensions_static.dir/depend.internal +0 -96
  115. data/ext/commonmarker/cmark-upstream/build/extensions/CMakeFiles/libcmark-gfmextensions_static.dir/depend.make +0 -96
  116. data/ext/commonmarker/cmark-upstream/build/extensions/CMakeFiles/libcmark-gfmextensions_static.dir/ext_scanners.c.o +0 -0
  117. data/ext/commonmarker/cmark-upstream/build/extensions/CMakeFiles/libcmark-gfmextensions_static.dir/flags.make +0 -10
  118. data/ext/commonmarker/cmark-upstream/build/extensions/CMakeFiles/libcmark-gfmextensions_static.dir/link.txt +0 -2
  119. data/ext/commonmarker/cmark-upstream/build/extensions/CMakeFiles/libcmark-gfmextensions_static.dir/progress.make +0 -8
  120. data/ext/commonmarker/cmark-upstream/build/extensions/CMakeFiles/libcmark-gfmextensions_static.dir/strikethrough.c.o +0 -0
  121. data/ext/commonmarker/cmark-upstream/build/extensions/CMakeFiles/libcmark-gfmextensions_static.dir/table.c.o +0 -0
  122. data/ext/commonmarker/cmark-upstream/build/extensions/CMakeFiles/libcmark-gfmextensions_static.dir/tagfilter.c.o +0 -0
  123. data/ext/commonmarker/cmark-upstream/build/extensions/CMakeFiles/progress.marks +0 -1
  124. data/ext/commonmarker/cmark-upstream/build/extensions/Makefile +0 -426
  125. data/ext/commonmarker/cmark-upstream/build/extensions/cmake_install.cmake +0 -84
  126. data/ext/commonmarker/cmark-upstream/build/extensions/cmarkextensions_export.h +0 -42
  127. data/ext/commonmarker/cmark-upstream/build/extensions/libcmark-gfmextensions.0.28.3.gfm.11.dylib +0 -0
  128. data/ext/commonmarker/cmark-upstream/build/extensions/libcmark-gfmextensions.a +0 -0
  129. data/ext/commonmarker/cmark-upstream/build/extensions/libcmark-gfmextensions.dylib +0 -1
  130. data/ext/commonmarker/cmark-upstream/build/man/CMakeFiles/CMakeDirectoryInformation.cmake +0 -16
  131. data/ext/commonmarker/cmark-upstream/build/man/CMakeFiles/progress.marks +0 -1
  132. data/ext/commonmarker/cmark-upstream/build/man/Makefile +0 -196
  133. data/ext/commonmarker/cmark-upstream/build/man/cmake_install.cmake +0 -37
  134. data/ext/commonmarker/cmark-upstream/build/src/CMakeFiles/CMakeDirectoryInformation.cmake +0 -16
  135. data/ext/commonmarker/cmark-upstream/build/src/CMakeFiles/Export/lib/cmake/cmark-gfm-release.cmake +0 -38
  136. data/ext/commonmarker/cmark-upstream/build/src/CMakeFiles/Export/lib/cmake/cmark-gfm.cmake +0 -95
  137. data/ext/commonmarker/cmark-upstream/build/src/CMakeFiles/cmark-gfm.dir/C.includecache +0 -156
  138. data/ext/commonmarker/cmark-upstream/build/src/CMakeFiles/cmark-gfm.dir/DependInfo.cmake +0 -30
  139. data/ext/commonmarker/cmark-upstream/build/src/CMakeFiles/cmark-gfm.dir/build.make +0 -115
  140. data/ext/commonmarker/cmark-upstream/build/src/CMakeFiles/cmark-gfm.dir/cmake_clean.cmake +0 -10
  141. data/ext/commonmarker/cmark-upstream/build/src/CMakeFiles/cmark-gfm.dir/depend.internal +0 -20
  142. data/ext/commonmarker/cmark-upstream/build/src/CMakeFiles/cmark-gfm.dir/depend.make +0 -20
  143. data/ext/commonmarker/cmark-upstream/build/src/CMakeFiles/cmark-gfm.dir/flags.make +0 -10
  144. data/ext/commonmarker/cmark-upstream/build/src/CMakeFiles/cmark-gfm.dir/link.txt +0 -1
  145. data/ext/commonmarker/cmark-upstream/build/src/CMakeFiles/cmark-gfm.dir/main.c.o +0 -0
  146. data/ext/commonmarker/cmark-upstream/build/src/CMakeFiles/cmark-gfm.dir/progress.make +0 -3
  147. data/ext/commonmarker/cmark-upstream/build/src/CMakeFiles/libcmark-gfm.dir/C.includecache +0 -612
  148. data/ext/commonmarker/cmark-upstream/build/src/CMakeFiles/libcmark-gfm.dir/DependInfo.cmake +0 -60
  149. data/ext/commonmarker/cmark-upstream/build/src/CMakeFiles/libcmark-gfm.dir/arena.c.o +0 -0
  150. data/ext/commonmarker/cmark-upstream/build/src/CMakeFiles/libcmark-gfm.dir/blocks.c.o +0 -0
  151. data/ext/commonmarker/cmark-upstream/build/src/CMakeFiles/libcmark-gfm.dir/buffer.c.o +0 -0
  152. data/ext/commonmarker/cmark-upstream/build/src/CMakeFiles/libcmark-gfm.dir/build.make +0 -819
  153. data/ext/commonmarker/cmark-upstream/build/src/CMakeFiles/libcmark-gfm.dir/cmake_clean.cmake +0 -37
  154. data/ext/commonmarker/cmark-upstream/build/src/CMakeFiles/libcmark-gfm.dir/cmark.c.o +0 -0
  155. data/ext/commonmarker/cmark-upstream/build/src/CMakeFiles/libcmark-gfm.dir/cmark_ctype.c.o +0 -0
  156. data/ext/commonmarker/cmark-upstream/build/src/CMakeFiles/libcmark-gfm.dir/commonmark.c.o +0 -0
  157. data/ext/commonmarker/cmark-upstream/build/src/CMakeFiles/libcmark-gfm.dir/depend.internal +0 -319
  158. data/ext/commonmarker/cmark-upstream/build/src/CMakeFiles/libcmark-gfm.dir/depend.make +0 -319
  159. data/ext/commonmarker/cmark-upstream/build/src/CMakeFiles/libcmark-gfm.dir/flags.make +0 -10
  160. data/ext/commonmarker/cmark-upstream/build/src/CMakeFiles/libcmark-gfm.dir/footnotes.c.o +0 -0
  161. data/ext/commonmarker/cmark-upstream/build/src/CMakeFiles/libcmark-gfm.dir/houdini_href_e.c.o +0 -0
  162. data/ext/commonmarker/cmark-upstream/build/src/CMakeFiles/libcmark-gfm.dir/houdini_html_e.c.o +0 -0
  163. data/ext/commonmarker/cmark-upstream/build/src/CMakeFiles/libcmark-gfm.dir/houdini_html_u.c.o +0 -0
  164. data/ext/commonmarker/cmark-upstream/build/src/CMakeFiles/libcmark-gfm.dir/html.c.o +0 -0
  165. data/ext/commonmarker/cmark-upstream/build/src/CMakeFiles/libcmark-gfm.dir/inlines.c.o +0 -0
  166. data/ext/commonmarker/cmark-upstream/build/src/CMakeFiles/libcmark-gfm.dir/iterator.c.o +0 -0
  167. data/ext/commonmarker/cmark-upstream/build/src/CMakeFiles/libcmark-gfm.dir/latex.c.o +0 -0
  168. data/ext/commonmarker/cmark-upstream/build/src/CMakeFiles/libcmark-gfm.dir/link.txt +0 -1
  169. data/ext/commonmarker/cmark-upstream/build/src/CMakeFiles/libcmark-gfm.dir/linked_list.c.o +0 -0
  170. data/ext/commonmarker/cmark-upstream/build/src/CMakeFiles/libcmark-gfm.dir/man.c.o +0 -0
  171. data/ext/commonmarker/cmark-upstream/build/src/CMakeFiles/libcmark-gfm.dir/map.c.o +0 -0
  172. data/ext/commonmarker/cmark-upstream/build/src/CMakeFiles/libcmark-gfm.dir/node.c.o +0 -0
  173. data/ext/commonmarker/cmark-upstream/build/src/CMakeFiles/libcmark-gfm.dir/plaintext.c.o +0 -0
  174. data/ext/commonmarker/cmark-upstream/build/src/CMakeFiles/libcmark-gfm.dir/plugin.c.o +0 -0
  175. data/ext/commonmarker/cmark-upstream/build/src/CMakeFiles/libcmark-gfm.dir/progress.make +0 -29
  176. data/ext/commonmarker/cmark-upstream/build/src/CMakeFiles/libcmark-gfm.dir/references.c.o +0 -0
  177. data/ext/commonmarker/cmark-upstream/build/src/CMakeFiles/libcmark-gfm.dir/registry.c.o +0 -0
  178. data/ext/commonmarker/cmark-upstream/build/src/CMakeFiles/libcmark-gfm.dir/render.c.o +0 -0
  179. data/ext/commonmarker/cmark-upstream/build/src/CMakeFiles/libcmark-gfm.dir/scanners.c.o +0 -0
  180. data/ext/commonmarker/cmark-upstream/build/src/CMakeFiles/libcmark-gfm.dir/syntax_extension.c.o +0 -0
  181. data/ext/commonmarker/cmark-upstream/build/src/CMakeFiles/libcmark-gfm.dir/utf8.c.o +0 -0
  182. data/ext/commonmarker/cmark-upstream/build/src/CMakeFiles/libcmark-gfm.dir/xml.c.o +0 -0
  183. data/ext/commonmarker/cmark-upstream/build/src/CMakeFiles/libcmark-gfm_static.dir/C.includecache +0 -612
  184. data/ext/commonmarker/cmark-upstream/build/src/CMakeFiles/libcmark-gfm_static.dir/DependInfo.cmake +0 -54
  185. data/ext/commonmarker/cmark-upstream/build/src/CMakeFiles/libcmark-gfm_static.dir/arena.c.o +0 -0
  186. data/ext/commonmarker/cmark-upstream/build/src/CMakeFiles/libcmark-gfm_static.dir/blocks.c.o +0 -0
  187. data/ext/commonmarker/cmark-upstream/build/src/CMakeFiles/libcmark-gfm_static.dir/buffer.c.o +0 -0
  188. data/ext/commonmarker/cmark-upstream/build/src/CMakeFiles/libcmark-gfm_static.dir/build.make +0 -816
  189. data/ext/commonmarker/cmark-upstream/build/src/CMakeFiles/libcmark-gfm_static.dir/cmake_clean.cmake +0 -36
  190. data/ext/commonmarker/cmark-upstream/build/src/CMakeFiles/libcmark-gfm_static.dir/cmake_clean_target.cmake +0 -3
  191. data/ext/commonmarker/cmark-upstream/build/src/CMakeFiles/libcmark-gfm_static.dir/cmark.c.o +0 -0
  192. data/ext/commonmarker/cmark-upstream/build/src/CMakeFiles/libcmark-gfm_static.dir/cmark_ctype.c.o +0 -0
  193. data/ext/commonmarker/cmark-upstream/build/src/CMakeFiles/libcmark-gfm_static.dir/commonmark.c.o +0 -0
  194. data/ext/commonmarker/cmark-upstream/build/src/CMakeFiles/libcmark-gfm_static.dir/depend.internal +0 -319
  195. data/ext/commonmarker/cmark-upstream/build/src/CMakeFiles/libcmark-gfm_static.dir/depend.make +0 -319
  196. data/ext/commonmarker/cmark-upstream/build/src/CMakeFiles/libcmark-gfm_static.dir/flags.make +0 -10
  197. data/ext/commonmarker/cmark-upstream/build/src/CMakeFiles/libcmark-gfm_static.dir/footnotes.c.o +0 -0
  198. data/ext/commonmarker/cmark-upstream/build/src/CMakeFiles/libcmark-gfm_static.dir/houdini_href_e.c.o +0 -0
  199. data/ext/commonmarker/cmark-upstream/build/src/CMakeFiles/libcmark-gfm_static.dir/houdini_html_e.c.o +0 -0
  200. data/ext/commonmarker/cmark-upstream/build/src/CMakeFiles/libcmark-gfm_static.dir/houdini_html_u.c.o +0 -0
  201. data/ext/commonmarker/cmark-upstream/build/src/CMakeFiles/libcmark-gfm_static.dir/html.c.o +0 -0
  202. data/ext/commonmarker/cmark-upstream/build/src/CMakeFiles/libcmark-gfm_static.dir/inlines.c.o +0 -0
  203. data/ext/commonmarker/cmark-upstream/build/src/CMakeFiles/libcmark-gfm_static.dir/iterator.c.o +0 -0
  204. data/ext/commonmarker/cmark-upstream/build/src/CMakeFiles/libcmark-gfm_static.dir/latex.c.o +0 -0
  205. data/ext/commonmarker/cmark-upstream/build/src/CMakeFiles/libcmark-gfm_static.dir/link.txt +0 -2
  206. data/ext/commonmarker/cmark-upstream/build/src/CMakeFiles/libcmark-gfm_static.dir/linked_list.c.o +0 -0
  207. data/ext/commonmarker/cmark-upstream/build/src/CMakeFiles/libcmark-gfm_static.dir/man.c.o +0 -0
  208. data/ext/commonmarker/cmark-upstream/build/src/CMakeFiles/libcmark-gfm_static.dir/map.c.o +0 -0
  209. data/ext/commonmarker/cmark-upstream/build/src/CMakeFiles/libcmark-gfm_static.dir/node.c.o +0 -0
  210. data/ext/commonmarker/cmark-upstream/build/src/CMakeFiles/libcmark-gfm_static.dir/plaintext.c.o +0 -0
  211. data/ext/commonmarker/cmark-upstream/build/src/CMakeFiles/libcmark-gfm_static.dir/plugin.c.o +0 -0
  212. data/ext/commonmarker/cmark-upstream/build/src/CMakeFiles/libcmark-gfm_static.dir/progress.make +0 -29
  213. data/ext/commonmarker/cmark-upstream/build/src/CMakeFiles/libcmark-gfm_static.dir/references.c.o +0 -0
  214. data/ext/commonmarker/cmark-upstream/build/src/CMakeFiles/libcmark-gfm_static.dir/registry.c.o +0 -0
  215. data/ext/commonmarker/cmark-upstream/build/src/CMakeFiles/libcmark-gfm_static.dir/render.c.o +0 -0
  216. data/ext/commonmarker/cmark-upstream/build/src/CMakeFiles/libcmark-gfm_static.dir/scanners.c.o +0 -0
  217. data/ext/commonmarker/cmark-upstream/build/src/CMakeFiles/libcmark-gfm_static.dir/syntax_extension.c.o +0 -0
  218. data/ext/commonmarker/cmark-upstream/build/src/CMakeFiles/libcmark-gfm_static.dir/utf8.c.o +0 -0
  219. data/ext/commonmarker/cmark-upstream/build/src/CMakeFiles/libcmark-gfm_static.dir/xml.c.o +0 -0
  220. data/ext/commonmarker/cmark-upstream/build/src/CMakeFiles/progress.marks +0 -1
  221. data/ext/commonmarker/cmark-upstream/build/src/Makefile +0 -1165
  222. data/ext/commonmarker/cmark-upstream/build/src/cmake_install.cmake +0 -97
  223. data/ext/commonmarker/cmark-upstream/build/src/cmark-gfm +0 -0
  224. data/ext/commonmarker/cmark-upstream/build/src/cmark_export.h +0 -42
  225. data/ext/commonmarker/cmark-upstream/build/src/cmark_version.h +0 -8
  226. data/ext/commonmarker/cmark-upstream/build/src/config.h +0 -76
  227. data/ext/commonmarker/cmark-upstream/build/src/libcmark-gfm.0.28.3.gfm.11.dylib +0 -0
  228. data/ext/commonmarker/cmark-upstream/build/src/libcmark-gfm.a +0 -0
  229. data/ext/commonmarker/cmark-upstream/build/src/libcmark-gfm.dylib +0 -1
  230. data/ext/commonmarker/cmark-upstream/build/src/libcmark-gfm.pc +0 -10
  231. data/ext/commonmarker/cmark-upstream/build/testdir/CMakeFiles/CMakeDirectoryInformation.cmake +0 -16
  232. data/ext/commonmarker/cmark-upstream/build/testdir/CMakeFiles/progress.marks +0 -1
  233. data/ext/commonmarker/cmark-upstream/build/testdir/CTestTestfile.cmake +0 -17
  234. data/ext/commonmarker/cmark-upstream/build/testdir/Makefile +0 -196
  235. data/ext/commonmarker/cmark-upstream/build/testdir/cmake_install.cmake +0 -29
  236. data/ext/commonmarker/cmark-upstream/changelog.txt +0 -964
  237. data/ext/commonmarker/cmark-upstream/data/CaseFolding.txt +0 -1495
  238. data/ext/commonmarker/cmark-upstream/extensions/CMakeLists.txt +0 -124
  239. data/ext/commonmarker/cmark-upstream/extensions/autolink.c +0 -421
  240. data/ext/commonmarker/cmark-upstream/extensions/autolink.h +0 -8
  241. data/ext/commonmarker/cmark-upstream/extensions/core-extensions.c +0 -25
  242. data/ext/commonmarker/cmark-upstream/extensions/core-extensions.h +0 -25
  243. data/ext/commonmarker/cmark-upstream/extensions/ext_scanners.c +0 -941
  244. data/ext/commonmarker/cmark-upstream/extensions/ext_scanners.h +0 -22
  245. data/ext/commonmarker/cmark-upstream/extensions/ext_scanners.re +0 -74
  246. data/ext/commonmarker/cmark-upstream/extensions/strikethrough.c +0 -157
  247. data/ext/commonmarker/cmark-upstream/extensions/strikethrough.h +0 -9
  248. data/ext/commonmarker/cmark-upstream/extensions/table.c +0 -683
  249. data/ext/commonmarker/cmark-upstream/extensions/table.h +0 -8
  250. data/ext/commonmarker/cmark-upstream/extensions/tagfilter.c +0 -60
  251. data/ext/commonmarker/cmark-upstream/extensions/tagfilter.h +0 -8
  252. data/ext/commonmarker/cmark-upstream/man/CMakeLists.txt +0 -10
  253. data/ext/commonmarker/cmark-upstream/man/make_man_page.py +0 -133
  254. data/ext/commonmarker/cmark-upstream/man/man1/cmark-gfm.1 +0 -78
  255. data/ext/commonmarker/cmark-upstream/man/man3/cmark-gfm.3 +0 -989
  256. data/ext/commonmarker/cmark-upstream/nmake.bat +0 -1
  257. data/ext/commonmarker/cmark-upstream/src/CMakeLists.txt +0 -224
  258. data/ext/commonmarker/cmark-upstream/src/arena.c +0 -103
  259. data/ext/commonmarker/cmark-upstream/src/blocks.c +0 -1519
  260. data/ext/commonmarker/cmark-upstream/src/buffer.c +0 -279
  261. data/ext/commonmarker/cmark-upstream/src/buffer.h +0 -116
  262. data/ext/commonmarker/cmark-upstream/src/case_fold_switch.inc +0 -4327
  263. data/ext/commonmarker/cmark-upstream/src/chunk.h +0 -136
  264. data/ext/commonmarker/cmark-upstream/src/cmark.c +0 -55
  265. data/ext/commonmarker/cmark-upstream/src/cmark.h +0 -789
  266. data/ext/commonmarker/cmark-upstream/src/cmark_ctype.c +0 -44
  267. data/ext/commonmarker/cmark-upstream/src/cmark_ctype.h +0 -33
  268. data/ext/commonmarker/cmark-upstream/src/cmark_extension_api.h +0 -719
  269. data/ext/commonmarker/cmark-upstream/src/cmark_version.h.in +0 -8
  270. data/ext/commonmarker/cmark-upstream/src/commonmark.c +0 -508
  271. data/ext/commonmarker/cmark-upstream/src/config.h.in +0 -76
  272. data/ext/commonmarker/cmark-upstream/src/entities.inc +0 -2138
  273. data/ext/commonmarker/cmark-upstream/src/footnotes.c +0 -40
  274. data/ext/commonmarker/cmark-upstream/src/footnotes.h +0 -25
  275. data/ext/commonmarker/cmark-upstream/src/houdini.h +0 -57
  276. data/ext/commonmarker/cmark-upstream/src/houdini_href_e.c +0 -100
  277. data/ext/commonmarker/cmark-upstream/src/houdini_html_e.c +0 -66
  278. data/ext/commonmarker/cmark-upstream/src/houdini_html_u.c +0 -149
  279. data/ext/commonmarker/cmark-upstream/src/html.c +0 -457
  280. data/ext/commonmarker/cmark-upstream/src/html.h +0 -27
  281. data/ext/commonmarker/cmark-upstream/src/inlines.c +0 -1594
  282. data/ext/commonmarker/cmark-upstream/src/inlines.h +0 -29
  283. data/ext/commonmarker/cmark-upstream/src/iterator.c +0 -159
  284. data/ext/commonmarker/cmark-upstream/src/iterator.h +0 -27
  285. data/ext/commonmarker/cmark-upstream/src/latex.c +0 -466
  286. data/ext/commonmarker/cmark-upstream/src/libcmark-gfm.pc.in +0 -10
  287. data/ext/commonmarker/cmark-upstream/src/linked_list.c +0 -37
  288. data/ext/commonmarker/cmark-upstream/src/main.c +0 -276
  289. data/ext/commonmarker/cmark-upstream/src/man.c +0 -278
  290. data/ext/commonmarker/cmark-upstream/src/map.c +0 -122
  291. data/ext/commonmarker/cmark-upstream/src/map.h +0 -42
  292. data/ext/commonmarker/cmark-upstream/src/node.c +0 -965
  293. data/ext/commonmarker/cmark-upstream/src/node.h +0 -116
  294. data/ext/commonmarker/cmark-upstream/src/parser.h +0 -57
  295. data/ext/commonmarker/cmark-upstream/src/plaintext.c +0 -213
  296. data/ext/commonmarker/cmark-upstream/src/plugin.c +0 -36
  297. data/ext/commonmarker/cmark-upstream/src/plugin.h +0 -34
  298. data/ext/commonmarker/cmark-upstream/src/references.c +0 -42
  299. data/ext/commonmarker/cmark-upstream/src/references.h +0 -26
  300. data/ext/commonmarker/cmark-upstream/src/registry.c +0 -63
  301. data/ext/commonmarker/cmark-upstream/src/registry.h +0 -24
  302. data/ext/commonmarker/cmark-upstream/src/render.c +0 -202
  303. data/ext/commonmarker/cmark-upstream/src/render.h +0 -63
  304. data/ext/commonmarker/cmark-upstream/src/scanners.c +0 -18195
  305. data/ext/commonmarker/cmark-upstream/src/scanners.h +0 -64
  306. data/ext/commonmarker/cmark-upstream/src/scanners.re +0 -341
  307. data/ext/commonmarker/cmark-upstream/src/syntax_extension.c +0 -139
  308. data/ext/commonmarker/cmark-upstream/src/syntax_extension.h +0 -32
  309. data/ext/commonmarker/cmark-upstream/src/utf8.c +0 -317
  310. data/ext/commonmarker/cmark-upstream/src/utf8.h +0 -35
  311. data/ext/commonmarker/cmark-upstream/src/xml.c +0 -174
  312. data/ext/commonmarker/cmark-upstream/suppressions +0 -10
  313. data/ext/commonmarker/cmark-upstream/test/CMakeLists.txt +0 -98
  314. data/ext/commonmarker/cmark-upstream/test/afl_test_cases/test.md +0 -49
  315. data/ext/commonmarker/cmark-upstream/test/cmark-fuzz.c +0 -28
  316. data/ext/commonmarker/cmark-upstream/test/cmark.py +0 -103
  317. data/ext/commonmarker/cmark-upstream/test/entity_tests.py +0 -67
  318. data/ext/commonmarker/cmark-upstream/test/extensions.txt +0 -674
  319. data/ext/commonmarker/cmark-upstream/test/fuzzing_dictionary +0 -49
  320. data/ext/commonmarker/cmark-upstream/test/normalize.py +0 -194
  321. data/ext/commonmarker/cmark-upstream/test/pathological_tests.py +0 -145
  322. data/ext/commonmarker/cmark-upstream/test/regression.txt +0 -128
  323. data/ext/commonmarker/cmark-upstream/test/roundtrip_tests.py +0 -50
  324. data/ext/commonmarker/cmark-upstream/test/run-cmark-fuzz +0 -4
  325. data/ext/commonmarker/cmark-upstream/test/smart_punct.txt +0 -177
  326. data/ext/commonmarker/cmark-upstream/test/spec.txt +0 -9919
  327. data/ext/commonmarker/cmark-upstream/test/spec_tests.py +0 -152
  328. data/ext/commonmarker/cmark-upstream/toolchain-mingw32.cmake +0 -17
  329. data/ext/commonmarker/cmark-upstream/tools/Dockerfile +0 -41
  330. data/ext/commonmarker/cmark-upstream/tools/appveyor-build.bat +0 -13
  331. data/ext/commonmarker/cmark-upstream/tools/make_entities_inc.py +0 -32
  332. data/ext/commonmarker/cmark-upstream/tools/mkcasefold.pl +0 -22
  333. data/ext/commonmarker/cmark-upstream/why-cmark-and-not-x.md +0 -104
  334. data/ext/commonmarker/cmark-upstream/wrappers/wrapper.js +0 -6
  335. data/ext/commonmarker/cmark-upstream/wrappers/wrapper.py +0 -37
  336. data/ext/commonmarker/cmark-upstream/wrappers/wrapper.rb +0 -15
  337. data/ext/commonmarker/cmark-upstream/wrappers/wrapper.rkt +0 -190
@@ -1,74 +0,0 @@
1
- #
2
- # The MIT License (MIT)
3
- #
4
- # Copyright (c) 2013 Matthew Arsenault
5
- #
6
- # Permission is hereby granted, free of charge, to any person obtaining a copy
7
- # of this software and associated documentation files (the "Software"), to deal
8
- # in the Software without restriction, including without limitation the rights
9
- # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10
- # copies of the Software, and to permit persons to whom the Software is
11
- # furnished to do so, subject to the following conditions:
12
- #
13
- # The above copyright notice and this permission notice shall be included in
14
- # all copies or substantial portions of the Software.
15
- #
16
- # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17
- # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18
- # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19
- # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20
- # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21
- # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
22
- # THE SOFTWARE.
23
- #
24
- # This module tests if address sanitizer is supported by the compiler,
25
- # and creates a ASan build type (i.e. set CMAKE_BUILD_TYPE=ASan to use
26
- # it). This sets the following variables:
27
- #
28
- # CMAKE_C_FLAGS_ASAN - Flags to use for C with asan
29
- # CMAKE_CXX_FLAGS_ASAN - Flags to use for C++ with asan
30
- # HAVE_ADDRESS_SANITIZER - True or false if the ASan build type is available
31
-
32
- include(CheckCCompilerFlag)
33
-
34
- # Set -Werror to catch "argument unused during compilation" warnings
35
- set(CMAKE_REQUIRED_FLAGS "-Werror -faddress-sanitizer") # Also needs to be a link flag for test to pass
36
- check_c_compiler_flag("-faddress-sanitizer" HAVE_FLAG_ADDRESS_SANITIZER)
37
-
38
- set(CMAKE_REQUIRED_FLAGS "-Werror -fsanitize=address") # Also needs to be a link flag for test to pass
39
- check_c_compiler_flag("-fsanitize=address" HAVE_FLAG_SANITIZE_ADDRESS)
40
-
41
- unset(CMAKE_REQUIRED_FLAGS)
42
-
43
- if(HAVE_FLAG_SANITIZE_ADDRESS)
44
- # Clang 3.2+ use this version
45
- set(ADDRESS_SANITIZER_FLAG "-fsanitize=address")
46
- elseif(HAVE_FLAG_ADDRESS_SANITIZER)
47
- # Older deprecated flag for ASan
48
- set(ADDRESS_SANITIZER_FLAG "-faddress-sanitizer")
49
- endif()
50
-
51
- if(NOT ADDRESS_SANITIZER_FLAG)
52
- return()
53
- else(NOT ADDRESS_SANITIZER_FLAG)
54
- set(HAVE_ADDRESS_SANITIZER FALSE)
55
- endif()
56
-
57
- set(HAVE_ADDRESS_SANITIZER TRUE)
58
-
59
- set(CMAKE_C_FLAGS_ASAN "-O1 -g ${ADDRESS_SANITIZER_FLAG} -fno-omit-frame-pointer -fno-optimize-sibling-calls"
60
- CACHE STRING "Flags used by the C compiler during ASan builds."
61
- FORCE)
62
- set(CMAKE_CXX_FLAGS_ASAN "-O1 -g ${ADDRESS_SANITIZER_FLAG} -fno-omit-frame-pointer -fno-optimize-sibling-calls"
63
- CACHE STRING "Flags used by the C++ compiler during ASan builds."
64
- FORCE)
65
- set(CMAKE_EXE_LINKER_FLAGS_ASAN "${ADDRESS_SANITIZER_FLAG}"
66
- CACHE STRING "Flags used for linking binaries during ASan builds."
67
- FORCE)
68
- set(CMAKE_SHARED_LINKER_FLAGS_ASAN "${ADDRESS_SANITIZER_FLAG}"
69
- CACHE STRING "Flags used by the shared libraries linker during ASan builds."
70
- FORCE)
71
- mark_as_advanced(CMAKE_C_FLAGS_ASAN
72
- CMAKE_CXX_FLAGS_ASAN
73
- CMAKE_EXE_LINKER_FLAGS_ASAN
74
- CMAKE_SHARED_LINKER_FLAGS_ASAN)
@@ -1,226 +0,0 @@
1
- SRCDIR=src
2
- EXTDIR=extensions
3
- DATADIR=data
4
- BUILDDIR?=build
5
- GENERATOR?=Unix Makefiles
6
- MINGW_BUILDDIR?=build-mingw
7
- MINGW_INSTALLDIR?=windows
8
- SPEC=test/spec.txt
9
- EXTENSIONS_SPEC=test/extensions.txt
10
- SITE=_site
11
- SPECVERSION=$(shell perl -ne 'print $$1 if /^version: *([0-9.]+)/' $(SPEC))
12
- FUZZCHARS?=2000000 # for fuzztest
13
- BENCHDIR=bench
14
- BENCHSAMPLES=$(wildcard $(BENCHDIR)/samples/*.md)
15
- BENCHFILE=$(BENCHDIR)/benchinput.md
16
- ALLTESTS=alltests.md
17
- NUMRUNS?=20
18
- CMARK=$(BUILDDIR)/src/cmark-gfm
19
- CMARK_FUZZ=$(BUILDDIR)/src/cmark-fuzz
20
- PROG?=$(CMARK)
21
- VERSION?=$(SPECVERSION)
22
- RELEASE?=CommonMark-$(VERSION)
23
- INSTALL_PREFIX?=/usr/local
24
- CLANG_CHECK?=clang-check
25
- CLANG_FORMAT=clang-format-3.5 -style llvm -sort-includes=0 -i
26
- AFL_PATH?=/usr/local/bin
27
-
28
- .PHONY: all cmake_build leakcheck clean fuzztest test debug ubsan asan mingw archive newbench bench format update-spec afl clang-check docker libFuzzer
29
-
30
- all: cmake_build man/man3/cmark-gfm.3
31
-
32
- $(CMARK): cmake_build
33
-
34
- cmake_build: $(BUILDDIR)
35
- @$(MAKE) -j2 -C $(BUILDDIR)
36
- @echo "Binaries can be found in $(BUILDDIR)/src"
37
-
38
- $(BUILDDIR):
39
- @cmake --version > /dev/null || (echo "You need cmake to build this program: http://www.cmake.org/download/" && exit 1)
40
- mkdir -p $(BUILDDIR); \
41
- cd $(BUILDDIR); \
42
- cmake .. \
43
- -G "$(GENERATOR)" \
44
- -DCMAKE_BUILD_TYPE=$(BUILD_TYPE) \
45
- -DCMAKE_INSTALL_PREFIX=$(INSTALL_PREFIX) \
46
- -DCMAKE_EXPORT_COMPILE_COMMANDS=ON
47
-
48
- install: $(BUILDDIR)
49
- $(MAKE) -C $(BUILDDIR) install
50
-
51
- debug:
52
- mkdir -p $(BUILDDIR); \
53
- cd $(BUILDDIR); \
54
- cmake .. -DCMAKE_BUILD_TYPE=Debug; \
55
- $(MAKE)
56
-
57
- ubsan:
58
- mkdir -p $(BUILDDIR); \
59
- cd $(BUILDDIR); \
60
- cmake .. -DCMAKE_BUILD_TYPE=Ubsan; \
61
- $(MAKE)
62
-
63
- asan:
64
- mkdir -p $(BUILDDIR); \
65
- cd $(BUILDDIR); \
66
- cmake .. -DCMAKE_BUILD_TYPE=Asan; \
67
- $(MAKE)
68
-
69
- prof:
70
- mkdir -p $(BUILDDIR); \
71
- cd $(BUILDDIR); \
72
- cmake .. -DCMAKE_BUILD_TYPE=Profile; \
73
- $(MAKE)
74
-
75
- afl:
76
- @[ -n "$(AFL_PATH)" ] || { echo '$$AFL_PATH not set'; false; }
77
- mkdir -p $(BUILDDIR)
78
- cd $(BUILDDIR) && cmake .. -DCMAKE_C_COMPILER=$(AFL_PATH)/afl-clang
79
- $(MAKE)
80
- $(AFL_PATH)/afl-fuzz \
81
- -i test/afl_test_cases \
82
- -o test/afl_results \
83
- -x test/fuzzing_dictionary \
84
- $(AFL_OPTIONS) \
85
- -t 100 \
86
- $(CMARK) -e table -e strikethrough -e autolink -e tagfilter $(CMARK_OPTS)
87
-
88
- libFuzzer:
89
- @[ -n "$(LIB_FUZZER_PATH)" ] || { echo '$$LIB_FUZZER_PATH not set'; false; }
90
- mkdir -p $(BUILDDIR)
91
- cd $(BUILDDIR) && cmake -DCMAKE_BUILD_TYPE=Asan -DCMARK_LIB_FUZZER=ON -DCMAKE_LIB_FUZZER_PATH=$(LIB_FUZZER_PATH) ..
92
- $(MAKE) -j2 -C $(BUILDDIR) cmark-fuzz
93
- test/run-cmark-fuzz $(CMARK_FUZZ)
94
-
95
- clang-check: all
96
- ${CLANG_CHECK} -p build -analyze src/*.c
97
-
98
- mingw:
99
- mkdir -p $(MINGW_BUILDDIR); \
100
- cd $(MINGW_BUILDDIR); \
101
- cmake .. -DCMAKE_TOOLCHAIN_FILE=../toolchain-mingw32.cmake -DCMAKE_INSTALL_PREFIX=$(MINGW_INSTALLDIR) ;\
102
- $(MAKE) && $(MAKE) install
103
-
104
- man/man3/cmark-gfm.3: src/cmark.h | $(CMARK)
105
- python man/make_man_page.py $< > $@ \
106
-
107
- archive:
108
- git archive --prefix=$(RELEASE)/ -o $(RELEASE).tar.gz HEAD
109
- git archive --prefix=$(RELEASE)/ -o $(RELEASE).zip HEAD
110
-
111
- clean:
112
- rm -rf $(BUILDDIR) $(MINGW_BUILDDIR) $(MINGW_INSTALLDIR)
113
-
114
- # We include case_fold_switch.inc in the repository, so this shouldn't
115
- # normally need to be generated.
116
- $(SRCDIR)/case_fold_switch.inc: $(DATADIR)/CaseFolding.txt
117
- perl tools/mkcasefold.pl < $< > $@
118
-
119
- # We include scanners.c in the repository, so this shouldn't
120
- # normally need to be generated.
121
- $(SRCDIR)/scanners.c: $(SRCDIR)/scanners.re
122
- @case "$$(re2c -v)" in \
123
- *\ 0.13.*|*\ 0.14|*\ 0.14.1) \
124
- echo "re2c >= 0.14.2 is required"; \
125
- false; \
126
- ;; \
127
- esac
128
- re2c -W -Werror --case-insensitive -b -i --no-generation-date -8 \
129
- --encoding-policy substitute -o $@ $<
130
- $(CLANG_FORMAT) $@
131
-
132
- # We include scanners.c in the repository, so this shouldn't
133
- # normally need to be generated.
134
- $(EXTDIR)/ext_scanners.c: $(EXTDIR)/ext_scanners.re
135
- @case "$$(re2c -v)" in \
136
- *\ 0.13.*|*\ 0.14|*\ 0.14.1) \
137
- echo "re2c >= 0.14.2 is required"; \
138
- false; \
139
- ;; \
140
- esac
141
- re2c --case-insensitive -b -i --no-generation-date -8 \
142
- --encoding-policy substitute -o $@ $<
143
- clang-format-3.5 -style llvm -i $@
144
-
145
- # We include entities.inc in the repository, so normally this
146
- # doesn't need to be regenerated:
147
- $(SRCDIR)/entities.inc: tools/make_entities_inc.py
148
- python3 $< > $@
149
-
150
- update-spec:
151
- curl 'https://raw.githubusercontent.com/jgm/CommonMark/master/spec.txt'\
152
- > $(SPEC)
153
-
154
- test: $(SPEC) cmake_build
155
- $(MAKE) -C $(BUILDDIR) test || (cat $(BUILDDIR)/Testing/Temporary/LastTest.log && exit 1)
156
-
157
- $(ALLTESTS): $(SPEC) $(EXTENSIONS_SPEC)
158
- ( \
159
- python3 test/spec_tests.py --spec $(SPEC) --dump-tests | \
160
- python3 -c 'import json; import sys; tests = json.loads(sys.stdin.read()); u8s = open(1, "w", encoding="utf-8", closefd=False); print("\n".join([test["markdown"] for test in tests]), file=u8s)'; \
161
- python3 test/spec_tests.py --spec $(EXTENSIONS_SPEC) --dump-tests | \
162
- python3 -c 'import json; import sys; tests = json.loads(sys.stdin.read()); u8s = open(1, "w", encoding="utf-8", closefd=False); print("\n".join([test["markdown"] for test in tests]), file=u8s)'; \
163
- ) > $@
164
-
165
- leakcheck: $(ALLTESTS)
166
- for format in html man xml latex commonmark; do \
167
- for opts in "" "--smart"; do \
168
- echo "cmark-gfm -t $$format -e table -e strikethrough -e autolink -e tagfilter $$opts" ; \
169
- valgrind -q --leak-check=full --dsymutil=yes --suppressions=suppressions --error-exitcode=1 $(PROG) -t $$format -e table -e strikethrough -e autolink -e tagfilter $$opts $(ALLTESTS) >/dev/null || exit 1;\
170
- done; \
171
- done;
172
-
173
- fuzztest:
174
- { for i in `seq 1 10`; do \
175
- cat /dev/urandom | head -c $(FUZZCHARS) | iconv -f latin1 -t utf-8 | tee fuzz-$$i.txt | \
176
- /usr/bin/env time -p $(PROG) >/dev/null && rm fuzz-$$i.txt ; \
177
- done } 2>&1 | grep 'user\|abnormally'
178
-
179
- progit:
180
- git clone https://github.com/progit/progit.git
181
-
182
- $(BENCHFILE): progit
183
- echo "" > $@
184
- for lang in ar az be ca cs de en eo es es-ni fa fi fr hi hu id it ja ko mk nl no-nb pl pt-br ro ru sr th tr uk vi zh zh-tw; do \
185
- for i in `seq 1 10`; do \
186
- cat progit/$$lang/*/*.markdown >> $@; \
187
- done; \
188
- done
189
-
190
- # for more accurate results, run with
191
- # sudo renice -10 $$; make bench
192
- bench: $(BENCHFILE)
193
- { for x in `seq 1 $(NUMRUNS)` ; do \
194
- /usr/bin/env time -p $(PROG) </dev/null >/dev/null ; \
195
- /usr/bin/env time -p $(PROG) $< >/dev/null ; \
196
- done \
197
- } 2>&1 | grep 'real' | awk '{print $$2}' | python3 'bench/stats.py'
198
-
199
- newbench:
200
- for f in $(BENCHSAMPLES) ; do \
201
- printf "%26s " `basename $$f` ; \
202
- { for x in `seq 1 $(NUMRUNS)` ; do \
203
- /usr/bin/env time -p $(PROG) </dev/null >/dev/null ; \
204
- for x in `seq 1 200` ; do cat $$f ; done | \
205
- /usr/bin/env time -p $(PROG) > /dev/null; \
206
- done \
207
- } 2>&1 | grep 'real' | awk '{print $$2}' | \
208
- python3 'bench/stats.py'; done
209
-
210
- format:
211
- $(CLANG_FORMAT) src/*.c src/*.h api_test/*.c api_test/*.h
212
-
213
- format-extensions:
214
- clang-format-3.5 -style llvm -i extensions/*.c extensions/*.h
215
-
216
- operf: $(CMARK)
217
- operf $< < $(BENCHFILE) > /dev/null
218
-
219
- distclean: clean
220
- -rm -rf *.dSYM
221
- -rm -f README.html
222
- -rm -rf $(BENCHFILE) $(ALLTESTS) progit
223
-
224
- docker:
225
- docker build -t cmark $(CURDIR)/tools
226
- docker run --privileged -t -i -v $(CURDIR):/src/cmark -w /src/cmark cmark /bin/bash
@@ -1,36 +0,0 @@
1
- SRCDIR=src
2
- DATADIR=data
3
- BUILDDIR=build
4
- INSTALLDIR=windows
5
- SPEC=test/spec.txt
6
- PROG=$(BUILDDIR)\src\cmark.exe
7
- GENERATOR=NMake Makefiles
8
-
9
- all: $(BUILDDIR)/CMakeFiles
10
- @cd $(BUILDDIR) && $(MAKE) /nologo && cd ..
11
-
12
- $(BUILDDIR)/CMakeFiles:
13
- @-mkdir $(BUILDDIR) 2> nul
14
- cd $(BUILDDIR) && \
15
- cmake \
16
- -G "$(GENERATOR)" \
17
- -D CMAKE_BUILD_TYPE=$(BUILD_TYPE) \
18
- -D CMAKE_INSTALL_PREFIX=$(INSTALLDIR) \
19
- .. && \
20
- cd ..
21
-
22
- install: all
23
- @cd $(BUILDDIR) && $(MAKE) /nologo install && cd ..
24
-
25
- clean:
26
- -rmdir /s /q $(BUILDDIR) $(MINGW_INSTALLDIR) 2> nul
27
-
28
- $(SRCDIR)\case_fold_switch.inc: $(DATADIR)\CaseFolding-3.2.0.txt
29
- perl mkcasefold.pl < $? > $@
30
-
31
- test: $(SPEC) all
32
- @cd $(BUILDDIR) && $(MAKE) /nologo test ARGS="-V" && cd ..
33
-
34
- distclean: clean
35
- del /q src\scanners.c 2> nul
36
- del /q spec.md spec.html 2> nul
@@ -1,206 +0,0 @@
1
- cmark-gfm
2
- =========
3
-
4
- [![Build Status]](https://travis-ci.org/github/cmark)
5
- [![Windows Build Status]](https://ci.appveyor.com/project/github/cmark)
6
-
7
- `cmark-gfm` is an extended version of the C reference implementation of
8
- [CommonMark], a rationalized version of Markdown syntax with a spec. This
9
- repository adds GitHub Flavored Markdown extensions to
10
- [the upstream implementation], as defined in [the spec].
11
-
12
- The rest of the README is preserved as-is from the upstream source. Note that
13
- the library and binaries produced by this fork are suffixed with `-gfm` in
14
- order to distinguish them from the upstream.
15
-
16
- ---
17
-
18
- It provides a shared library (`libcmark`) with functions for parsing
19
- CommonMark documents to an abstract syntax tree (AST), manipulating
20
- the AST, and rendering the document to HTML, groff man, LaTeX,
21
- CommonMark, or an XML representation of the AST. It also provides a
22
- command-line program (`cmark`) for parsing and rendering CommonMark
23
- documents.
24
-
25
- Advantages of this library:
26
-
27
- - **Portable.** The library and program are written in standard
28
- C99 and have no external dependencies. They have been tested with
29
- MSVC, gcc, tcc, and clang.
30
-
31
- - **Fast.** cmark can render a Markdown version of *War and Peace* in
32
- the blink of an eye (127 milliseconds on a ten year old laptop,
33
- vs. 100-400 milliseconds for an eye blink). In our [benchmarks],
34
- cmark is 10,000 times faster than the original `Markdown.pl`, and
35
- on par with the very fastest available Markdown processors.
36
-
37
- - **Accurate.** The library passes all CommonMark conformance tests.
38
-
39
- - **Standardized.** The library can be expected to parse CommonMark
40
- the same way as any other conforming parser. So, for example,
41
- you can use `commonmark.js` on the client to preview content that
42
- will be rendered on the server using `cmark`.
43
-
44
- - **Robust.** The library has been extensively fuzz-tested using
45
- [american fuzzy lop]. The test suite includes pathological cases
46
- that bring many other Markdown parsers to a crawl (for example,
47
- thousands-deep nested bracketed text or block quotes).
48
-
49
- - **Flexible.** CommonMark input is parsed to an AST which can be
50
- manipulated programmatically prior to rendering.
51
-
52
- - **Multiple renderers.** Output in HTML, groff man, LaTeX, CommonMark,
53
- and a custom XML format is supported. And it is easy to write new
54
- renderers to support other formats.
55
-
56
- - **Free.** BSD2-licensed.
57
-
58
- It is easy to use `libcmark` in python, lua, ruby, and other dynamic
59
- languages: see the `wrappers/` subdirectory for some simple examples.
60
-
61
- There are also libraries that wrap `libcmark` for
62
- [Go](https://github.com/rhinoman/go-commonmark),
63
- [Haskell](https://hackage.haskell.org/package/cmark),
64
- [Ruby](https://github.com/gjtorikian/commonmarker),
65
- [Lua](https://github.com/jgm/cmark-lua),
66
- [Perl](https://metacpan.org/release/CommonMark),
67
- [Python](https://pypi.python.org/pypi/paka.cmark),
68
- [R](https://cran.r-project.org/package=commonmark),
69
- [Scala](https://github.com/sparsetech/cmark-scala) and
70
- [Node.js](https://github.com/killa123/node-cmark).
71
-
72
- Installing
73
- ----------
74
-
75
- Building the C program (`cmark`) and shared library (`libcmark`)
76
- requires [cmake]. If you modify `scanners.re`, then you will also
77
- need [re2c] \(>= 0.14.2\), which is used to generate `scanners.c` from
78
- `scanners.re`. We have included a pre-generated `scanners.c` in
79
- the repository to reduce build dependencies.
80
-
81
- If you have GNU make, you can simply `make`, `make test`, and `make
82
- install`. This calls [cmake] to create a `Makefile` in the `build`
83
- directory, then uses that `Makefile` to create the executable and
84
- library. The binaries can be found in `build/src`. The default
85
- installation prefix is `/usr/local`. To change the installation
86
- prefix, pass the `INSTALL_PREFIX` variable if you run `make` for the
87
- first time: `make INSTALL_PREFIX=path`.
88
-
89
- For a more portable method, you can use [cmake] manually. [cmake] knows
90
- how to create build environments for many build systems. For example,
91
- on FreeBSD:
92
-
93
- mkdir build
94
- cd build
95
- cmake .. # optionally: -DCMAKE_INSTALL_PREFIX=path
96
- make # executable will be created as build/src/cmark
97
- make test
98
- make install
99
-
100
- Or, to create Xcode project files on OSX:
101
-
102
- mkdir build
103
- cd build
104
- cmake -G Xcode ..
105
- open cmark.xcodeproj
106
-
107
- The GNU Makefile also provides a few other targets for developers.
108
- To run a benchmark:
109
-
110
- make bench
111
-
112
- For more detailed benchmarks:
113
-
114
- make newbench
115
-
116
- To run a test for memory leaks using `valgrind`:
117
-
118
- make leakcheck
119
-
120
- To reformat source code using `clang-format`:
121
-
122
- make format
123
-
124
- To run a "fuzz test" against ten long randomly generated inputs:
125
-
126
- make fuzztest
127
-
128
- To do a more systematic fuzz test with [american fuzzy lop]:
129
-
130
- AFL_PATH=/path/to/afl_directory make afl
131
-
132
- Fuzzing with [libFuzzer] is also supported but, because libFuzzer is still
133
- under active development, may not work with your system-installed version of
134
- clang. Assuming LLVM has been built in `$HOME/src/llvm/build` the fuzzer can be
135
- run with:
136
-
137
- CC="$HOME/src/llvm/build/bin/clang" LIB_FUZZER_PATH="$HOME/src/llvm/lib/Fuzzer/libFuzzer.a" make libFuzzer
138
-
139
- To make a release tarball and zip archive:
140
-
141
- make archive
142
-
143
- Installing (Windows)
144
- --------------------
145
-
146
- To compile with MSVC and NMAKE:
147
-
148
- nmake
149
-
150
- You can cross-compile a Windows binary and dll on linux if you have the
151
- `mingw32` compiler:
152
-
153
- make mingw
154
-
155
- The binaries will be in `build-mingw/windows/bin`.
156
-
157
- Usage
158
- -----
159
-
160
- Instructions for the use of the command line program and library can
161
- be found in the man pages in the `man` subdirectory.
162
-
163
- Security
164
- --------
165
-
166
- By default, the library will pass through raw HTML and potentially
167
- dangerous links (`javascript:`, `vbscript:`, `data:`, `file:`).
168
-
169
- It is recommended that users either disable this potentially unsafe
170
- feature by using the option `CMARK_OPT_SAFE` (or `--safe` with the
171
- command-line program), or run the output through an HTML sanitizer
172
- to protect against
173
- [XSS attacks](http://en.wikipedia.org/wiki/Cross-site_scripting).
174
-
175
- Contributing
176
- ------------
177
-
178
- There is a [forum for discussing
179
- CommonMark](http://talk.commonmark.org); you should use it instead of
180
- github issues for questions and possibly open-ended discussions.
181
- Use the [github issue tracker](http://github.com/jgm/CommonMark/issues)
182
- only for simple, clear, actionable issues.
183
-
184
- Authors
185
- -------
186
-
187
- John MacFarlane wrote the original library and program.
188
- The block parsing algorithm was worked out together with David
189
- Greenspan. Vicent Marti optimized the C implementation for
190
- performance, increasing its speed tenfold. Kārlis Gaņģis helped
191
- work out a better parsing algorithm for links and emphasis,
192
- eliminating several worst-case performance issues.
193
- Nick Wellnhofer contributed many improvements, including
194
- most of the C library's API and its test harness.
195
-
196
- [benchmarks]: benchmarks.md
197
- [the spec]: https://github.github.com/gfm/
198
- [the upstream implementation]: https://github.com/jgm/cmark
199
- [CommonMark]: http://commonmark.org
200
- [cmake]: http://www.cmake.org/download/
201
- [re2c]: http://re2c.org
202
- [commonmark.js]: https://github.com/jgm/commonmark.js
203
- [Build Status]: https://img.shields.io/travis/github/cmark/master.svg?style=flat
204
- [Windows Build Status]: https://ci.appveyor.com/api/projects/status/wv7ifhqhv5itm3d5?svg=true
205
- [american fuzzy lop]: http://lcamtuf.coredump.cx/afl/
206
- [libFuzzer]: http://llvm.org/docs/LibFuzzer.html