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,10 +0,0 @@
1
- {
2
- .
3
- Memcheck:Leak
4
- fun:malloc
5
- fun:__smakebuf
6
- fun:__srefill0
7
- fun:__fread
8
- fun:fread
9
- fun:main
10
- }
@@ -1,98 +0,0 @@
1
- # To get verbose output: cmake --build build --target "test" -- ARGS='-V'
2
-
3
- # By default, we run the spec tests only if python3 is available.
4
- # To require the spec tests, compile with -DSPEC_TESTS=1
5
-
6
- if (SPEC_TESTS)
7
- find_package(PythonInterp 3 REQUIRED)
8
- else(SPEC_TESTS)
9
- find_package(PythonInterp 3)
10
- endif(SPEC_TESTS)
11
-
12
- if (CMARK_SHARED)
13
- add_test(NAME api_test COMMAND api_test)
14
- endif()
15
-
16
- if (WIN32)
17
- file(TO_NATIVE_PATH ${CMAKE_BINARY_DIR}/src WIN_SRC_DLL_DIR)
18
- file(TO_NATIVE_PATH ${CMAKE_BINARY_DIR}/extensions WIN_EXTENSIONS_DLL_DIR)
19
- set(NEWPATH "${WIN_SRC_DLL_DIR};${WIN_EXTENSIONS_DLL_DIR};$ENV{PATH}")
20
- string(REPLACE ";" "\\;" NEWPATH "${NEWPATH}")
21
- set_tests_properties(api_test PROPERTIES ENVIRONMENT "PATH=${NEWPATH}")
22
- set(ROUNDTRIP "${CMAKE_CURRENT_SOURCE_DIR}/roundtrip.bat")
23
- else(WIN32)
24
- set(ROUNDTRIP "${CMAKE_CURRENT_SOURCE_DIR}/roundtrip.sh")
25
- endif(WIN32)
26
-
27
- IF (PYTHONINTERP_FOUND)
28
-
29
- add_test(html_normalization
30
- ${PYTHON_EXECUTABLE} "-m" "doctest"
31
- "${CMAKE_CURRENT_SOURCE_DIR}/normalize.py"
32
- )
33
-
34
- if (CMARK_SHARED)
35
- add_test(spectest_library
36
- ${PYTHON_EXECUTABLE} "${CMAKE_CURRENT_SOURCE_DIR}/spec_tests.py" "--no-normalize" "--spec"
37
- "${CMAKE_CURRENT_SOURCE_DIR}/spec.txt" "--library-dir" "${CMAKE_CURRENT_BINARY_DIR}/../src"
38
- )
39
-
40
- add_test(pathological_tests_library
41
- ${PYTHON_EXECUTABLE} "${CMAKE_CURRENT_SOURCE_DIR}/pathological_tests.py"
42
- "--library-dir" "${CMAKE_CURRENT_BINARY_DIR}/../src"
43
- )
44
-
45
- add_test(roundtriptest_library
46
- ${PYTHON_EXECUTABLE}
47
- "${CMAKE_CURRENT_SOURCE_DIR}/roundtrip_tests.py"
48
- "--spec" "${CMAKE_CURRENT_SOURCE_DIR}/spec.txt"
49
- "--library-dir" "${CMAKE_CURRENT_BINARY_DIR}/../src"
50
- )
51
-
52
- add_test(entity_library
53
- ${PYTHON_EXECUTABLE} "${CMAKE_CURRENT_SOURCE_DIR}/entity_tests.py"
54
- "--library-dir" "${CMAKE_CURRENT_BINARY_DIR}/../src"
55
- )
56
- endif()
57
-
58
- add_test(spectest_executable
59
- ${PYTHON_EXECUTABLE} "${CMAKE_CURRENT_SOURCE_DIR}/spec_tests.py" "--no-normalize" "--spec" "${CMAKE_CURRENT_SOURCE_DIR}/spec.txt" "--program" "${CMAKE_CURRENT_BINARY_DIR}/../src/cmark-gfm"
60
- )
61
-
62
- add_test(smartpuncttest_executable
63
- ${PYTHON_EXECUTABLE} "${CMAKE_CURRENT_SOURCE_DIR}/spec_tests.py" "--no-normalize" "--spec" "${CMAKE_CURRENT_SOURCE_DIR}/smart_punct.txt" "--program" "${CMAKE_CURRENT_BINARY_DIR}/../src/cmark-gfm --smart"
64
- )
65
-
66
- add_test(extensions_executable
67
- ${PYTHON_EXECUTABLE}
68
- "${CMAKE_CURRENT_SOURCE_DIR}/spec_tests.py"
69
- "--no-normalize"
70
- "--spec" "${CMAKE_CURRENT_SOURCE_DIR}/extensions.txt"
71
- "--program" "${CMAKE_CURRENT_BINARY_DIR}/../src/cmark-gfm --footnotes"
72
- "--extensions" "table strikethrough autolink tagfilter"
73
- )
74
-
75
- add_test(roundtrip_extensions_executable
76
- ${PYTHON_EXECUTABLE}
77
- "${CMAKE_CURRENT_SOURCE_DIR}/roundtrip_tests.py"
78
- "--spec" "${CMAKE_CURRENT_SOURCE_DIR}/extensions.txt"
79
- "--program" "${CMAKE_CURRENT_BINARY_DIR}/../src/cmark-gfm --footnotes"
80
- "--extensions" "table strikethrough autolink tagfilter"
81
- )
82
-
83
- add_test(regressiontest_executable
84
- ${PYTHON_EXECUTABLE}
85
- "${CMAKE_CURRENT_SOURCE_DIR}/spec_tests.py" "--no-normalize" "--spec"
86
- "${CMAKE_CURRENT_SOURCE_DIR}/regression.txt" "--program"
87
- "${CMAKE_CURRENT_BINARY_DIR}/../src/cmark-gfm"
88
- )
89
-
90
-
91
- ELSE(PYTHONINTERP_FOUND)
92
-
93
- message("\n*** A python 3 interpreter is required to run the spec tests.\n")
94
- add_test(skipping_spectests
95
- echo "Skipping spec tests, because no python 3 interpreter is available.")
96
-
97
- ENDIF(PYTHONINTERP_FOUND)
98
-
@@ -1,49 +0,0 @@
1
- # H1
2
-
3
- H2
4
- --
5
-
6
- t ☺
7
- *b* **em** `c`
8
- ≥\&\
9
- \_e\_
10
-
11
- 4) I1
12
-
13
- 5) I2
14
- > [l](/u "t")
15
- >
16
- > - [f]
17
- > - ![a](/u "t")
18
- >
19
- >> <ftp://hh>
20
- >> <u@hh>
21
-
22
- ~~~ l☺
23
- cb
24
- ~~~
25
-
26
- c1
27
- c2
28
-
29
- ***
30
-
31
- <div>
32
- <b>x</b>
33
- </div>
34
-
35
- | a | b |
36
- | --- | --- |
37
- | c | `d|` \| e |
38
-
39
- google ~~yahoo~~
40
-
41
- google.com http://google.com google@google.com
42
-
43
- and <xmp> but
44
-
45
- <surewhynot>
46
- sure
47
- </surewhynot>
48
-
49
- [f]: /u "t"
@@ -1,28 +0,0 @@
1
- #include <stdint.h>
2
- #include <stdlib.h>
3
- #include "cmark.h"
4
-
5
- int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) {
6
- int options = 0;
7
- if (size > sizeof(options)) {
8
- /* First 4 bytes of input are treated as options */
9
- int options = *(const int *)data;
10
-
11
- /* Mask off valid option bits */
12
- options = options & (CMARK_OPT_SOURCEPOS | CMARK_OPT_HARDBREAKS | CMARK_OPT_SAFE | CMARK_OPT_NOBREAKS | CMARK_OPT_NORMALIZE | CMARK_OPT_VALIDATE_UTF8 | CMARK_OPT_SMART);
13
-
14
- /* Remainder of input is the markdown */
15
- const char *markdown = (const char *)(data + sizeof(options));
16
- const size_t markdown_size = size - sizeof(options);
17
- cmark_node *doc = cmark_parse_document(markdown, markdown_size, options);
18
-
19
- free(cmark_render_commonmark(doc, options, 80));
20
- free(cmark_render_html(doc, options, NULL));
21
- free(cmark_render_latex(doc, options, 80));
22
- free(cmark_render_man(doc, options, 80));
23
- free(cmark_render_xml(doc, options));
24
-
25
- cmark_node_free(doc);
26
- }
27
- return 0;
28
- }
@@ -1,103 +0,0 @@
1
- #!/usr/bin/env python3
2
- # -*- coding: utf-8 -*-
3
-
4
- from ctypes import CDLL, c_char_p, c_size_t, c_int, c_void_p
5
- from subprocess import *
6
- import platform
7
- import os
8
-
9
- def pipe_through_prog(prog, text):
10
- p1 = Popen(prog.split(), stdout=PIPE, stdin=PIPE, stderr=PIPE)
11
- [result, err] = p1.communicate(input=text.encode('utf-8'))
12
- return [p1.returncode, result.decode('utf-8'), err]
13
-
14
- def parse(lib, extlib, text, extensions):
15
- core_extensions_ensure_registered = extlib.core_extensions_ensure_registered
16
-
17
- find_syntax_extension = lib.cmark_find_syntax_extension
18
- find_syntax_extension.restype = c_void_p
19
- find_syntax_extension.argtypes = [c_char_p]
20
-
21
- parser_attach_syntax_extension = lib.cmark_parser_attach_syntax_extension
22
- parser_attach_syntax_extension.argtypes = [c_void_p, c_void_p]
23
-
24
- parser_new = lib.cmark_parser_new
25
- parser_new.restype = c_void_p
26
- parser_new.argtypes = [c_int]
27
-
28
- parser_feed = lib.cmark_parser_feed
29
- parser_feed.argtypes = [c_void_p, c_char_p, c_int]
30
-
31
- parser_finish = lib.cmark_parser_finish
32
- parser_finish.restype = c_void_p
33
- parser_finish.argtypes = [c_void_p]
34
-
35
- core_extensions_ensure_registered()
36
-
37
- parser = parser_new(0)
38
- for e in set(extensions):
39
- ext = find_syntax_extension(bytes(e, 'utf-8'))
40
- if not ext:
41
- raise Exception("Extension not found: '{}'".format(e))
42
- parser_attach_syntax_extension(parser, ext)
43
-
44
- textbytes = text.encode('utf-8')
45
- textlen = len(textbytes)
46
- parser_feed(parser, textbytes, textlen)
47
-
48
- return [parser_finish(parser), parser]
49
-
50
- def to_html(lib, extlib, text, extensions):
51
- document, parser = parse(lib, extlib, text, extensions)
52
- parser_get_syntax_extensions = lib.cmark_parser_get_syntax_extensions
53
- parser_get_syntax_extensions.restype = c_void_p
54
- parser_get_syntax_extensions.argtypes = [c_void_p]
55
- syntax_extensions = parser_get_syntax_extensions(parser)
56
-
57
- render_html = lib.cmark_render_html
58
- render_html.restype = c_char_p
59
- render_html.argtypes = [c_void_p, c_int, c_void_p]
60
- result = render_html(document, 0, syntax_extensions).decode('utf-8')
61
- return [0, result, '']
62
-
63
- def to_commonmark(lib, extlib, text, extensions):
64
- document, _ = parse(lib, extlib, text, extensions)
65
-
66
- render_commonmark = lib.cmark_render_commonmark
67
- render_commonmark.restype = c_char_p
68
- render_commonmark.argtypes = [c_void_p, c_int, c_int]
69
- result = render_commonmark(document, 0, 0).decode('utf-8')
70
- return [0, result, '']
71
-
72
- class CMark:
73
- def __init__(self, prog=None, library_dir=None, extensions=None):
74
- self.prog = prog
75
- self.extensions = []
76
- if extensions:
77
- self.extensions = extensions.split()
78
-
79
- if prog:
80
- extsfun = lambda exts: ''.join([' -e ' + e for e in set(exts)])
81
- self.to_html = lambda x, exts=[]: pipe_through_prog(prog + extsfun(exts + self.extensions), x)
82
- self.to_commonmark = lambda x, exts=[]: pipe_through_prog(prog + ' -t commonmark' + extsfun(exts + self.extensions), x)
83
- else:
84
- sysname = platform.system()
85
- if sysname == 'Darwin':
86
- libnames = [ ["lib", ".dylib" ] ]
87
- elif sysname == 'Windows':
88
- libnames = [ ["", ".dll"], ["lib", ".dll"] ]
89
- else:
90
- libnames = [ ["lib", ".so"] ]
91
- if not library_dir:
92
- library_dir = os.path.join("..", "build", "src")
93
- for prefix, suffix in libnames:
94
- candidate = os.path.join(library_dir, prefix + "cmark-gfm" + suffix)
95
- if os.path.isfile(candidate):
96
- libpath = candidate
97
- break
98
- cmark = CDLL(libpath)
99
- extlib = CDLL(os.path.join(
100
- library_dir, "..", "extensions", prefix + "cmark-gfmextensions" + suffix))
101
- self.to_html = lambda x, exts=[]: to_html(cmark, extlib, x, exts + self.extensions)
102
- self.to_commonmark = lambda x, exts=[]: to_commonmark(cmark, extlib, x, exts + self.extensions)
103
-
@@ -1,67 +0,0 @@
1
- #!/usr/bin/env python3
2
- # -*- coding: utf-8 -*-
3
-
4
- import re
5
- import os
6
- import argparse
7
- import sys
8
- import platform
9
- import html
10
- from cmark import CMark
11
-
12
- def get_entities():
13
- regex = r'^{\(unsigned char\*\)"([^"]+)", \{([^}]+)\}'
14
- with open(os.path.join(os.path.dirname(__file__), '..', 'src', 'entities.inc')) as f:
15
- code = f.read()
16
- entities = []
17
- for entity, utf8 in re.findall(regex, code, re.MULTILINE):
18
- utf8 = bytes(map(int, utf8.split(", ")[:-1])).decode('utf-8')
19
- entities.append((entity, utf8))
20
- return entities
21
-
22
- if __name__ == "__main__":
23
- parser = argparse.ArgumentParser(description='Run cmark tests.')
24
- parser.add_argument('--program', dest='program', nargs='?', default=None,
25
- help='program to test')
26
- parser.add_argument('--library-dir', dest='library_dir', nargs='?',
27
- default=None, help='directory containing dynamic library')
28
- args = parser.parse_args(sys.argv[1:])
29
-
30
- cmark = CMark(prog=args.program, library_dir=args.library_dir)
31
-
32
- entities = get_entities()
33
-
34
- passed = 0
35
- errored = 0
36
- failed = 0
37
-
38
- exceptions = {
39
- 'quot': '&quot;',
40
- 'QUOT': '&quot;',
41
-
42
- # These are broken, but I'm not too worried about them.
43
- 'nvlt': '&lt;⃒',
44
- 'nvgt': '&gt;⃒',
45
- }
46
-
47
- print("Testing entities:")
48
- for entity, utf8 in entities:
49
- [rc, actual, err] = cmark.to_html("&{};".format(entity))
50
- check = exceptions.get(entity, utf8)
51
-
52
- if rc != 0:
53
- errored += 1
54
- print(entity, '[ERRORED (return code {})]'.format(rc))
55
- print(err)
56
- elif check in actual:
57
- passed += 1
58
- else:
59
- print(entity, '[FAILED]')
60
- print(repr(actual))
61
- failed += 1
62
-
63
- print("{} passed, {} failed, {} errored".format(passed, failed, errored))
64
- if failed == 0 and errored == 0:
65
- exit(0)
66
- else:
67
- exit(1)
@@ -1,674 +0,0 @@
1
- ---
2
- title: Extensions test
3
- author: Yuki Izumi
4
- version: 0.1
5
- date: '2016-08-31'
6
- license: '[CC-BY-SA 4.0](http://creativecommons.org/licenses/by-sa/4.0/)'
7
- ...
8
-
9
- ## Tables
10
-
11
- Here's a well-formed table, doing everything it should.
12
-
13
- ```````````````````````````````` example
14
- | abc | def |
15
- | --- | --- |
16
- | ghi | jkl |
17
- | mno | pqr |
18
- .
19
- <table>
20
- <thead>
21
- <tr>
22
- <th>abc</th>
23
- <th>def</th>
24
- </tr>
25
- </thead>
26
- <tbody>
27
- <tr>
28
- <td>ghi</td>
29
- <td>jkl</td>
30
- </tr>
31
- <tr>
32
- <td>mno</td>
33
- <td>pqr</td>
34
- </tr></tbody></table>
35
- ````````````````````````````````
36
-
37
- We're going to mix up the table now; we'll demonstrate that inline formatting
38
- works fine, but block elements don't. You can also have empty cells, and the
39
- textual alignment of the columns is shown to be irrelevant.
40
-
41
- ```````````````````````````````` example
42
- Hello!
43
-
44
- | _abc_ | セン |
45
- | ----- | ---- |
46
- | 1. Block elements inside cells don't work. | |
47
- | But _**inline elements do**_. | x |
48
-
49
- Hi!
50
- .
51
- <p>Hello!</p>
52
- <table>
53
- <thead>
54
- <tr>
55
- <th><em>abc</em></th>
56
- <th>セン</th>
57
- </tr>
58
- </thead>
59
- <tbody>
60
- <tr>
61
- <td>1. Block elements inside cells don't work.</td>
62
- <td></td>
63
- </tr>
64
- <tr>
65
- <td>But <em><strong>inline elements do</strong></em>.</td>
66
- <td>x</td>
67
- </tr></tbody></table>
68
- <p>Hi!</p>
69
- ````````````````````````````````
70
-
71
- Here we demonstrate some edge cases about what is and isn't a table.
72
-
73
- ```````````````````````````````` example
74
- | Not enough table | to be considered table |
75
-
76
- | Not enough table | to be considered table |
77
- | Not enough table | to be considered table |
78
-
79
- | Just enough table | to be considered table |
80
- | ----------------- | ---------------------- |
81
-
82
- | ---- | --- |
83
-
84
- |x|
85
- |-|
86
-
87
- | xyz |
88
- | --- |
89
- .
90
- <p>| Not enough table | to be considered table |</p>
91
- <p>| Not enough table | to be considered table |
92
- | Not enough table | to be considered table |</p>
93
- <table>
94
- <thead>
95
- <tr>
96
- <th>Just enough table</th>
97
- <th>to be considered table</th>
98
- </tr>
99
- </thead></table>
100
- <p>| ---- | --- |</p>
101
- <table>
102
- <thead>
103
- <tr>
104
- <th>x</th>
105
- </tr>
106
- </thead></table>
107
- <table>
108
- <thead>
109
- <tr>
110
- <th>xyz</th>
111
- </tr>
112
- </thead></table>
113
- ````````````````````````````````
114
-
115
- A "simpler" table, GFM style:
116
-
117
- ```````````````````````````````` example
118
- abc | def
119
- --- | ---
120
- xyz | ghi
121
- .
122
- <table>
123
- <thead>
124
- <tr>
125
- <th>abc</th>
126
- <th>def</th>
127
- </tr>
128
- </thead>
129
- <tbody>
130
- <tr>
131
- <td>xyz</td>
132
- <td>ghi</td>
133
- </tr></tbody></table>
134
- ````````````````````````````````
135
-
136
- We are making the parser slighly more lax here. Here is a table with spaces at
137
- the end:
138
-
139
- ```````````````````````````````` example
140
- Hello!
141
-
142
- | _abc_ | セン |
143
- | ----- | ---- |
144
- | this row has a space at the end | |
145
- | But _**inline elements do**_. | x |
146
-
147
- Hi!
148
- .
149
- <p>Hello!</p>
150
- <table>
151
- <thead>
152
- <tr>
153
- <th><em>abc</em></th>
154
- <th>セン</th>
155
- </tr>
156
- </thead>
157
- <tbody>
158
- <tr>
159
- <td>this row has a space at the end</td>
160
- <td></td>
161
- </tr>
162
- <tr>
163
- <td>But <em><strong>inline elements do</strong></em>.</td>
164
- <td>x</td>
165
- </tr></tbody></table>
166
- <p>Hi!</p>
167
- ````````````````````````````````
168
-
169
- Table alignment:
170
-
171
- ```````````````````````````````` example
172
- aaa | bbb | ccc | ddd | eee
173
- :-- | --- | :-: | --- | --:
174
- fff | ggg | hhh | iii | jjj
175
- .
176
- <table>
177
- <thead>
178
- <tr>
179
- <th align="left">aaa</th>
180
- <th>bbb</th>
181
- <th align="center">ccc</th>
182
- <th>ddd</th>
183
- <th align="right">eee</th>
184
- </tr>
185
- </thead>
186
- <tbody>
187
- <tr>
188
- <td align="left">fff</td>
189
- <td>ggg</td>
190
- <td align="center">hhh</td>
191
- <td>iii</td>
192
- <td align="right">jjj</td>
193
- </tr></tbody></table>
194
- ````````````````````````````````
195
-
196
- ### Table cell count mismatches
197
-
198
- The header and marker row must match.
199
-
200
- ```````````````````````````````` example
201
- | a | b | c |
202
- | --- | --- |
203
- | this | isn't | okay |
204
- .
205
- <p>| a | b | c |
206
- | --- | --- |
207
- | this | isn't | okay |</p>
208
- ````````````````````````````````
209
-
210
- But any of the body rows can be shorter. Rows longer
211
- than the header are truncated.
212
-
213
- ```````````````````````````````` example
214
- | a | b | c |
215
- | --- | --- | ---
216
- | x
217
- | a | b
218
- | 1 | 2 | 3 | 4 | 5 |
219
- .
220
- <table>
221
- <thead>
222
- <tr>
223
- <th>a</th>
224
- <th>b</th>
225
- <th>c</th>
226
- </tr>
227
- </thead>
228
- <tbody>
229
- <tr>
230
- <td>x</td>
231
- <td></td>
232
- <td></td>
233
- </tr>
234
- <tr>
235
- <td>a</td>
236
- <td>b</td>
237
- <td></td>
238
- </tr>
239
- <tr>
240
- <td>1</td>
241
- <td>2</td>
242
- <td>3</td>
243
- </tr></tbody></table>
244
- ````````````````````````````````
245
-
246
- ### Embedded pipes
247
-
248
- Tables with embedded pipes could be tricky.
249
-
250
- ```````````````````````````````` example
251
- | a | b |
252
- | --- | --- |
253
- | Escaped pipes are \|okay\|. | Like \| this. |
254
- | Within `\|code\| is okay` too. |
255
- | _**`c\|`**_ \| complex
256
- | don't **\_reparse\_**
257
- .
258
- <table>
259
- <thead>
260
- <tr>
261
- <th>a</th>
262
- <th>b</th>
263
- </tr>
264
- </thead>
265
- <tbody>
266
- <tr>
267
- <td>Escaped pipes are |okay|.</td>
268
- <td>Like | this.</td>
269
- </tr>
270
- <tr>
271
- <td>Within <code>|code| is okay</code> too.</td>
272
- <td></td>
273
- </tr>
274
- <tr>
275
- <td><em><strong><code>c|</code></strong></em> | complex</td>
276
- <td></td>
277
- </tr>
278
- <tr>
279
- <td>don't <strong>_reparse_</strong></td>
280
- <td></td>
281
- </tr></tbody></table>
282
- ````````````````````````````````
283
-
284
- ### Oddly-formatted markers
285
-
286
- This shouldn't assert.
287
-
288
- ```````````````````````````````` example
289
- | a |
290
- --- |
291
- .
292
- <table>
293
- <thead>
294
- <tr>
295
- <th>a</th>
296
- </tr>
297
- </thead></table>
298
- ````````````````````````````````
299
-
300
- ### Escaping
301
-
302
- ```````````````````````````````` example
303
- | a | b |
304
- | --- | --- |
305
- | \\ | `\\` |
306
- | \\\\ | `\\\\` |
307
- | \_ | `\_` |
308
- | \| | `\|` |
309
- | \a | `\a` |
310
-
311
- \\ `\\`
312
-
313
- \\\\ `\\\\`
314
-
315
- \_ `\_`
316
-
317
- \| `\|`
318
-
319
- \a `\a`
320
- .
321
- <table>
322
- <thead>
323
- <tr>
324
- <th>a</th>
325
- <th>b</th>
326
- </tr>
327
- </thead>
328
- <tbody>
329
- <tr>
330
- <td>\</td>
331
- <td><code>\\</code></td>
332
- </tr>
333
- <tr>
334
- <td>\\</td>
335
- <td><code>\\\\</code></td>
336
- </tr>
337
- <tr>
338
- <td>_</td>
339
- <td><code>\_</code></td>
340
- </tr>
341
- <tr>
342
- <td>|</td>
343
- <td><code>|</code></td>
344
- </tr>
345
- <tr>
346
- <td>\a</td>
347
- <td><code>\a</code></td>
348
- </tr></tbody></table>
349
- <p>\ <code>\\</code></p>
350
- <p>\\ <code>\\\\</code></p>
351
- <p>_ <code>\_</code></p>
352
- <p>| <code>\|</code></p>
353
- <p>\a <code>\a</code></p>
354
- ````````````````````````````````
355
-
356
- ### Embedded HTML
357
-
358
- ```````````````````````````````` example
359
- | a |
360
- | --- |
361
- | <strong>hello</strong> |
362
- | ok <br> sure |
363
- .
364
- <table>
365
- <thead>
366
- <tr>
367
- <th>a</th>
368
- </tr>
369
- </thead>
370
- <tbody>
371
- <tr>
372
- <td><strong>hello</strong></td>
373
- </tr>
374
- <tr>
375
- <td>ok <br> sure</td>
376
- </tr></tbody></table>
377
- ````````````````````````````````
378
-
379
- ### Reference-style links
380
-
381
- ```````````````````````````````` example
382
- Here's a link to [Freedom Planet 2][].
383
-
384
- | Here's a link to [Freedom Planet 2][] in a table header. |
385
- | --- |
386
- | Here's a link to [Freedom Planet 2][] in a table row. |
387
-
388
- [Freedom Planet 2]: http://www.freedomplanet2.com/
389
- .
390
- <p>Here's a link to <a href="http://www.freedomplanet2.com/">Freedom Planet 2</a>.</p>
391
- <table>
392
- <thead>
393
- <tr>
394
- <th>Here's a link to <a href="http://www.freedomplanet2.com/">Freedom Planet 2</a> in a table header.</th>
395
- </tr>
396
- </thead>
397
- <tbody>
398
- <tr>
399
- <td>Here's a link to <a href="http://www.freedomplanet2.com/">Freedom Planet 2</a> in a table row.</td>
400
- </tr></tbody></table>
401
- ````````````````````````````````
402
-
403
- ### Sequential cells
404
-
405
- ```````````````````````````````` example
406
- | a | b | c |
407
- | --- | --- | --- |
408
- | d || e |
409
- .
410
- <table>
411
- <thead>
412
- <tr>
413
- <th>a</th>
414
- <th>b</th>
415
- <th>c</th>
416
- </tr>
417
- </thead>
418
- <tbody>
419
- <tr>
420
- <td>d</td>
421
- <td></td>
422
- <td>e</td>
423
- </tr></tbody></table>
424
- ````````````````````````````````
425
-
426
- ### Interaction with emphasis
427
-
428
- ```````````````````````````````` example
429
- | a | b |
430
- | --- | --- |
431
- |***(a)***|
432
- .
433
- <table>
434
- <thead>
435
- <tr>
436
- <th>a</th>
437
- <th>b</th>
438
- </tr>
439
- </thead>
440
- <tbody>
441
- <tr>
442
- <td><em><strong>(a)</strong></em></td>
443
- <td></td>
444
- </tr></tbody></table>
445
- ````````````````````````````````
446
-
447
-
448
- ## Strikethroughs
449
-
450
- A well-formed strikethrough.
451
-
452
- ```````````````````````````````` example
453
- A proper ~strikethrough~.
454
- .
455
- <p>A proper <del>strikethrough</del>.</p>
456
- ````````````````````````````````
457
-
458
- Some strikethrough edge cases.
459
-
460
- ```````````````````````````````` example
461
- These are ~not strikethroughs.
462
-
463
- No, they are not~
464
-
465
- This ~is ~ legit~ isn't ~ legit.
466
-
467
- This is just ~~~~~one~~~~~ huge strikethrough.
468
- .
469
- <p>These are ~not strikethroughs.</p>
470
- <p>No, they are not~</p>
471
- <p>This <del>is ~ legit</del> isn't ~ legit.</p>
472
- <p>This is just <del>one</del> huge strikethrough.</p>
473
- ````````````````````````````````
474
-
475
-
476
- ## Autolinks
477
-
478
- ```````````````````````````````` example
479
- : http://google.com https://google.com
480
-
481
- <http://google.com/å> http://google.com/å
482
-
483
- scyther@pokemon.com
484
-
485
- www.github.com www.github.com/á
486
-
487
- www.google.com/a_b
488
-
489
- **Autolink and http://inlines**
490
-
491
- ![http://inline.com/image](http://inline.com/image)
492
-
493
- a.w@b.c
494
-
495
- Full stop outside parens shouldn't be included http://google.com/ok.
496
-
497
- (Full stop inside parens shouldn't be included http://google.com/ok.)
498
-
499
- "http://google.com"
500
-
501
- 'http://google.com'
502
-
503
- http://🍄.ga/ http://x🍄.ga/
504
- .
505
- <p>: <a href="http://google.com">http://google.com</a> <a href="https://google.com">https://google.com</a></p>
506
- <p><a href="http://google.com/%C3%A5">http://google.com/å</a> <a href="http://google.com/%C3%A5">http://google.com/å</a></p>
507
- <p><a href="mailto:scyther@pokemon.com">scyther@pokemon.com</a></p>
508
- <p><a href="http://www.github.com">www.github.com</a> <a href="http://www.github.com/%C3%A1">www.github.com/á</a></p>
509
- <p><a href="http://www.google.com/a_b">www.google.com/a_b</a></p>
510
- <p><strong>Autolink and <a href="http://inlines">http://inlines</a></strong></p>
511
- <p><img src="http://inline.com/image" alt="http://inline.com/image" /></p>
512
- <p><a href="mailto:a.w@b.c">a.w@b.c</a></p>
513
- <p>Full stop outside parens shouldn't be included <a href="http://google.com/ok">http://google.com/ok</a>.</p>
514
- <p>(Full stop inside parens shouldn't be included <a href="http://google.com/ok">http://google.com/ok</a>.)</p>
515
- <p>&quot;<a href="http://google.com">http://google.com</a>&quot;</p>
516
- <p>'<a href="http://google.com">http://google.com</a>'</p>
517
- <p><a href="http://%F0%9F%8D%84.ga/">http://🍄.ga/</a> <a href="http://x%F0%9F%8D%84.ga/">http://x🍄.ga/</a></p>
518
- ````````````````````````````````
519
-
520
- ```````````````````````````````` example
521
- This shouldn't crash everything: (_A_@_.A
522
- .
523
- <IGNORE>
524
- ````````````````````````````````
525
-
526
- ```````````````````````````````` example
527
- These should not link:
528
-
529
- * @a.b.c@. x
530
- * n@. b
531
- .
532
- <p>These should not link:</p>
533
- <ul>
534
- <li>@a.b.c@. x</li>
535
- <li>n@. b</li>
536
- </ul>
537
- ````````````````````````````````
538
-
539
- ## HTML tag filter
540
-
541
-
542
- ```````````````````````````````` example
543
- This is <xmp> not okay, but **this** <strong>is</strong>.
544
-
545
- <p>This is <xmp> not okay, but **this** <strong>is</strong>.</p>
546
-
547
- Nope, I won't have <textarea>.
548
-
549
- <p>No <textarea> here either.</p>
550
-
551
- <p>This <random /> <thing> is okay</thing> though.</p>
552
-
553
- Yep, <totally>okay</totally>.
554
-
555
- <!-- HTML comments are okay, though. -->
556
- <!- But we're strict. ->
557
- <! No nonsense. >
558
- <!-- Leave multiline comments the heck alone, though, okay?
559
- Even with {"x":"y"} or 1 > 2 or whatever. Even **markdown**.
560
- -->
561
- <!--- Support everything CommonMark's parser does. -->
562
- <!---->
563
- <!--thistoo-->
564
- .
565
- <p>This is &lt;xmp> not okay, but <strong>this</strong> <strong>is</strong>.</p>
566
- <p>This is &lt;xmp> not okay, but **this** <strong>is</strong>.</p>
567
- <p>Nope, I won't have &lt;textarea>.</p>
568
- <p>No &lt;textarea> here either.</p>
569
- <p>This <random /> <thing> is okay</thing> though.</p>
570
- <p>Yep, <totally>okay</totally>.</p>
571
- <!-- HTML comments are okay, though. -->
572
- <p>&lt;!- But we're strict. -&gt;
573
- &lt;! No nonsense. &gt;</p>
574
- <!-- Leave multiline comments the heck alone, though, okay?
575
- Even with {"x":"y"} or 1 > 2 or whatever. Even **markdown**.
576
- -->
577
- <!--- Support everything CommonMark's parser does. -->
578
- <!---->
579
- <!--thistoo-->
580
- ````````````````````````````````
581
-
582
- ## Footnotes
583
-
584
- ```````````````````````````````` example
585
- This is some text![^1]. Other text.[^footnote].
586
-
587
- Here's a thing[^other-note].
588
-
589
- And another thing[^codeblock-note].
590
-
591
- This doesn't have a referent[^nope].
592
-
593
-
594
- [^other-note]: no code block here (spaces are stripped away)
595
-
596
- [^codeblock-note]:
597
- this is now a code block (8 spaces indentation)
598
-
599
- [^1]: Some *bolded* footnote definition.
600
-
601
- Hi!
602
-
603
- [^footnote]:
604
- > Blockquotes can be in a footnote.
605
-
606
- as well as code blocks
607
-
608
- or, naturally, simple paragraphs.
609
-
610
- [^unused]: This is unused.
611
- .
612
- <p>This is some text!<sup class="footnote-ref"><a href="#fn1" id="fnref1">[1]</a></sup>. Other text.<sup class="footnote-ref"><a href="#fn2" id="fnref2">[2]</a></sup>.</p>
613
- <p>Here's a thing<sup class="footnote-ref"><a href="#fn3" id="fnref3">[3]</a></sup>.</p>
614
- <p>And another thing<sup class="footnote-ref"><a href="#fn4" id="fnref4">[4]</a></sup>.</p>
615
- <p>This doesn't have a referent[^nope].</p>
616
- <p>Hi!</p>
617
- <section class="footnotes">
618
- <ol>
619
- <li id="fn1">
620
- <p>Some <em>bolded</em> footnote definition. <a href="#fnref1" class="footnote-backref">↩</a></p>
621
- </li>
622
- <li id="fn2">
623
- <blockquote>
624
- <p>Blockquotes can be in a footnote.</p>
625
- </blockquote>
626
- <pre><code>as well as code blocks
627
- </code></pre>
628
- <p>or, naturally, simple paragraphs. <a href="#fnref2" class="footnote-backref">↩</a></p>
629
- </li>
630
- <li id="fn3">
631
- <p>no code block here (spaces are stripped away) <a href="#fnref3" class="footnote-backref">↩</a></p>
632
- </li>
633
- <li id="fn4">
634
- <pre><code>this is now a code block (8 spaces indentation)
635
- </code></pre>
636
- <a href="#fnref4" class="footnote-backref">↩</a>
637
- </li>
638
- </ol>
639
- </section>
640
- ````````````````````````````````
641
-
642
- ## Interop
643
-
644
- Autolink and strikethrough.
645
-
646
- ```````````````````````````````` example
647
- ~~www.google.com~~
648
-
649
- ~~http://google.com~~
650
- .
651
- <p><del><a href="http://www.google.com">www.google.com</a></del></p>
652
- <p><del><a href="http://google.com">http://google.com</a></del></p>
653
- ````````````````````````````````
654
-
655
- Autolink and tables.
656
-
657
- ```````````````````````````````` example
658
- | a | b |
659
- | --- | --- |
660
- | https://github.com www.github.com | http://pokemon.com |
661
- .
662
- <table>
663
- <thead>
664
- <tr>
665
- <th>a</th>
666
- <th>b</th>
667
- </tr>
668
- </thead>
669
- <tbody>
670
- <tr>
671
- <td><a href="https://github.com">https://github.com</a> <a href="http://www.github.com">www.github.com</a></td>
672
- <td><a href="http://pokemon.com">http://pokemon.com</a></td>
673
- </tr></tbody></table>
674
- ````````````````````````````````