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,64 +0,0 @@
1
- #ifndef CMARK_SCANNERS_H
2
- #define CMARK_SCANNERS_H
3
-
4
- #include "cmark.h"
5
- #include "chunk.h"
6
-
7
- #ifdef __cplusplus
8
- extern "C" {
9
- #endif
10
-
11
- bufsize_t _scan_at(bufsize_t (*scanner)(const unsigned char *), cmark_chunk *c,
12
- bufsize_t offset);
13
- bufsize_t _scan_scheme(const unsigned char *p);
14
- bufsize_t _scan_autolink_uri(const unsigned char *p);
15
- bufsize_t _scan_autolink_email(const unsigned char *p);
16
- bufsize_t _scan_html_tag(const unsigned char *p);
17
- bufsize_t _scan_liberal_html_tag(const unsigned char *p);
18
- bufsize_t _scan_html_block_start(const unsigned char *p);
19
- bufsize_t _scan_html_block_start_7(const unsigned char *p);
20
- bufsize_t _scan_html_block_end_1(const unsigned char *p);
21
- bufsize_t _scan_html_block_end_2(const unsigned char *p);
22
- bufsize_t _scan_html_block_end_3(const unsigned char *p);
23
- bufsize_t _scan_html_block_end_4(const unsigned char *p);
24
- bufsize_t _scan_html_block_end_5(const unsigned char *p);
25
- bufsize_t _scan_link_title(const unsigned char *p);
26
- bufsize_t _scan_spacechars(const unsigned char *p);
27
- bufsize_t _scan_atx_heading_start(const unsigned char *p);
28
- bufsize_t _scan_setext_heading_line(const unsigned char *p);
29
- bufsize_t _scan_thematic_break(const unsigned char *p);
30
- bufsize_t _scan_open_code_fence(const unsigned char *p);
31
- bufsize_t _scan_close_code_fence(const unsigned char *p);
32
- bufsize_t _scan_entity(const unsigned char *p);
33
- bufsize_t _scan_dangerous_url(const unsigned char *p);
34
- bufsize_t _scan_footnote_definition(const unsigned char *p);
35
-
36
- #define scan_scheme(c, n) _scan_at(&_scan_scheme, c, n)
37
- #define scan_autolink_uri(c, n) _scan_at(&_scan_autolink_uri, c, n)
38
- #define scan_autolink_email(c, n) _scan_at(&_scan_autolink_email, c, n)
39
- #define scan_html_tag(c, n) _scan_at(&_scan_html_tag, c, n)
40
- #define scan_liberal_html_tag(c, n) _scan_at(&_scan_liberal_html_tag, c, n)
41
- #define scan_html_block_start(c, n) _scan_at(&_scan_html_block_start, c, n)
42
- #define scan_html_block_start_7(c, n) _scan_at(&_scan_html_block_start_7, c, n)
43
- #define scan_html_block_end_1(c, n) _scan_at(&_scan_html_block_end_1, c, n)
44
- #define scan_html_block_end_2(c, n) _scan_at(&_scan_html_block_end_2, c, n)
45
- #define scan_html_block_end_3(c, n) _scan_at(&_scan_html_block_end_3, c, n)
46
- #define scan_html_block_end_4(c, n) _scan_at(&_scan_html_block_end_4, c, n)
47
- #define scan_html_block_end_5(c, n) _scan_at(&_scan_html_block_end_5, c, n)
48
- #define scan_link_title(c, n) _scan_at(&_scan_link_title, c, n)
49
- #define scan_spacechars(c, n) _scan_at(&_scan_spacechars, c, n)
50
- #define scan_atx_heading_start(c, n) _scan_at(&_scan_atx_heading_start, c, n)
51
- #define scan_setext_heading_line(c, n) \
52
- _scan_at(&_scan_setext_heading_line, c, n)
53
- #define scan_thematic_break(c, n) _scan_at(&_scan_thematic_break, c, n)
54
- #define scan_open_code_fence(c, n) _scan_at(&_scan_open_code_fence, c, n)
55
- #define scan_close_code_fence(c, n) _scan_at(&_scan_close_code_fence, c, n)
56
- #define scan_entity(c, n) _scan_at(&_scan_entity, c, n)
57
- #define scan_dangerous_url(c, n) _scan_at(&_scan_dangerous_url, c, n)
58
- #define scan_footnote_definition(c, n) _scan_at(&_scan_footnote_definition, c, n)
59
-
60
- #ifdef __cplusplus
61
- }
62
- #endif
63
-
64
- #endif
@@ -1,341 +0,0 @@
1
- #include <stdlib.h>
2
- #include "chunk.h"
3
- #include "scanners.h"
4
-
5
- bufsize_t _scan_at(bufsize_t (*scanner)(const unsigned char *), cmark_chunk *c, bufsize_t offset)
6
- {
7
- bufsize_t res;
8
- unsigned char *ptr = (unsigned char *)c->data;
9
-
10
- if (ptr == NULL || offset > c->len) {
11
- return 0;
12
- } else {
13
- unsigned char lim = ptr[c->len];
14
-
15
- ptr[c->len] = '\0';
16
- res = scanner(ptr + offset);
17
- ptr[c->len] = lim;
18
- }
19
-
20
- return res;
21
- }
22
-
23
- /*!re2c
24
- re2c:define:YYCTYPE = "unsigned char";
25
- re2c:define:YYCURSOR = p;
26
- re2c:define:YYMARKER = marker;
27
- re2c:define:YYCTXMARKER = marker;
28
- re2c:yyfill:enable = 0;
29
-
30
- wordchar = [^\x00-\x20];
31
-
32
- spacechar = [ \t\v\f\r\n];
33
-
34
- reg_char = [^\\()\x00-\x20];
35
-
36
- escaped_char = [\\][!"#$%&'()*+,./:;<=>?@[\\\]^_`{|}~-];
37
-
38
- tagname = [A-Za-z][A-Za-z0-9-]*;
39
-
40
- blocktagname = 'address'|'article'|'aside'|'base'|'basefont'|'blockquote'|'body'|'caption'|'center'|'col'|'colgroup'|'dd'|'details'|'dialog'|'dir'|'div'|'dl'|'dt'|'fieldset'|'figcaption'|'figure'|'footer'|'form'|'frame'|'frameset'|'h1'|'h2'|'h3'|'h4'|'h5'|'h6'|'head'|'header'|'hr'|'html'|'iframe'|'legend'|'li'|'link'|'main'|'menu'|'menuitem'|'meta'|'nav'|'noframes'|'ol'|'optgroup'|'option'|'p'|'param'|'section'|'source'|'title'|'summary'|'table'|'tbody'|'td'|'tfoot'|'th'|'thead'|'title'|'tr'|'track'|'ul';
41
-
42
- attributename = [a-zA-Z_:][a-zA-Z0-9:._-]*;
43
-
44
- unquotedvalue = [^"'=<>`\x00]+;
45
- singlequotedvalue = ['][^'\x00]*['];
46
- doublequotedvalue = ["][^"\x00]*["];
47
-
48
- attributevalue = unquotedvalue | singlequotedvalue | doublequotedvalue;
49
-
50
- attributevaluespec = spacechar* [=] spacechar* attributevalue;
51
-
52
- attribute = spacechar+ attributename attributevaluespec?;
53
-
54
- opentag = tagname attribute* spacechar* [/]? [>];
55
- closetag = [/] tagname spacechar* [>];
56
-
57
- htmlcomment = "!---->" | ("!--" ([-]? [^\x00>-]) ([-]? [^\x00-])* "-->");
58
-
59
- processinginstruction = "?" ([^?>\x00]+ | [?][^>\x00] | [>])* "?>";
60
-
61
- declaration = "!" [A-Z]+ spacechar+ [^>\x00]* ">";
62
-
63
- cdata = "![CDATA[" ([^\]\x00]+ | "]" [^\]\x00] | "]]" [^>\x00])* "]]>";
64
-
65
- htmltag = opentag | closetag | htmlcomment | processinginstruction |
66
- declaration | cdata;
67
-
68
- in_parens_nosp = [(] (reg_char|escaped_char|[\\])* [)];
69
-
70
- in_double_quotes = ["] (escaped_char|[^"\x00])* ["];
71
- in_single_quotes = ['] (escaped_char|[^'\x00])* ['];
72
- in_parens = [(] (escaped_char|[^)\x00])* [)];
73
-
74
- scheme = [A-Za-z][A-Za-z0-9.+-]{1,31};
75
- */
76
-
77
- // Try to match a scheme including colon.
78
- bufsize_t _scan_scheme(const unsigned char *p)
79
- {
80
- const unsigned char *marker = NULL;
81
- const unsigned char *start = p;
82
- /*!re2c
83
- scheme [:] { return (bufsize_t)(p - start); }
84
- * { return 0; }
85
- */
86
- }
87
-
88
- // Try to match URI autolink after first <, returning number of chars matched.
89
- bufsize_t _scan_autolink_uri(const unsigned char *p)
90
- {
91
- const unsigned char *marker = NULL;
92
- const unsigned char *start = p;
93
- /*!re2c
94
- scheme [:][^\x00-\x20<>]*[>] { return (bufsize_t)(p - start); }
95
- * { return 0; }
96
- */
97
- }
98
-
99
- // Try to match email autolink after first <, returning num of chars matched.
100
- bufsize_t _scan_autolink_email(const unsigned char *p)
101
- {
102
- const unsigned char *marker = NULL;
103
- const unsigned char *start = p;
104
- /*!re2c
105
- [a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+
106
- [@]
107
- [a-zA-Z0-9]([a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?
108
- ([.][a-zA-Z0-9]([a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*
109
- [>] { return (bufsize_t)(p - start); }
110
- * { return 0; }
111
- */
112
- }
113
-
114
- // Try to match an HTML tag after first <, returning num of chars matched.
115
- bufsize_t _scan_html_tag(const unsigned char *p)
116
- {
117
- const unsigned char *marker = NULL;
118
- const unsigned char *start = p;
119
- /*!re2c
120
- htmltag { return (bufsize_t)(p - start); }
121
- * { return 0; }
122
- */
123
- }
124
-
125
- // Try to (liberally) match an HTML tag after first <, returning num of chars matched.
126
- bufsize_t _scan_liberal_html_tag(const unsigned char *p)
127
- {
128
- const unsigned char *marker = NULL;
129
- const unsigned char *start = p;
130
- /*!re2c
131
- [^\n\x00]+ [>] { return (bufsize_t)(p - start); }
132
- * { return 0; }
133
- */
134
- }
135
-
136
- // Try to match an HTML block tag start line, returning
137
- // an integer code for the type of block (1-6, matching the spec).
138
- // #7 is handled by a separate function, below.
139
- bufsize_t _scan_html_block_start(const unsigned char *p)
140
- {
141
- const unsigned char *marker = NULL;
142
- /*!re2c
143
- [<] ('script'|'pre'|'style') (spacechar | [>]) { return 1; }
144
- '<!--' { return 2; }
145
- '<?' { return 3; }
146
- '<!' [A-Z] { return 4; }
147
- '<![CDATA[' { return 5; }
148
- [<] [/]? blocktagname (spacechar | [/]? [>]) { return 6; }
149
- * { return 0; }
150
- */
151
- }
152
-
153
- // Try to match an HTML block tag start line of type 7, returning
154
- // 7 if successful, 0 if not.
155
- bufsize_t _scan_html_block_start_7(const unsigned char *p)
156
- {
157
- const unsigned char *marker = NULL;
158
- /*!re2c
159
- [<] (opentag | closetag) [\t\n\f ]* [\r\n] { return 7; }
160
- * { return 0; }
161
- */
162
- }
163
-
164
- // Try to match an HTML block end line of type 1
165
- bufsize_t _scan_html_block_end_1(const unsigned char *p)
166
- {
167
- const unsigned char *marker = NULL;
168
- const unsigned char *start = p;
169
- /*!re2c
170
- [^\n\x00]* [<] [/] ('script'|'pre'|'style') [>] { return (bufsize_t)(p - start); }
171
- * { return 0; }
172
- */
173
- }
174
-
175
- // Try to match an HTML block end line of type 2
176
- bufsize_t _scan_html_block_end_2(const unsigned char *p)
177
- {
178
- const unsigned char *marker = NULL;
179
- const unsigned char *start = p;
180
- /*!re2c
181
- [^\n\x00]* '-->' { return (bufsize_t)(p - start); }
182
- * { return 0; }
183
- */
184
- }
185
-
186
- // Try to match an HTML block end line of type 3
187
- bufsize_t _scan_html_block_end_3(const unsigned char *p)
188
- {
189
- const unsigned char *marker = NULL;
190
- const unsigned char *start = p;
191
- /*!re2c
192
- [^\n\x00]* '?>' { return (bufsize_t)(p - start); }
193
- * { return 0; }
194
- */
195
- }
196
-
197
- // Try to match an HTML block end line of type 4
198
- bufsize_t _scan_html_block_end_4(const unsigned char *p)
199
- {
200
- const unsigned char *marker = NULL;
201
- const unsigned char *start = p;
202
- /*!re2c
203
- [^\n\x00]* '>' { return (bufsize_t)(p - start); }
204
- * { return 0; }
205
- */
206
- }
207
-
208
- // Try to match an HTML block end line of type 5
209
- bufsize_t _scan_html_block_end_5(const unsigned char *p)
210
- {
211
- const unsigned char *marker = NULL;
212
- const unsigned char *start = p;
213
- /*!re2c
214
- [^\n\x00]* ']]>' { return (bufsize_t)(p - start); }
215
- * { return 0; }
216
- */
217
- }
218
-
219
- // Try to match a link title (in single quotes, in double quotes, or
220
- // in parentheses), returning number of chars matched. Allow one
221
- // level of internal nesting (quotes within quotes).
222
- bufsize_t _scan_link_title(const unsigned char *p)
223
- {
224
- const unsigned char *marker = NULL;
225
- const unsigned char *start = p;
226
- /*!re2c
227
- ["] (escaped_char|[^"\x00])* ["] { return (bufsize_t)(p - start); }
228
- ['] (escaped_char|[^'\x00])* ['] { return (bufsize_t)(p - start); }
229
- [(] (escaped_char|[^)\x00])* [)] { return (bufsize_t)(p - start); }
230
- * { return 0; }
231
- */
232
- }
233
-
234
- // Match space characters, including newlines.
235
- bufsize_t _scan_spacechars(const unsigned char *p)
236
- {
237
- const unsigned char *start = p; \
238
- /*!re2c
239
- [ \t\v\f\r\n]+ { return (bufsize_t)(p - start); }
240
- * { return 0; }
241
- */
242
- }
243
-
244
- // Match ATX heading start.
245
- bufsize_t _scan_atx_heading_start(const unsigned char *p)
246
- {
247
- const unsigned char *marker = NULL;
248
- const unsigned char *start = p;
249
- /*!re2c
250
- [#]{1,6} ([ \t]+|[\r\n]) { return (bufsize_t)(p - start); }
251
- * { return 0; }
252
- */
253
- }
254
-
255
- // Match setext heading line. Return 1 for level-1 heading,
256
- // 2 for level-2, 0 for no match.
257
- bufsize_t _scan_setext_heading_line(const unsigned char *p)
258
- {
259
- const unsigned char *marker = NULL;
260
- /*!re2c
261
- [=]+ [ \t]* [\r\n] { return 1; }
262
- [-]+ [ \t]* [\r\n] { return 2; }
263
- * { return 0; }
264
- */
265
- }
266
-
267
- // Scan a thematic break line: "...three or more hyphens, asterisks,
268
- // or underscores on a line by themselves. If you wish, you may use
269
- // spaces between the hyphens or asterisks."
270
- bufsize_t _scan_thematic_break(const unsigned char *p)
271
- {
272
- const unsigned char *marker = NULL;
273
- const unsigned char *start = p;
274
- /*!re2c
275
- ([*][ \t]*){3,} [ \t]* [\r\n] { return (bufsize_t)(p - start); }
276
- ([_][ \t]*){3,} [ \t]* [\r\n] { return (bufsize_t)(p - start); }
277
- ([-][ \t]*){3,} [ \t]* [\r\n] { return (bufsize_t)(p - start); }
278
- * { return 0; }
279
- */
280
- }
281
-
282
- // Scan an opening code fence.
283
- bufsize_t _scan_open_code_fence(const unsigned char *p)
284
- {
285
- const unsigned char *marker = NULL;
286
- const unsigned char *start = p;
287
- /*!re2c
288
- [`]{3,} / [^`\r\n\x00]*[\r\n] { return (bufsize_t)(p - start); }
289
- [~]{3,} / [^~\r\n\x00]*[\r\n] { return (bufsize_t)(p - start); }
290
- * { return 0; }
291
- */
292
- }
293
-
294
- // Scan a closing code fence with length at least len.
295
- bufsize_t _scan_close_code_fence(const unsigned char *p)
296
- {
297
- const unsigned char *marker = NULL;
298
- const unsigned char *start = p;
299
- /*!re2c
300
- [`]{3,} / [ \t]*[\r\n] { return (bufsize_t)(p - start); }
301
- [~]{3,} / [ \t]*[\r\n] { return (bufsize_t)(p - start); }
302
- * { return 0; }
303
- */
304
- }
305
-
306
- // Scans an entity.
307
- // Returns number of chars matched.
308
- bufsize_t _scan_entity(const unsigned char *p)
309
- {
310
- const unsigned char *marker = NULL;
311
- const unsigned char *start = p;
312
- /*!re2c
313
- [&] ([#] ([Xx][A-Fa-f0-9]{1,8}|[0-9]{1,8}) |[A-Za-z][A-Za-z0-9]{1,31} ) [;]
314
- { return (bufsize_t)(p - start); }
315
- * { return 0; }
316
- */
317
- }
318
-
319
- // Returns positive value if a URL begins in a way that is potentially
320
- // dangerous, with javascript:, vbscript:, file:, or data:, otherwise 0.
321
- bufsize_t _scan_dangerous_url(const unsigned char *p)
322
- {
323
- const unsigned char *marker = NULL;
324
- const unsigned char *start = p;
325
- /*!re2c
326
- 'data:image/' ('png'|'gif'|'jpeg'|'webp') { return 0; }
327
- 'javascript:' | 'vbscript:' | 'file:' | 'data:' { return (bufsize_t)(p - start); }
328
- * { return 0; }
329
- */
330
- }
331
-
332
- // Scans a footnote definition opening.
333
- bufsize_t _scan_footnote_definition(const unsigned char *p)
334
- {
335
- const unsigned char *marker = NULL;
336
- const unsigned char *start = p;
337
- /*!re2c
338
- '[^' ([^\] \r\n\x00\t]+) ']:' [ \t]* { return (bufsize_t)(p - start); }
339
- * { return 0; }
340
- */
341
- }
@@ -1,139 +0,0 @@
1
- #include <stdlib.h>
2
- #include <assert.h>
3
-
4
- #include "cmark.h"
5
- #include "syntax_extension.h"
6
- #include "buffer.h"
7
-
8
- extern cmark_mem CMARK_DEFAULT_MEM_ALLOCATOR;
9
-
10
- static cmark_mem *_mem = &CMARK_DEFAULT_MEM_ALLOCATOR;
11
-
12
- void cmark_syntax_extension_free(cmark_mem *mem, cmark_syntax_extension *extension) {
13
- if (extension->free_function && extension->priv) {
14
- extension->free_function(mem, extension->priv);
15
- }
16
-
17
- cmark_llist_free(mem, extension->special_inline_chars);
18
- mem->free(extension->name);
19
- mem->free(extension);
20
- }
21
-
22
- cmark_syntax_extension *cmark_syntax_extension_new(const char *name) {
23
- cmark_syntax_extension *res = (cmark_syntax_extension *) _mem->calloc(1, sizeof(cmark_syntax_extension));
24
- res->name = (char *) _mem->calloc(1, sizeof(char) * (strlen(name)) + 1);
25
- strcpy(res->name, name);
26
- return res;
27
- }
28
-
29
- cmark_node_type cmark_syntax_extension_add_node(int is_inline) {
30
- cmark_node_type *ref = !is_inline ? &CMARK_NODE_LAST_BLOCK : &CMARK_NODE_LAST_INLINE;
31
-
32
- if ((*ref & CMARK_NODE_VALUE_MASK) == CMARK_NODE_VALUE_MASK) {
33
- assert(false);
34
- return (cmark_node_type) 0;
35
- }
36
-
37
- return *ref = (cmark_node_type) ((int) *ref + 1);
38
- }
39
-
40
- void cmark_syntax_extension_set_emphasis(cmark_syntax_extension *extension,
41
- int emphasis) {
42
- extension->emphasis = emphasis == 1;
43
- }
44
-
45
- void cmark_syntax_extension_set_open_block_func(cmark_syntax_extension *extension,
46
- cmark_open_block_func func) {
47
- extension->try_opening_block = func;
48
- }
49
-
50
- void cmark_syntax_extension_set_match_block_func(cmark_syntax_extension *extension,
51
- cmark_match_block_func func) {
52
- extension->last_block_matches = func;
53
- }
54
-
55
- void cmark_syntax_extension_set_match_inline_func(cmark_syntax_extension *extension,
56
- cmark_match_inline_func func) {
57
- extension->match_inline = func;
58
- }
59
-
60
- void cmark_syntax_extension_set_inline_from_delim_func(cmark_syntax_extension *extension,
61
- cmark_inline_from_delim_func func) {
62
- extension->insert_inline_from_delim = func;
63
- }
64
-
65
- void cmark_syntax_extension_set_special_inline_chars(cmark_syntax_extension *extension,
66
- cmark_llist *special_chars) {
67
- extension->special_inline_chars = special_chars;
68
- }
69
-
70
- void cmark_syntax_extension_set_get_type_string_func(cmark_syntax_extension *extension,
71
- cmark_get_type_string_func func) {
72
- extension->get_type_string_func = func;
73
- }
74
-
75
- void cmark_syntax_extension_set_can_contain_func(cmark_syntax_extension *extension,
76
- cmark_can_contain_func func) {
77
- extension->can_contain_func = func;
78
- }
79
-
80
- void cmark_syntax_extension_set_contains_inlines_func(cmark_syntax_extension *extension,
81
- cmark_contains_inlines_func func) {
82
- extension->contains_inlines_func = func;
83
- }
84
-
85
- void cmark_syntax_extension_set_commonmark_render_func(cmark_syntax_extension *extension,
86
- cmark_common_render_func func) {
87
- extension->commonmark_render_func = func;
88
- }
89
-
90
- void cmark_syntax_extension_set_plaintext_render_func(cmark_syntax_extension *extension,
91
- cmark_common_render_func func) {
92
- extension->plaintext_render_func = func;
93
- }
94
-
95
- void cmark_syntax_extension_set_latex_render_func(cmark_syntax_extension *extension,
96
- cmark_common_render_func func) {
97
- extension->latex_render_func = func;
98
- }
99
-
100
- void cmark_syntax_extension_set_man_render_func(cmark_syntax_extension *extension,
101
- cmark_common_render_func func) {
102
- extension->man_render_func = func;
103
- }
104
-
105
- void cmark_syntax_extension_set_html_render_func(cmark_syntax_extension *extension,
106
- cmark_html_render_func func) {
107
- extension->html_render_func = func;
108
- }
109
-
110
- void cmark_syntax_extension_set_html_filter_func(cmark_syntax_extension *extension,
111
- cmark_html_filter_func func) {
112
- extension->html_filter_func = func;
113
- }
114
-
115
- void cmark_syntax_extension_set_postprocess_func(cmark_syntax_extension *extension,
116
- cmark_postprocess_func func) {
117
- extension->postprocess_func = func;
118
- }
119
-
120
- void cmark_syntax_extension_set_private(cmark_syntax_extension *extension,
121
- void *priv,
122
- cmark_free_func free_func) {
123
- extension->priv = priv;
124
- extension->free_function = free_func;
125
- }
126
-
127
- void *cmark_syntax_extension_get_private(cmark_syntax_extension *extension) {
128
- return extension->priv;
129
- }
130
-
131
- void cmark_syntax_extension_set_opaque_free_func(cmark_syntax_extension *extension,
132
- cmark_opaque_free_func func) {
133
- extension->opaque_free_func = func;
134
- }
135
-
136
- void cmark_syntax_extension_set_commonmark_escape_func(cmark_syntax_extension *extension,
137
- cmark_commonmark_escape_func func) {
138
- extension->commonmark_escape_func = func;
139
- }