commonmarker 0.0.1

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of commonmarker might be problematic. Click here for more details.

Files changed (291) hide show
  1. checksums.yaml +7 -0
  2. data/Gemfile +8 -0
  3. data/LICENSE.txt +22 -0
  4. data/README.md +119 -0
  5. data/Rakefile +39 -0
  6. data/bin/commonmarker +41 -0
  7. data/commonmarker.gemspec +30 -0
  8. data/ext/commonmarker/cmark/CMakeLists.txt +25 -0
  9. data/ext/commonmarker/cmark/COPYING +192 -0
  10. data/ext/commonmarker/cmark/FindAsan.cmake +74 -0
  11. data/ext/commonmarker/cmark/Makefile +170 -0
  12. data/ext/commonmarker/cmark/Makefile.nmake +36 -0
  13. data/ext/commonmarker/cmark/README.md +169 -0
  14. data/ext/commonmarker/cmark/api_test/CMakeLists.txt +25 -0
  15. data/ext/commonmarker/cmark/api_test/cplusplus.cpp +15 -0
  16. data/ext/commonmarker/cmark/api_test/cplusplus.h +17 -0
  17. data/ext/commonmarker/cmark/api_test/harness.c +102 -0
  18. data/ext/commonmarker/cmark/api_test/harness.h +42 -0
  19. data/ext/commonmarker/cmark/api_test/main.c +700 -0
  20. data/ext/commonmarker/cmark/appveyor.yml +15 -0
  21. data/ext/commonmarker/cmark/bench/statistics.py +595 -0
  22. data/ext/commonmarker/cmark/bench/stats.py +19 -0
  23. data/ext/commonmarker/cmark/benchmarks.md +33 -0
  24. data/ext/commonmarker/cmark/build/CMakeCache.txt +362 -0
  25. data/ext/commonmarker/cmark/build/CMakeFiles/3.2.2/CMakeCCompiler.cmake +63 -0
  26. data/ext/commonmarker/cmark/build/CMakeFiles/3.2.2/CMakeCXXCompiler.cmake +64 -0
  27. data/ext/commonmarker/cmark/build/CMakeFiles/3.2.2/CMakeDetermineCompilerABI_C.bin +0 -0
  28. data/ext/commonmarker/cmark/build/CMakeFiles/3.2.2/CMakeDetermineCompilerABI_CXX.bin +0 -0
  29. data/ext/commonmarker/cmark/build/CMakeFiles/3.2.2/CMakeSystem.cmake +15 -0
  30. data/ext/commonmarker/cmark/build/CMakeFiles/3.2.2/CompilerIdC/CMakeCCompilerId.c +499 -0
  31. data/ext/commonmarker/cmark/build/CMakeFiles/3.2.2/CompilerIdC/a.out +0 -0
  32. data/ext/commonmarker/cmark/build/CMakeFiles/3.2.2/CompilerIdCXX/CMakeCXXCompilerId.cpp +489 -0
  33. data/ext/commonmarker/cmark/build/CMakeFiles/3.2.2/CompilerIdCXX/a.out +0 -0
  34. data/ext/commonmarker/cmark/build/CMakeFiles/CMakeDirectoryInformation.cmake +16 -0
  35. data/ext/commonmarker/cmark/build/CMakeFiles/CMakeError.log +30 -0
  36. data/ext/commonmarker/cmark/build/CMakeFiles/CMakeOutput.log +598 -0
  37. data/ext/commonmarker/cmark/build/CMakeFiles/Makefile.cmake +77 -0
  38. data/ext/commonmarker/cmark/build/CMakeFiles/Makefile2 +268 -0
  39. data/ext/commonmarker/cmark/build/CMakeFiles/TargetDirectories.txt +4 -0
  40. data/ext/commonmarker/cmark/build/CMakeFiles/cmake.check_cache +1 -0
  41. data/ext/commonmarker/cmark/build/CMakeFiles/feature_tests.bin +0 -0
  42. data/ext/commonmarker/cmark/build/CMakeFiles/feature_tests.c +34 -0
  43. data/ext/commonmarker/cmark/build/CMakeFiles/feature_tests.cxx +405 -0
  44. data/ext/commonmarker/cmark/build/CMakeFiles/progress.marks +1 -0
  45. data/ext/commonmarker/cmark/build/CTestTestfile.cmake +10 -0
  46. data/ext/commonmarker/cmark/build/Makefile +237 -0
  47. data/ext/commonmarker/cmark/build/api_test/CMakeFiles/CMakeDirectoryInformation.cmake +16 -0
  48. data/ext/commonmarker/cmark/build/api_test/CMakeFiles/api_test.dir/C.includecache +92 -0
  49. data/ext/commonmarker/cmark/build/api_test/CMakeFiles/api_test.dir/CXX.includecache +36 -0
  50. data/ext/commonmarker/cmark/build/api_test/CMakeFiles/api_test.dir/DependInfo.cmake +29 -0
  51. data/ext/commonmarker/cmark/build/api_test/CMakeFiles/api_test.dir/build.make +155 -0
  52. data/ext/commonmarker/cmark/build/api_test/CMakeFiles/api_test.dir/cmake_clean.cmake +12 -0
  53. data/ext/commonmarker/cmark/build/api_test/CMakeFiles/api_test.dir/cplusplus.cpp.o +0 -0
  54. data/ext/commonmarker/cmark/build/api_test/CMakeFiles/api_test.dir/depend.internal +25 -0
  55. data/ext/commonmarker/cmark/build/api_test/CMakeFiles/api_test.dir/depend.make +25 -0
  56. data/ext/commonmarker/cmark/build/api_test/CMakeFiles/api_test.dir/flags.make +13 -0
  57. data/ext/commonmarker/cmark/build/api_test/CMakeFiles/api_test.dir/harness.c.o +0 -0
  58. data/ext/commonmarker/cmark/build/api_test/CMakeFiles/api_test.dir/link.txt +1 -0
  59. data/ext/commonmarker/cmark/build/api_test/CMakeFiles/api_test.dir/main.c.o +0 -0
  60. data/ext/commonmarker/cmark/build/api_test/CMakeFiles/api_test.dir/progress.make +4 -0
  61. data/ext/commonmarker/cmark/build/api_test/CMakeFiles/progress.marks +1 -0
  62. data/ext/commonmarker/cmark/build/api_test/Makefile +277 -0
  63. data/ext/commonmarker/cmark/build/api_test/api_test +0 -0
  64. data/ext/commonmarker/cmark/build/api_test/cmake_install.cmake +29 -0
  65. data/ext/commonmarker/cmark/build/cmake_install.cmake +48 -0
  66. data/ext/commonmarker/cmark/build/man/CMakeFiles/CMakeDirectoryInformation.cmake +16 -0
  67. data/ext/commonmarker/cmark/build/man/CMakeFiles/progress.marks +1 -0
  68. data/ext/commonmarker/cmark/build/man/Makefile +181 -0
  69. data/ext/commonmarker/cmark/build/man/cmake_install.cmake +37 -0
  70. data/ext/commonmarker/cmark/build/src/CMakeFiles/CMakeDirectoryInformation.cmake +16 -0
  71. data/ext/commonmarker/cmark/build/src/CMakeFiles/cmark.dir/C.includecache +422 -0
  72. data/ext/commonmarker/cmark/build/src/CMakeFiles/cmark.dir/DependInfo.cmake +39 -0
  73. data/ext/commonmarker/cmark/build/src/CMakeFiles/cmark.dir/blocks.c.o +0 -0
  74. data/ext/commonmarker/cmark/build/src/CMakeFiles/cmark.dir/buffer.c.o +0 -0
  75. data/ext/commonmarker/cmark/build/src/CMakeFiles/cmark.dir/build.make +544 -0
  76. data/ext/commonmarker/cmark/build/src/CMakeFiles/cmark.dir/cmake_clean.cmake +27 -0
  77. data/ext/commonmarker/cmark/build/src/CMakeFiles/cmark.dir/cmark.c.o +0 -0
  78. data/ext/commonmarker/cmark/build/src/CMakeFiles/cmark.dir/cmark_ctype.c.o +0 -0
  79. data/ext/commonmarker/cmark/build/src/CMakeFiles/cmark.dir/commonmark.c.o +0 -0
  80. data/ext/commonmarker/cmark/build/src/CMakeFiles/cmark.dir/depend.internal +177 -0
  81. data/ext/commonmarker/cmark/build/src/CMakeFiles/cmark.dir/depend.make +177 -0
  82. data/ext/commonmarker/cmark/build/src/CMakeFiles/cmark.dir/flags.make +8 -0
  83. data/ext/commonmarker/cmark/build/src/CMakeFiles/cmark.dir/houdini_href_e.c.o +0 -0
  84. data/ext/commonmarker/cmark/build/src/CMakeFiles/cmark.dir/houdini_html_e.c.o +0 -0
  85. data/ext/commonmarker/cmark/build/src/CMakeFiles/cmark.dir/houdini_html_u.c.o +0 -0
  86. data/ext/commonmarker/cmark/build/src/CMakeFiles/cmark.dir/html.c.o +0 -0
  87. data/ext/commonmarker/cmark/build/src/CMakeFiles/cmark.dir/inlines.c.o +0 -0
  88. data/ext/commonmarker/cmark/build/src/CMakeFiles/cmark.dir/iterator.c.o +0 -0
  89. data/ext/commonmarker/cmark/build/src/CMakeFiles/cmark.dir/link.txt +1 -0
  90. data/ext/commonmarker/cmark/build/src/CMakeFiles/cmark.dir/main.c.o +0 -0
  91. data/ext/commonmarker/cmark/build/src/CMakeFiles/cmark.dir/man.c.o +0 -0
  92. data/ext/commonmarker/cmark/build/src/CMakeFiles/cmark.dir/node.c.o +0 -0
  93. data/ext/commonmarker/cmark/build/src/CMakeFiles/cmark.dir/progress.make +19 -0
  94. data/ext/commonmarker/cmark/build/src/CMakeFiles/cmark.dir/references.c.o +0 -0
  95. data/ext/commonmarker/cmark/build/src/CMakeFiles/cmark.dir/scanners.c.o +0 -0
  96. data/ext/commonmarker/cmark/build/src/CMakeFiles/cmark.dir/utf8.c.o +0 -0
  97. data/ext/commonmarker/cmark/build/src/CMakeFiles/cmark.dir/xml.c.o +0 -0
  98. data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark.dir/C.includecache +394 -0
  99. data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark.dir/DependInfo.cmake +44 -0
  100. data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark.dir/blocks.c.o +0 -0
  101. data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark.dir/buffer.c.o +0 -0
  102. data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark.dir/build.make +522 -0
  103. data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark.dir/cmake_clean.cmake +27 -0
  104. data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark.dir/cmark.c.o +0 -0
  105. data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark.dir/cmark_ctype.c.o +0 -0
  106. data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark.dir/commonmark.c.o +0 -0
  107. data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark.dir/depend.internal +169 -0
  108. data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark.dir/depend.make +169 -0
  109. data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark.dir/flags.make +8 -0
  110. data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark.dir/houdini_href_e.c.o +0 -0
  111. data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark.dir/houdini_html_e.c.o +0 -0
  112. data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark.dir/houdini_html_u.c.o +0 -0
  113. data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark.dir/html.c.o +0 -0
  114. data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark.dir/inlines.c.o +0 -0
  115. data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark.dir/iterator.c.o +0 -0
  116. data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark.dir/link.txt +1 -0
  117. data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark.dir/man.c.o +0 -0
  118. data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark.dir/node.c.o +0 -0
  119. data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark.dir/progress.make +18 -0
  120. data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark.dir/references.c.o +0 -0
  121. data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark.dir/scanners.c.o +0 -0
  122. data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark.dir/utf8.c.o +0 -0
  123. data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark.dir/xml.c.o +0 -0
  124. data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark_static.dir/C.includecache +394 -0
  125. data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark_static.dir/DependInfo.cmake +38 -0
  126. data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark_static.dir/blocks.c.o +0 -0
  127. data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark_static.dir/buffer.c.o +0 -0
  128. data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark_static.dir/build.make +519 -0
  129. data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark_static.dir/cmake_clean.cmake +26 -0
  130. data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark_static.dir/cmake_clean_target.cmake +3 -0
  131. data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark_static.dir/cmark.c.o +0 -0
  132. data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark_static.dir/cmark_ctype.c.o +0 -0
  133. data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark_static.dir/commonmark.c.o +0 -0
  134. data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark_static.dir/depend.internal +169 -0
  135. data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark_static.dir/depend.make +169 -0
  136. data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark_static.dir/flags.make +8 -0
  137. data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark_static.dir/houdini_href_e.c.o +0 -0
  138. data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark_static.dir/houdini_html_e.c.o +0 -0
  139. data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark_static.dir/houdini_html_u.c.o +0 -0
  140. data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark_static.dir/html.c.o +0 -0
  141. data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark_static.dir/inlines.c.o +0 -0
  142. data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark_static.dir/iterator.c.o +0 -0
  143. data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark_static.dir/link.txt +2 -0
  144. data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark_static.dir/man.c.o +0 -0
  145. data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark_static.dir/node.c.o +0 -0
  146. data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark_static.dir/progress.make +18 -0
  147. data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark_static.dir/references.c.o +0 -0
  148. data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark_static.dir/scanners.c.o +0 -0
  149. data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark_static.dir/utf8.c.o +0 -0
  150. data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark_static.dir/xml.c.o +0 -0
  151. data/ext/commonmarker/cmark/build/src/CMakeFiles/progress.marks +1 -0
  152. data/ext/commonmarker/cmark/build/src/Makefile +814 -0
  153. data/ext/commonmarker/cmark/build/src/cmake_install.cmake +69 -0
  154. data/ext/commonmarker/cmark/build/src/cmark +0 -0
  155. data/ext/commonmarker/cmark/build/src/cmark_export.h +41 -0
  156. data/ext/commonmarker/cmark/build/src/cmark_version.h +7 -0
  157. data/ext/commonmarker/cmark/build/src/config.h +23 -0
  158. data/ext/commonmarker/cmark/build/src/libcmark.0.19.0.dylib +0 -0
  159. data/ext/commonmarker/cmark/build/src/libcmark.a +0 -0
  160. data/ext/commonmarker/cmark/build/src/libcmark.dylib +0 -0
  161. data/ext/commonmarker/cmark/build/src/libcmark.pc +10 -0
  162. data/ext/commonmarker/cmark/build/testdir/CMakeFiles/CMakeDirectoryInformation.cmake +16 -0
  163. data/ext/commonmarker/cmark/build/testdir/CMakeFiles/progress.marks +1 -0
  164. data/ext/commonmarker/cmark/build/testdir/CTestTestfile.cmake +12 -0
  165. data/ext/commonmarker/cmark/build/testdir/Makefile +181 -0
  166. data/ext/commonmarker/cmark/build/testdir/cmake_install.cmake +29 -0
  167. data/ext/commonmarker/cmark/changelog.txt +153 -0
  168. data/ext/commonmarker/cmark/data/CaseFolding-3.2.0.txt +912 -0
  169. data/ext/commonmarker/cmark/man/CMakeLists.txt +8 -0
  170. data/ext/commonmarker/cmark/man/make_man_page.py +131 -0
  171. data/ext/commonmarker/cmark/man/man1/cmark.1 +54 -0
  172. data/ext/commonmarker/cmark/man/man3/cmark.3 +583 -0
  173. data/ext/commonmarker/cmark/nmake.bat +1 -0
  174. data/ext/commonmarker/cmark/src/CMakeLists.txt +166 -0
  175. data/ext/commonmarker/cmark/src/bench.h +27 -0
  176. data/ext/commonmarker/cmark/src/blocks.c +887 -0
  177. data/ext/commonmarker/cmark/src/buffer.c +381 -0
  178. data/ext/commonmarker/cmark/src/buffer.h +113 -0
  179. data/ext/commonmarker/cmark/src/case_fold_switch.inc +2637 -0
  180. data/ext/commonmarker/cmark/src/chunk.h +110 -0
  181. data/ext/commonmarker/cmark/src/cmark.c +24 -0
  182. data/ext/commonmarker/cmark/src/cmark.h +565 -0
  183. data/ext/commonmarker/cmark/src/cmark_ctype.c +53 -0
  184. data/ext/commonmarker/cmark/src/cmark_ctype.h +24 -0
  185. data/ext/commonmarker/cmark/src/cmark_version.h.in +7 -0
  186. data/ext/commonmarker/cmark/src/commonmark.c +607 -0
  187. data/ext/commonmarker/cmark/src/config.h.in +23 -0
  188. data/ext/commonmarker/cmark/src/debug.h +36 -0
  189. data/ext/commonmarker/cmark/src/houdini.h +52 -0
  190. data/ext/commonmarker/cmark/src/houdini_href_e.c +107 -0
  191. data/ext/commonmarker/cmark/src/houdini_html_e.c +81 -0
  192. data/ext/commonmarker/cmark/src/houdini_html_u.c +116 -0
  193. data/ext/commonmarker/cmark/src/html.c +322 -0
  194. data/ext/commonmarker/cmark/src/html_unescape.gperf +2130 -0
  195. data/ext/commonmarker/cmark/src/html_unescape.h +13375 -0
  196. data/ext/commonmarker/cmark/src/inlines.c +1147 -0
  197. data/ext/commonmarker/cmark/src/inlines.h +19 -0
  198. data/ext/commonmarker/cmark/src/iterator.c +148 -0
  199. data/ext/commonmarker/cmark/src/iterator.h +25 -0
  200. data/ext/commonmarker/cmark/src/libcmark.pc.in +10 -0
  201. data/ext/commonmarker/cmark/src/main.c +191 -0
  202. data/ext/commonmarker/cmark/src/man.c +287 -0
  203. data/ext/commonmarker/cmark/src/node.c +873 -0
  204. data/ext/commonmarker/cmark/src/node.h +82 -0
  205. data/ext/commonmarker/cmark/src/parser.h +29 -0
  206. data/ext/commonmarker/cmark/src/references.c +154 -0
  207. data/ext/commonmarker/cmark/src/references.h +37 -0
  208. data/ext/commonmarker/cmark/src/scanners.c +15291 -0
  209. data/ext/commonmarker/cmark/src/scanners.h +41 -0
  210. data/ext/commonmarker/cmark/src/scanners.re +247 -0
  211. data/ext/commonmarker/cmark/src/utf8.c +452 -0
  212. data/ext/commonmarker/cmark/src/utf8.h +22 -0
  213. data/ext/commonmarker/cmark/src/xml.c +170 -0
  214. data/ext/commonmarker/cmark/test/CMakeLists.txt +53 -0
  215. data/ext/commonmarker/cmark/test/afl_dictionary/asterisk +1 -0
  216. data/ext/commonmarker/cmark/test/afl_dictionary/attr_generic +1 -0
  217. data/ext/commonmarker/cmark/test/afl_dictionary/attr_href +1 -0
  218. data/ext/commonmarker/cmark/test/afl_dictionary/attr_xml_lang +1 -0
  219. data/ext/commonmarker/cmark/test/afl_dictionary/attr_xmlns +1 -0
  220. data/ext/commonmarker/cmark/test/afl_dictionary/backslash +1 -0
  221. data/ext/commonmarker/cmark/test/afl_dictionary/backtick +1 -0
  222. data/ext/commonmarker/cmark/test/afl_dictionary/colon +1 -0
  223. data/ext/commonmarker/cmark/test/afl_dictionary/dashes +1 -0
  224. data/ext/commonmarker/cmark/test/afl_dictionary/double_quote +1 -0
  225. data/ext/commonmarker/cmark/test/afl_dictionary/entity_builtin +1 -0
  226. data/ext/commonmarker/cmark/test/afl_dictionary/entity_decimal +1 -0
  227. data/ext/commonmarker/cmark/test/afl_dictionary/entity_external +1 -0
  228. data/ext/commonmarker/cmark/test/afl_dictionary/entity_hex +1 -0
  229. data/ext/commonmarker/cmark/test/afl_dictionary/equals +1 -0
  230. data/ext/commonmarker/cmark/test/afl_dictionary/exclamation +1 -0
  231. data/ext/commonmarker/cmark/test/afl_dictionary/greater_than +1 -0
  232. data/ext/commonmarker/cmark/test/afl_dictionary/hash +1 -0
  233. data/ext/commonmarker/cmark/test/afl_dictionary/hyphen +0 -0
  234. data/ext/commonmarker/cmark/test/afl_dictionary/indent +1 -0
  235. data/ext/commonmarker/cmark/test/afl_dictionary/left_bracket +1 -0
  236. data/ext/commonmarker/cmark/test/afl_dictionary/left_paren +1 -0
  237. data/ext/commonmarker/cmark/test/afl_dictionary/less_than +1 -0
  238. data/ext/commonmarker/cmark/test/afl_dictionary/plus +1 -0
  239. data/ext/commonmarker/cmark/test/afl_dictionary/right_bracket +1 -0
  240. data/ext/commonmarker/cmark/test/afl_dictionary/right_paren +1 -0
  241. data/ext/commonmarker/cmark/test/afl_dictionary/single_quote +1 -0
  242. data/ext/commonmarker/cmark/test/afl_dictionary/string_any +1 -0
  243. data/ext/commonmarker/cmark/test/afl_dictionary/string_brackets +1 -0
  244. data/ext/commonmarker/cmark/test/afl_dictionary/string_cdata +1 -0
  245. data/ext/commonmarker/cmark/test/afl_dictionary/string_dashes +1 -0
  246. data/ext/commonmarker/cmark/test/afl_dictionary/string_empty_dblquotes +1 -0
  247. data/ext/commonmarker/cmark/test/afl_dictionary/string_empty_quotes +1 -0
  248. data/ext/commonmarker/cmark/test/afl_dictionary/string_idrefs +1 -0
  249. data/ext/commonmarker/cmark/test/afl_dictionary/string_parentheses +1 -0
  250. data/ext/commonmarker/cmark/test/afl_dictionary/string_pcdata +1 -0
  251. data/ext/commonmarker/cmark/test/afl_dictionary/tag_cdata +1 -0
  252. data/ext/commonmarker/cmark/test/afl_dictionary/tag_close +1 -0
  253. data/ext/commonmarker/cmark/test/afl_dictionary/tag_doctype +1 -0
  254. data/ext/commonmarker/cmark/test/afl_dictionary/tag_element +1 -0
  255. data/ext/commonmarker/cmark/test/afl_dictionary/tag_entity +1 -0
  256. data/ext/commonmarker/cmark/test/afl_dictionary/tag_notation +1 -0
  257. data/ext/commonmarker/cmark/test/afl_dictionary/tag_open +1 -0
  258. data/ext/commonmarker/cmark/test/afl_dictionary/tag_open_close +1 -0
  259. data/ext/commonmarker/cmark/test/afl_dictionary/tag_open_exclamation +1 -0
  260. data/ext/commonmarker/cmark/test/afl_dictionary/tag_open_q +1 -0
  261. data/ext/commonmarker/cmark/test/afl_dictionary/tag_sq2_close +1 -0
  262. data/ext/commonmarker/cmark/test/afl_dictionary/tag_xml_q +1 -0
  263. data/ext/commonmarker/cmark/test/afl_dictionary/underscore +1 -0
  264. data/ext/commonmarker/cmark/test/afl_test_cases/test.md +36 -0
  265. data/ext/commonmarker/cmark/test/cmark.py +40 -0
  266. data/ext/commonmarker/cmark/test/normalize.py +179 -0
  267. data/ext/commonmarker/cmark/test/pathological_tests.py +63 -0
  268. data/ext/commonmarker/cmark/test/roundtrip.sh +2 -0
  269. data/ext/commonmarker/cmark/test/smart_punct.txt +96 -0
  270. data/ext/commonmarker/cmark/test/spec.txt +7505 -0
  271. data/ext/commonmarker/cmark/test/spec_tests.py +139 -0
  272. data/ext/commonmarker/cmark/toolchain-mingw32.cmake +17 -0
  273. data/ext/commonmarker/cmark/tools/mkcasefold.pl +22 -0
  274. data/ext/commonmarker/cmark/wrappers/wrapper.lua +239 -0
  275. data/ext/commonmarker/cmark/wrappers/wrapper.py +37 -0
  276. data/ext/commonmarker/cmark/wrappers/wrapper.rb +15 -0
  277. data/ext/commonmarker/cmark/wrappers/wrapper.rkt +190 -0
  278. data/ext/commonmarker/commonmarker.c +165 -0
  279. data/ext/commonmarker/commonmarker.h +11 -0
  280. data/ext/commonmarker/extconf.rb +18 -0
  281. data/lib/commonmarker/config.rb +20 -0
  282. data/lib/commonmarker/version.rb +3 -0
  283. data/lib/commonmarker.rb +588 -0
  284. data/test/benchmark.rb +30 -0
  285. data/test/spec_tests.json +4074 -0
  286. data/test/test_basics.rb +44 -0
  287. data/test/test_helper.rb +5 -0
  288. data/test/test_maliciousness.rb +9 -0
  289. data/test/test_pathological_inputs.rb +52 -0
  290. data/test/test_spec.rb +20 -0
  291. metadata +399 -0
@@ -0,0 +1,583 @@
1
+ .TH cmark 3 "March 21, 2015" "LOCAL" "Library Functions Manual"
2
+ .SH
3
+ NAME
4
+ .PP
5
+ \f[B]cmark\f[] \- CommonMark parsing, manipulating, and rendering
6
+
7
+ .SH
8
+ DESCRIPTION
9
+ .SS
10
+ Simple Interface
11
+
12
+ .PP
13
+ \fIchar *\f[] \fBcmark_markdown_to_html\f[](\fIconst char *text\f[], \fIint len\f[], \fIint options\f[])
14
+
15
+ .PP
16
+ Convert \f[I]text\f[] (assumed to be a UTF\-8 encoded string with length
17
+ \f[I]len\f[] from CommonMark Markdown to HTML, returning a null\-terminated,
18
+ UTF\-8\-encoded string.
19
+
20
+ .SS
21
+ Node Structure
22
+
23
+ .SS
24
+ Creating and Destroying Nodes
25
+
26
+ .PP
27
+ \fIcmark_node*\f[] \fBcmark_node_new\f[](\fIcmark_node_type type\f[])
28
+
29
+ .PP
30
+ Creates a new node of type \f[I]type\f[]\&. Note that the node may have
31
+ other required properties, which it is the caller's responsibility
32
+ to assign.
33
+
34
+ .PP
35
+ \fIvoid\f[] \fBcmark_node_free\f[](\fIcmark_node *node\f[])
36
+
37
+ .PP
38
+ Frees the memory allocated for a node.
39
+
40
+ .SS
41
+ Tree Traversal
42
+
43
+ .PP
44
+ \fIcmark_node*\f[] \fBcmark_node_next\f[](\fIcmark_node *node\f[])
45
+
46
+ .PP
47
+ Returns the next node in the sequence after \f[I]node\f[], or NULL if
48
+ there is none.
49
+
50
+ .PP
51
+ \fIcmark_node*\f[] \fBcmark_node_previous\f[](\fIcmark_node *node\f[])
52
+
53
+ .PP
54
+ Returns the previous node in the sequence after \f[I]node\f[], or NULL if
55
+ there is none.
56
+
57
+ .PP
58
+ \fIcmark_node*\f[] \fBcmark_node_parent\f[](\fIcmark_node *node\f[])
59
+
60
+ .PP
61
+ Returns the parent of \f[I]node\f[], or NULL if there is none.
62
+
63
+ .PP
64
+ \fIcmark_node*\f[] \fBcmark_node_first_child\f[](\fIcmark_node *node\f[])
65
+
66
+ .PP
67
+ Returns the first child of \f[I]node\f[], or NULL if \f[I]node\f[] has no children.
68
+
69
+ .PP
70
+ \fIcmark_node*\f[] \fBcmark_node_last_child\f[](\fIcmark_node *node\f[])
71
+
72
+ .PP
73
+ Returns the last child of \f[I]node\f[], or NULL if \f[I]node\f[] has no children.
74
+
75
+ .SS
76
+ Iterator
77
+ .PP
78
+ An iterator will walk through a tree of nodes, starting from a root
79
+ node, returning one node at a time, together with information about
80
+ whether the node is being entered or exited. The iterator will
81
+ first descend to a child node, if there is one. When there is no
82
+ child, the iterator will go to the next sibling. When there is no
83
+ next sibling, the iterator will return to the parent (but with
84
+ a \f[I]cmark_event_type\f[] of \f[C]CMARK_EVENT_EXIT\f[]). The iterator will
85
+ return \f[C]CMARK_EVENT_DONE\f[] when it reaches the root node again.
86
+ One natural application is an HTML renderer, where an \f[C]ENTER\f[] event
87
+ outputs an open tag and an \f[C]EXIT\f[] event outputs a close tag.
88
+ An iterator might also be used to transform an AST in some systematic
89
+ way, for example, turning all level\-3 headers into regular paragraphs.
90
+ .IP
91
+ .nf
92
+ \f[C]
93
+ void
94
+ usage_example(cmark_node *root) {
95
+ cmark_event_type ev_type;
96
+ cmark_iter *iter = cmark_iter_new(root);
97
+
98
+ while ((ev_type = cmark_iter_next(iter)) != CMARK_EVENT_DONE) {
99
+ cmark_node *cur = cmark_iter_get_node(iter);
100
+ // Do something with `cur` and `ev_type`
101
+ }
102
+
103
+ cmark_iter_free(iter);
104
+ }
105
+ \f[]
106
+ .fi
107
+ .PP
108
+ Iterators will never return \f[C]EXIT\f[] events for leaf nodes, which are nodes
109
+ of type:
110
+ .IP \[bu] 2
111
+ CMARK_NODE_HTML
112
+ .IP \[bu] 2
113
+ CMARK_NODE_HRULE
114
+ .IP \[bu] 2
115
+ CMARK_NODE_CODE_BLOCK
116
+ .IP \[bu] 2
117
+ CMARK_NODE_TEXT
118
+ .IP \[bu] 2
119
+ CMARK_NODE_SOFTBREAK
120
+ .IP \[bu] 2
121
+ CMARK_NODE_LINEBREAK
122
+ .IP \[bu] 2
123
+ CMARK_NODE_CODE
124
+ .IP \[bu] 2
125
+ CMARK_NODE_INLINE_HTML
126
+ .PP
127
+ Nodes must only be modified after an \f[C]EXIT\f[] event, or an \f[C]ENTER\f[] event for
128
+ leaf nodes.
129
+
130
+ .PP
131
+ \fIcmark_iter*\f[] \fBcmark_iter_new\f[](\fIcmark_node *root\f[])
132
+
133
+ .PP
134
+ Creates a new iterator starting at \f[I]root\f[]\&. The current node and event
135
+ type are undefined until \f[C]cmark_iter_next\f[] is called for the first time.
136
+
137
+ .PP
138
+ \fIvoid\f[] \fBcmark_iter_free\f[](\fIcmark_iter *iter\f[])
139
+
140
+ .PP
141
+ Frees the memory allocated for an iterator.
142
+
143
+ .PP
144
+ \fIcmark_event_type\f[] \fBcmark_iter_next\f[](\fIcmark_iter *iter\f[])
145
+
146
+ .PP
147
+ Advances to the next node and returns the event type (\f[C]CMARK_EVENT_ENTER\f[],
148
+ \f[C]CMARK_EVENT_EXIT\f[] or \f[C]CMARK_EVENT_DONE\f[]).
149
+
150
+ .PP
151
+ \fIcmark_node*\f[] \fBcmark_iter_get_node\f[](\fIcmark_iter *iter\f[])
152
+
153
+ .PP
154
+ Returns the current node.
155
+
156
+ .PP
157
+ \fIcmark_event_type\f[] \fBcmark_iter_get_event_type\f[](\fIcmark_iter *iter\f[])
158
+
159
+ .PP
160
+ Returns the current event type.
161
+
162
+ .PP
163
+ \fIcmark_node*\f[] \fBcmark_iter_get_root\f[](\fIcmark_iter *iter\f[])
164
+
165
+ .PP
166
+ Returns the root node.
167
+
168
+ .PP
169
+ \fIvoid\f[] \fBcmark_iter_reset\f[](\fIcmark_iter *iter\f[], \fIcmark_node *current\f[], \fIcmark_event_type event_type\f[])
170
+
171
+ .PP
172
+ Resets the iterator so that the current node is \f[I]current\f[] and
173
+ the event type is \f[I]event_type\f[]\&. The new current node must be a
174
+ descendant of the root node or the root node itself.
175
+
176
+ .SS
177
+ Accessors
178
+
179
+ .PP
180
+ \fIvoid*\f[] \fBcmark_node_get_user_data\f[](\fIcmark_node *node\f[])
181
+
182
+ .PP
183
+ Returns the user data of \f[I]node\f[]\&.
184
+
185
+ .PP
186
+ \fIint\f[] \fBcmark_node_set_user_data\f[](\fIcmark_node *node\f[], \fIvoid *user_data\f[])
187
+
188
+ .PP
189
+ Sets arbitrary user data for \f[I]node\f[]\&. Returns 1 on success,
190
+ 0 on failure.
191
+
192
+ .PP
193
+ \fIcmark_node_type\f[] \fBcmark_node_get_type\f[](\fIcmark_node *node\f[])
194
+
195
+ .PP
196
+ Returns the type of \f[I]node\f[], or \f[C]CMARK_NODE_NONE\f[] on error.
197
+
198
+ .PP
199
+ \fIconst char*\f[] \fBcmark_node_get_type_string\f[](\fIcmark_node *node\f[])
200
+
201
+ .PP
202
+ Like \f[I]cmark_node_get_type\f[], but returns a string representation
203
+ of the type, or \f[C]"<unknown>"\f[]\&.
204
+
205
+ .PP
206
+ \fIconst char*\f[] \fBcmark_node_get_literal\f[](\fIcmark_node *node\f[])
207
+
208
+ .PP
209
+ Returns the string contents of \f[I]node\f[], or NULL if none.
210
+
211
+ .PP
212
+ \fIint\f[] \fBcmark_node_set_literal\f[](\fIcmark_node *node\f[], \fIconst char *content\f[])
213
+
214
+ .PP
215
+ Sets the string contents of \f[I]node\f[]\&. Returns 1 on success,
216
+ 0 on failure.
217
+
218
+ .PP
219
+ \fIint\f[] \fBcmark_node_get_header_level\f[](\fIcmark_node *node\f[])
220
+
221
+ .PP
222
+ Returns the header level of \f[I]node\f[], or 0 if \f[I]node\f[] is not a header.
223
+
224
+ .PP
225
+ \fIint\f[] \fBcmark_node_set_header_level\f[](\fIcmark_node *node\f[], \fIint level\f[])
226
+
227
+ .PP
228
+ Sets the header level of \f[I]node\f[], returning 1 on success and 0 on error.
229
+
230
+ .PP
231
+ \fIcmark_list_type\f[] \fBcmark_node_get_list_type\f[](\fIcmark_node *node\f[])
232
+
233
+ .PP
234
+ Returns the list type of \f[I]node\f[], or \f[C]CMARK_NO_LIST\f[] if \f[I]node\f[]
235
+ is not a list.
236
+
237
+ .PP
238
+ \fIint\f[] \fBcmark_node_set_list_type\f[](\fIcmark_node *node\f[], \fIcmark_list_type type\f[])
239
+
240
+ .PP
241
+ Sets the list type of \f[I]node\f[], returning 1 on success and 0 on error.
242
+
243
+ .PP
244
+ \fIcmark_delim_type\f[] \fBcmark_node_get_list_delim\f[](\fIcmark_node *node\f[])
245
+
246
+ .PP
247
+ Returns the list delimiter type of \f[I]node\f[], or \f[C]CMARK_NO_DELIM\f[] if \f[I]node\f[]
248
+ is not a list.
249
+
250
+ .PP
251
+ \fIint\f[] \fBcmark_node_set_list_delim\f[](\fIcmark_node *node\f[], \fIcmark_delim_type delim\f[])
252
+
253
+ .PP
254
+ Sets the list delimiter type of \f[I]node\f[], returning 1 on success and 0
255
+ on error.
256
+
257
+ .PP
258
+ \fIint\f[] \fBcmark_node_get_list_start\f[](\fIcmark_node *node\f[])
259
+
260
+ .PP
261
+ Returns starting number of \f[I]node\f[], if it is an ordered list, otherwise 0.
262
+
263
+ .PP
264
+ \fIint\f[] \fBcmark_node_set_list_start\f[](\fIcmark_node *node\f[], \fIint start\f[])
265
+
266
+ .PP
267
+ Sets starting number of \f[I]node\f[], if it is an ordered list. Returns 1
268
+ on success, 0 on failure.
269
+
270
+ .PP
271
+ \fIint\f[] \fBcmark_node_get_list_tight\f[](\fIcmark_node *node\f[])
272
+
273
+ .PP
274
+ Returns 1 if \f[I]node\f[] is a tight list, 0 otherwise.
275
+
276
+ .PP
277
+ \fIint\f[] \fBcmark_node_set_list_tight\f[](\fIcmark_node *node\f[], \fIint tight\f[])
278
+
279
+ .PP
280
+ Sets the "tightness" of a list. Returns 1 on success, 0 on failure.
281
+
282
+ .PP
283
+ \fIconst char*\f[] \fBcmark_node_get_fence_info\f[](\fIcmark_node *node\f[])
284
+
285
+ .PP
286
+ Returns the info string from a fenced code block, or NULL if none.
287
+
288
+ .PP
289
+ \fIint\f[] \fBcmark_node_set_fence_info\f[](\fIcmark_node *node\f[], \fIconst char *info\f[])
290
+
291
+ .PP
292
+ Sets the info string in a fenced code block, returning 1 on
293
+ success and 0 on failure.
294
+
295
+ .PP
296
+ \fIconst char*\f[] \fBcmark_node_get_url\f[](\fIcmark_node *node\f[])
297
+
298
+ .PP
299
+ Gets the URL of a link or image \f[I]node\f[], or NULL if none.
300
+
301
+ .PP
302
+ \fIint\f[] \fBcmark_node_set_url\f[](\fIcmark_node *node\f[], \fIconst char *url\f[])
303
+
304
+ .PP
305
+ Sets the URL of a link or image \f[I]node\f[]\&. Returns 1 on success,
306
+ 0 on failure.
307
+
308
+ .PP
309
+ \fIconst char*\f[] \fBcmark_node_get_title\f[](\fIcmark_node *node\f[])
310
+
311
+ .PP
312
+ Gets the title of a link or image \f[I]node\f[], or NULL if none.
313
+
314
+ .PP
315
+ \fIint\f[] \fBcmark_node_set_title\f[](\fIcmark_node *node\f[], \fIconst char *title\f[])
316
+
317
+ .PP
318
+ Sets the title of a link or image \f[I]node\f[]\&. Returns 1 on success,
319
+ 0 on failure.
320
+
321
+ .PP
322
+ \fIint\f[] \fBcmark_node_get_start_line\f[](\fIcmark_node *node\f[])
323
+
324
+ .PP
325
+ Returns the line on which \f[I]node\f[] begins.
326
+
327
+ .PP
328
+ \fIint\f[] \fBcmark_node_get_start_column\f[](\fIcmark_node *node\f[])
329
+
330
+ .PP
331
+ Returns the column at which \f[I]node\f[] begins.
332
+
333
+ .PP
334
+ \fIint\f[] \fBcmark_node_get_end_line\f[](\fIcmark_node *node\f[])
335
+
336
+ .PP
337
+ Returns the line on which \f[I]node\f[] ends.
338
+
339
+ .PP
340
+ \fIint\f[] \fBcmark_node_get_end_column\f[](\fIcmark_node *node\f[])
341
+
342
+ .PP
343
+ Returns the column at which \f[I]node\f[] ends.
344
+
345
+ .SS
346
+ Tree Manipulation
347
+
348
+ .PP
349
+ \fIvoid\f[] \fBcmark_node_unlink\f[](\fIcmark_node *node\f[])
350
+
351
+ .PP
352
+ Unlinks a \f[I]node\f[], removing it from the tree, but not freeing its
353
+ memory. (Use \f[I]cmark_node_free\f[] for that.)
354
+
355
+ .PP
356
+ \fIint\f[] \fBcmark_node_insert_before\f[](\fIcmark_node *node\f[], \fIcmark_node *sibling\f[])
357
+
358
+ .PP
359
+ Inserts \f[I]sibling\f[] before \f[I]node\f[]\&. Returns 1 on success, 0 on failure.
360
+
361
+ .PP
362
+ \fIint\f[] \fBcmark_node_insert_after\f[](\fIcmark_node *node\f[], \fIcmark_node *sibling\f[])
363
+
364
+ .PP
365
+ Inserts \f[I]sibling\f[] after \f[I]node\f[]\&. Returns 1 on success, 0 on failure.
366
+
367
+ .PP
368
+ \fIint\f[] \fBcmark_node_prepend_child\f[](\fIcmark_node *node\f[], \fIcmark_node *child\f[])
369
+
370
+ .PP
371
+ Adds \f[I]child\f[] to the beginning of the children of \f[I]node\f[]\&.
372
+ Returns 1 on success, 0 on failure.
373
+
374
+ .PP
375
+ \fIint\f[] \fBcmark_node_append_child\f[](\fIcmark_node *node\f[], \fIcmark_node *child\f[])
376
+
377
+ .PP
378
+ Adds \f[I]child\f[] to the end of the children of \f[I]node\f[]\&.
379
+ Returns 1 on success, 0 on failure.
380
+
381
+ .PP
382
+ \fIvoid\f[] \fBcmark_consolidate_text_nodes\f[](\fIcmark_node *root\f[])
383
+
384
+ .PP
385
+ Consolidates adjacent text nodes.
386
+
387
+ .SS
388
+ Parsing
389
+ .PP
390
+ Simple interface:
391
+ .IP
392
+ .nf
393
+ \f[C]
394
+ cmark_node *document = cmark_parse_document("Hello *world*", 12,
395
+ CMARK_OPT_DEFAULT);
396
+ \f[]
397
+ .fi
398
+ .PP
399
+ Streaming interface:
400
+ .IP
401
+ .nf
402
+ \f[C]
403
+ cmark_parser *parser = cmark_parser_new(CMARK_OPT_DEFAULT);
404
+ FILE *fp = fopen("myfile.md", "r");
405
+ while ((bytes = fread(buffer, 1, sizeof(buffer), fp)) > 0) {
406
+ cmark_parser_feed(parser, buffer, bytes);
407
+ if (bytes < sizeof(buffer)) {
408
+ break;
409
+ }
410
+ }
411
+ document = cmark_parser_finish(parser);
412
+ cmark_parser_free(parser);
413
+ \f[]
414
+ .fi
415
+
416
+ .PP
417
+ \fIcmark_parser *\f[] \fBcmark_parser_new\f[](\fIint options\f[])
418
+
419
+ .PP
420
+ Creates a new parser object.
421
+
422
+ .PP
423
+ \fIvoid\f[] \fBcmark_parser_free\f[](\fIcmark_parser *parser\f[])
424
+
425
+ .PP
426
+ Frees memory allocated for a parser object.
427
+
428
+ .PP
429
+ \fIvoid\f[] \fBcmark_parser_feed\f[](\fIcmark_parser *parser\f[], \fIconst char *buffer\f[], \fIsize_t len\f[])
430
+
431
+ .PP
432
+ Feeds a string of length \f[I]len\f[] to \f[I]parser\f[]\&.
433
+
434
+ .PP
435
+ \fIcmark_node *\f[] \fBcmark_parser_finish\f[](\fIcmark_parser *parser\f[])
436
+
437
+ .PP
438
+ Finish parsing and return a pointer to a tree of nodes.
439
+
440
+ .PP
441
+ \fIcmark_node *\f[] \fBcmark_parse_document\f[](\fIconst char *buffer\f[], \fIsize_t len\f[], \fIint options\f[])
442
+
443
+ .PP
444
+ Parse a CommonMark document in \f[I]buffer\f[] of length \f[I]len\f[]\&.
445
+ Returns a pointer to a tree of nodes.
446
+
447
+ .PP
448
+ \fIcmark_node *\f[] \fBcmark_parse_file\f[](\fIFILE *f\f[], \fIint options\f[])
449
+
450
+ .PP
451
+ Parse a CommonMark document in file \f[I]f\f[], returning a pointer to
452
+ a tree of nodes.
453
+
454
+ .SS
455
+ Rendering
456
+
457
+ .PP
458
+ \fIchar *\f[] \fBcmark_render_xml\f[](\fIcmark_node *root\f[], \fIint options\f[])
459
+
460
+ .PP
461
+ Render a \f[I]node\f[] tree as XML.
462
+
463
+ .PP
464
+ \fIchar *\f[] \fBcmark_render_html\f[](\fIcmark_node *root\f[], \fIint options\f[])
465
+
466
+ .PP
467
+ Render a \f[I]node\f[] tree as an HTML fragment. It is up to the user
468
+ to add an appropriate header and footer.
469
+
470
+ .PP
471
+ \fIchar *\f[] \fBcmark_render_man\f[](\fIcmark_node *root\f[], \fIint options\f[])
472
+
473
+ .PP
474
+ Render a \f[I]node\f[] tree as a groff man page, without the header.
475
+
476
+ .PP
477
+ \fIchar *\f[] \fBcmark_render_commonmark\f[](\fIcmark_node *root\f[], \fIint options\f[], \fIint width\f[])
478
+
479
+ .PP
480
+ Render a \f[I]node\f[] tree as a commonmark document.
481
+
482
+ .PP
483
+ .nf
484
+ \fC
485
+ .RS 0n
486
+ #define CMARK_OPT_DEFAULT 0
487
+ .RE
488
+ \f[]
489
+ .fi
490
+
491
+ .PP
492
+ Default writer options.
493
+
494
+ .PP
495
+ .nf
496
+ \fC
497
+ .RS 0n
498
+ #define CMARK_OPT_SOURCEPOS 1
499
+ .RE
500
+ \f[]
501
+ .fi
502
+
503
+ .PP
504
+ Include a \f[C]data\-sourcepos\f[] attribute on all block elements.
505
+
506
+ .PP
507
+ .nf
508
+ \fC
509
+ .RS 0n
510
+ #define CMARK_OPT_HARDBREAKS 2
511
+ .RE
512
+ \f[]
513
+ .fi
514
+
515
+ .PP
516
+ Render \f[C]softbreak\f[] elements as hard line breaks.
517
+
518
+ .PP
519
+ .nf
520
+ \fC
521
+ .RS 0n
522
+ #define CMARK_OPT_NORMALIZE 4
523
+ .RE
524
+ \f[]
525
+ .fi
526
+
527
+ .PP
528
+ Normalize tree by consolidating adjacent text nodes.
529
+
530
+ .PP
531
+ .nf
532
+ \fC
533
+ .RS 0n
534
+ #define CMARK_OPT_SMART 8
535
+ .RE
536
+ \f[]
537
+ .fi
538
+
539
+ .PP
540
+ Convert straight quotes to curly, \-\-\- to em dashes, \-\- to en dashes.
541
+
542
+ .SS
543
+ Version information
544
+
545
+ .PP
546
+ .nf
547
+ \fC
548
+ .RS 0n
549
+ extern const int cmark_version;
550
+ .RE
551
+ \f[]
552
+ .fi
553
+
554
+ .PP
555
+ The library version as integer for runtime checks. Also available as
556
+ macro CMARK_VERSION for compile time checks.
557
+ .IP \[bu] 2
558
+ Bits 16\-23 contain the major version.
559
+ .IP \[bu] 2
560
+ Bits 8\-15 contain the minor version.
561
+ .IP \[bu] 2
562
+ Bits 0\-7 contain the patchlevel.
563
+ .PP
564
+ In hexadecimal format, the number 0x010203 represents version 1.2.3.
565
+
566
+ .PP
567
+ .nf
568
+ \fC
569
+ .RS 0n
570
+ extern const char cmark_version_string[];
571
+ .RE
572
+ \f[]
573
+ .fi
574
+
575
+ .PP
576
+ The library version string for runtime checks. Also available as
577
+ macro CMARK_VERSION_STRING for compile time checks.
578
+
579
+ .SH
580
+ AUTHORS
581
+ .PP
582
+ John MacFarlane, Vicent Marti, Kārlis Gaņģis, Nick Wellnhofer.
583
+
@@ -0,0 +1 @@
1
+ @nmake.exe /nologo /f Makefile.nmake %*