multimark 0.3.2__tar.gz → 0.4.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (208) hide show
  1. {multimark-0.3.2 → multimark-0.4.0}/.github/workflows/ci.yml +35 -4
  2. {multimark-0.3.2 → multimark-0.4.0}/.github/workflows/pyodide.yml +1 -1
  3. {multimark-0.3.2 → multimark-0.4.0}/.github/workflows/test-build.yml +6 -0
  4. {multimark-0.3.2 → multimark-0.4.0}/Makefile +5 -4
  5. {multimark-0.3.2/src/multimark.egg-info → multimark-0.4.0}/PKG-INFO +1 -1
  6. {multimark-0.3.2 → multimark-0.4.0}/WHEELS.md +11 -5
  7. {multimark-0.3.2 → multimark-0.4.0}/pyproject.toml +2 -2
  8. {multimark-0.3.2 → multimark-0.4.0}/src/multimark/__init__.py +2 -0
  9. multimark-0.4.0/src/multimark/_batch.py +107 -0
  10. {multimark-0.3.2 → multimark-0.4.0}/src/multimark/_build_cmark.py +27 -0
  11. {multimark-0.3.2 → multimark-0.4.0}/src/multimark/cmark.cffi.h +7 -0
  12. {multimark-0.3.2 → multimark-0.4.0/src/multimark.egg-info}/PKG-INFO +1 -1
  13. {multimark-0.3.2 → multimark-0.4.0}/src/multimark.egg-info/SOURCES.txt +2 -0
  14. {multimark-0.3.2 → multimark-0.4.0}/src/multimark.egg-info/scm_file_list.json +2 -0
  15. multimark-0.4.0/src/multimark.egg-info/scm_version.json +8 -0
  16. multimark-0.4.0/tests/test_batch.py +54 -0
  17. multimark-0.3.2/src/multimark.egg-info/scm_version.json +0 -8
  18. {multimark-0.3.2 → multimark-0.4.0}/.github/CODE_OF_CONDUCT.md +0 -0
  19. {multimark-0.3.2 → multimark-0.4.0}/.github/CONTRIBUTING.md +0 -0
  20. {multimark-0.3.2 → multimark-0.4.0}/.github/ISSUE_TEMPLATE/bug.md +0 -0
  21. {multimark-0.3.2 → multimark-0.4.0}/.github/ISSUE_TEMPLATE/feature.md +0 -0
  22. {multimark-0.3.2 → multimark-0.4.0}/.github/ISSUE_TEMPLATE/question.md +0 -0
  23. {multimark-0.3.2 → multimark-0.4.0}/.github/PULL_REQUEST_TEMPLATE.md +0 -0
  24. {multimark-0.3.2 → multimark-0.4.0}/.github/workflows/docs.yml +0 -0
  25. {multimark-0.3.2 → multimark-0.4.0}/.github/workflows/test-sdist.yml +0 -0
  26. {multimark-0.3.2 → multimark-0.4.0}/.gitignore +0 -0
  27. {multimark-0.3.2 → multimark-0.4.0}/CITATION.cff +0 -0
  28. {multimark-0.3.2 → multimark-0.4.0}/LICENSE +0 -0
  29. {multimark-0.3.2 → multimark-0.4.0}/README.md +0 -0
  30. {multimark-0.3.2 → multimark-0.4.0}/ROADMAP.md +0 -0
  31. {multimark-0.3.2 → multimark-0.4.0}/_freeze/reference/Options/execute-results/html.json +0 -0
  32. {multimark-0.3.2 → multimark-0.4.0}/_freeze/reference/cmark_version/execute-results/html.json +0 -0
  33. {multimark-0.3.2 → multimark-0.4.0}/_freeze/reference/markdown_to_commonmark/execute-results/html.json +0 -0
  34. {multimark-0.3.2 → multimark-0.4.0}/_freeze/reference/markdown_to_html/execute-results/html.json +0 -0
  35. {multimark-0.3.2 → multimark-0.4.0}/_freeze/reference/markdown_to_latex/execute-results/html.json +0 -0
  36. {multimark-0.3.2 → multimark-0.4.0}/_freeze/reference/markdown_to_man/execute-results/html.json +0 -0
  37. {multimark-0.3.2 → multimark-0.4.0}/_freeze/reference/markdown_to_xml/execute-results/html.json +0 -0
  38. {multimark-0.3.2 → multimark-0.4.0}/_freeze/site_libs/clipboard/clipboard.min.js +0 -0
  39. {multimark-0.3.2 → multimark-0.4.0}/_freeze/user-guide/gfm-extensions/execute-results/html.json +0 -0
  40. {multimark-0.3.2 → multimark-0.4.0}/_freeze/user-guide/installation/execute-results/html.json +0 -0
  41. {multimark-0.3.2 → multimark-0.4.0}/_freeze/user-guide/introduction/execute-results/html.json +0 -0
  42. {multimark-0.3.2 → multimark-0.4.0}/_freeze/user-guide/options-and-flags/execute-results/html.json +0 -0
  43. {multimark-0.3.2 → multimark-0.4.0}/_freeze/user-guide/output-formats/execute-results/html.json +0 -0
  44. {multimark-0.3.2 → multimark-0.4.0}/_freeze/user-guide/parsing-and-ast/execute-results/html.json +0 -0
  45. {multimark-0.3.2 → multimark-0.4.0}/_freeze/user-guide/performance/execute-results/html.json +0 -0
  46. {multimark-0.3.2 → multimark-0.4.0}/_freeze/user-guide/quick-start/execute-results/html.json +0 -0
  47. {multimark-0.3.2 → multimark-0.4.0}/_freeze/user-guide/recipes/execute-results/html.json +0 -0
  48. {multimark-0.3.2 → multimark-0.4.0}/_freeze/user-guide/security/execute-results/html.json +0 -0
  49. {multimark-0.3.2 → multimark-0.4.0}/assets/logo-dark.png +0 -0
  50. {multimark-0.3.2 → multimark-0.4.0}/assets/logo-light.png +0 -0
  51. {multimark-0.3.2 → multimark-0.4.0}/assets/logo.png +0 -0
  52. {multimark-0.3.2 → multimark-0.4.0}/great-docs.yml +0 -0
  53. {multimark-0.3.2 → multimark-0.4.0}/index.qmd +0 -0
  54. {multimark-0.3.2 → multimark-0.4.0}/multimark/_binding.c +0 -0
  55. {multimark-0.3.2 → multimark-0.4.0}/multimark/_binding.o +0 -0
  56. {multimark-0.3.2 → multimark-0.4.0}/setup.cfg +0 -0
  57. {multimark-0.3.2 → multimark-0.4.0}/setup.py +0 -0
  58. {multimark-0.3.2 → multimark-0.4.0}/skills/multimark/SKILL.md +0 -0
  59. {multimark-0.3.2 → multimark-0.4.0}/src/multimark/_cli.py +0 -0
  60. {multimark-0.3.2 → multimark-0.4.0}/src/multimark/_cmark.py +0 -0
  61. {multimark-0.3.2 → multimark-0.4.0}/src/multimark/_node.py +0 -0
  62. {multimark-0.3.2 → multimark-0.4.0}/src/multimark/_parser.py +0 -0
  63. {multimark-0.3.2 → multimark-0.4.0}/src/multimark.egg-info/dependency_links.txt +0 -0
  64. {multimark-0.3.2 → multimark-0.4.0}/src/multimark.egg-info/entry_points.txt +0 -0
  65. {multimark-0.3.2 → multimark-0.4.0}/src/multimark.egg-info/requires.txt +0 -0
  66. {multimark-0.3.2 → multimark-0.4.0}/src/multimark.egg-info/top_level.txt +0 -0
  67. {multimark-0.3.2 → multimark-0.4.0}/tests/conftest.py +0 -0
  68. {multimark-0.3.2 → multimark-0.4.0}/tests/fixtures/extensions.txt +0 -0
  69. {multimark-0.3.2 → multimark-0.4.0}/tests/fixtures/regression.txt +0 -0
  70. {multimark-0.3.2 → multimark-0.4.0}/tests/fixtures/smart_punct.txt +0 -0
  71. {multimark-0.3.2 → multimark-0.4.0}/tests/fixtures/spec.txt +0 -0
  72. {multimark-0.3.2 → multimark-0.4.0}/tests/spec_parser.py +0 -0
  73. {multimark-0.3.2 → multimark-0.4.0}/tests/test_ast.py +0 -0
  74. {multimark-0.3.2 → multimark-0.4.0}/tests/test_cli.py +0 -0
  75. {multimark-0.3.2 → multimark-0.4.0}/tests/test_commonmark.py +0 -0
  76. {multimark-0.3.2 → multimark-0.4.0}/tests/test_errors.py +0 -0
  77. {multimark-0.3.2 → multimark-0.4.0}/tests/test_extensions.py +0 -0
  78. {multimark-0.3.2 → multimark-0.4.0}/tests/test_html.py +0 -0
  79. {multimark-0.3.2 → multimark-0.4.0}/tests/test_latex.py +0 -0
  80. {multimark-0.3.2 → multimark-0.4.0}/tests/test_man.py +0 -0
  81. {multimark-0.3.2 → multimark-0.4.0}/tests/test_package.py +0 -0
  82. {multimark-0.3.2 → multimark-0.4.0}/tests/test_param_combos.py +0 -0
  83. {multimark-0.3.2 → multimark-0.4.0}/tests/test_parser.py +0 -0
  84. {multimark-0.3.2 → multimark-0.4.0}/tests/test_pathological.py +0 -0
  85. {multimark-0.3.2 → multimark-0.4.0}/tests/test_regressions.py +0 -0
  86. {multimark-0.3.2 → multimark-0.4.0}/tests/test_spec_html.py +0 -0
  87. {multimark-0.3.2 → multimark-0.4.0}/tests/test_spec_renderers.py +0 -0
  88. {multimark-0.3.2 → multimark-0.4.0}/tests/test_threads.py +0 -0
  89. {multimark-0.3.2 → multimark-0.4.0}/tests/test_xml.py +0 -0
  90. {multimark-0.3.2 → multimark-0.4.0}/third_party/cmark-gfm/extensions/CMakeLists.txt +0 -0
  91. {multimark-0.3.2 → multimark-0.4.0}/third_party/cmark-gfm/extensions/autolink.c +0 -0
  92. {multimark-0.3.2 → multimark-0.4.0}/third_party/cmark-gfm/extensions/autolink.h +0 -0
  93. {multimark-0.3.2 → multimark-0.4.0}/third_party/cmark-gfm/extensions/autolink.o +0 -0
  94. {multimark-0.3.2 → multimark-0.4.0}/third_party/cmark-gfm/extensions/cmark-gfm-core-extensions.h +0 -0
  95. {multimark-0.3.2 → multimark-0.4.0}/third_party/cmark-gfm/extensions/core-extensions.c +0 -0
  96. {multimark-0.3.2 → multimark-0.4.0}/third_party/cmark-gfm/extensions/core-extensions.o +0 -0
  97. {multimark-0.3.2 → multimark-0.4.0}/third_party/cmark-gfm/extensions/ext_scanners.c +0 -0
  98. {multimark-0.3.2 → multimark-0.4.0}/third_party/cmark-gfm/extensions/ext_scanners.h +0 -0
  99. {multimark-0.3.2 → multimark-0.4.0}/third_party/cmark-gfm/extensions/ext_scanners.o +0 -0
  100. {multimark-0.3.2 → multimark-0.4.0}/third_party/cmark-gfm/extensions/ext_scanners.re +0 -0
  101. {multimark-0.3.2 → multimark-0.4.0}/third_party/cmark-gfm/extensions/strikethrough.c +0 -0
  102. {multimark-0.3.2 → multimark-0.4.0}/third_party/cmark-gfm/extensions/strikethrough.h +0 -0
  103. {multimark-0.3.2 → multimark-0.4.0}/third_party/cmark-gfm/extensions/strikethrough.o +0 -0
  104. {multimark-0.3.2 → multimark-0.4.0}/third_party/cmark-gfm/extensions/table.c +0 -0
  105. {multimark-0.3.2 → multimark-0.4.0}/third_party/cmark-gfm/extensions/table.h +0 -0
  106. {multimark-0.3.2 → multimark-0.4.0}/third_party/cmark-gfm/extensions/table.o +0 -0
  107. {multimark-0.3.2 → multimark-0.4.0}/third_party/cmark-gfm/extensions/tagfilter.c +0 -0
  108. {multimark-0.3.2 → multimark-0.4.0}/third_party/cmark-gfm/extensions/tagfilter.h +0 -0
  109. {multimark-0.3.2 → multimark-0.4.0}/third_party/cmark-gfm/extensions/tagfilter.o +0 -0
  110. {multimark-0.3.2 → multimark-0.4.0}/third_party/cmark-gfm/extensions/tasklist.c +0 -0
  111. {multimark-0.3.2 → multimark-0.4.0}/third_party/cmark-gfm/extensions/tasklist.h +0 -0
  112. {multimark-0.3.2 → multimark-0.4.0}/third_party/cmark-gfm/extensions/tasklist.o +0 -0
  113. {multimark-0.3.2 → multimark-0.4.0}/third_party/cmark-gfm/src/CMakeLists.txt +0 -0
  114. {multimark-0.3.2 → multimark-0.4.0}/third_party/cmark-gfm/src/arena.c +0 -0
  115. {multimark-0.3.2 → multimark-0.4.0}/third_party/cmark-gfm/src/arena.o +0 -0
  116. {multimark-0.3.2 → multimark-0.4.0}/third_party/cmark-gfm/src/blocks.c +0 -0
  117. {multimark-0.3.2 → multimark-0.4.0}/third_party/cmark-gfm/src/blocks.o +0 -0
  118. {multimark-0.3.2 → multimark-0.4.0}/third_party/cmark-gfm/src/buffer.c +0 -0
  119. {multimark-0.3.2 → multimark-0.4.0}/third_party/cmark-gfm/src/buffer.h +0 -0
  120. {multimark-0.3.2 → multimark-0.4.0}/third_party/cmark-gfm/src/buffer.o +0 -0
  121. {multimark-0.3.2 → multimark-0.4.0}/third_party/cmark-gfm/src/case_fold_switch.inc +0 -0
  122. {multimark-0.3.2 → multimark-0.4.0}/third_party/cmark-gfm/src/chunk.h +0 -0
  123. {multimark-0.3.2 → multimark-0.4.0}/third_party/cmark-gfm/src/cmark-gfm-extension_api.h +0 -0
  124. {multimark-0.3.2 → multimark-0.4.0}/third_party/cmark-gfm/src/cmark-gfm.h +0 -0
  125. {multimark-0.3.2 → multimark-0.4.0}/third_party/cmark-gfm/src/cmark-gfm_export.h +0 -0
  126. {multimark-0.3.2 → multimark-0.4.0}/third_party/cmark-gfm/src/cmark-gfm_version.h +0 -0
  127. {multimark-0.3.2 → multimark-0.4.0}/third_party/cmark-gfm/src/cmark-gfm_version.h.in +0 -0
  128. {multimark-0.3.2 → multimark-0.4.0}/third_party/cmark-gfm/src/cmark.c +0 -0
  129. {multimark-0.3.2 → multimark-0.4.0}/third_party/cmark-gfm/src/cmark.o +0 -0
  130. {multimark-0.3.2 → multimark-0.4.0}/third_party/cmark-gfm/src/cmark_ctype.c +0 -0
  131. {multimark-0.3.2 → multimark-0.4.0}/third_party/cmark-gfm/src/cmark_ctype.h +0 -0
  132. {multimark-0.3.2 → multimark-0.4.0}/third_party/cmark-gfm/src/cmark_ctype.o +0 -0
  133. {multimark-0.3.2 → multimark-0.4.0}/third_party/cmark-gfm/src/commonmark.c +0 -0
  134. {multimark-0.3.2 → multimark-0.4.0}/third_party/cmark-gfm/src/commonmark.o +0 -0
  135. {multimark-0.3.2 → multimark-0.4.0}/third_party/cmark-gfm/src/config.h +0 -0
  136. {multimark-0.3.2 → multimark-0.4.0}/third_party/cmark-gfm/src/config.h.in +0 -0
  137. {multimark-0.3.2 → multimark-0.4.0}/third_party/cmark-gfm/src/entities.inc +0 -0
  138. {multimark-0.3.2 → multimark-0.4.0}/third_party/cmark-gfm/src/footnotes.c +0 -0
  139. {multimark-0.3.2 → multimark-0.4.0}/third_party/cmark-gfm/src/footnotes.h +0 -0
  140. {multimark-0.3.2 → multimark-0.4.0}/third_party/cmark-gfm/src/footnotes.o +0 -0
  141. {multimark-0.3.2 → multimark-0.4.0}/third_party/cmark-gfm/src/houdini.h +0 -0
  142. {multimark-0.3.2 → multimark-0.4.0}/third_party/cmark-gfm/src/houdini_href_e.c +0 -0
  143. {multimark-0.3.2 → multimark-0.4.0}/third_party/cmark-gfm/src/houdini_href_e.o +0 -0
  144. {multimark-0.3.2 → multimark-0.4.0}/third_party/cmark-gfm/src/houdini_html_e.c +0 -0
  145. {multimark-0.3.2 → multimark-0.4.0}/third_party/cmark-gfm/src/houdini_html_e.o +0 -0
  146. {multimark-0.3.2 → multimark-0.4.0}/third_party/cmark-gfm/src/houdini_html_u.c +0 -0
  147. {multimark-0.3.2 → multimark-0.4.0}/third_party/cmark-gfm/src/houdini_html_u.o +0 -0
  148. {multimark-0.3.2 → multimark-0.4.0}/third_party/cmark-gfm/src/html.c +0 -0
  149. {multimark-0.3.2 → multimark-0.4.0}/third_party/cmark-gfm/src/html.h +0 -0
  150. {multimark-0.3.2 → multimark-0.4.0}/third_party/cmark-gfm/src/html.o +0 -0
  151. {multimark-0.3.2 → multimark-0.4.0}/third_party/cmark-gfm/src/inlines.c +0 -0
  152. {multimark-0.3.2 → multimark-0.4.0}/third_party/cmark-gfm/src/inlines.h +0 -0
  153. {multimark-0.3.2 → multimark-0.4.0}/third_party/cmark-gfm/src/inlines.o +0 -0
  154. {multimark-0.3.2 → multimark-0.4.0}/third_party/cmark-gfm/src/iterator.c +0 -0
  155. {multimark-0.3.2 → multimark-0.4.0}/third_party/cmark-gfm/src/iterator.h +0 -0
  156. {multimark-0.3.2 → multimark-0.4.0}/third_party/cmark-gfm/src/iterator.o +0 -0
  157. {multimark-0.3.2 → multimark-0.4.0}/third_party/cmark-gfm/src/latex.c +0 -0
  158. {multimark-0.3.2 → multimark-0.4.0}/third_party/cmark-gfm/src/latex.o +0 -0
  159. {multimark-0.3.2 → multimark-0.4.0}/third_party/cmark-gfm/src/libcmark-gfm.pc.in +0 -0
  160. {multimark-0.3.2 → multimark-0.4.0}/third_party/cmark-gfm/src/linked_list.c +0 -0
  161. {multimark-0.3.2 → multimark-0.4.0}/third_party/cmark-gfm/src/linked_list.o +0 -0
  162. {multimark-0.3.2 → multimark-0.4.0}/third_party/cmark-gfm/src/main.c +0 -0
  163. {multimark-0.3.2 → multimark-0.4.0}/third_party/cmark-gfm/src/man.c +0 -0
  164. {multimark-0.3.2 → multimark-0.4.0}/third_party/cmark-gfm/src/man.o +0 -0
  165. {multimark-0.3.2 → multimark-0.4.0}/third_party/cmark-gfm/src/map.c +0 -0
  166. {multimark-0.3.2 → multimark-0.4.0}/third_party/cmark-gfm/src/map.h +0 -0
  167. {multimark-0.3.2 → multimark-0.4.0}/third_party/cmark-gfm/src/map.o +0 -0
  168. {multimark-0.3.2 → multimark-0.4.0}/third_party/cmark-gfm/src/node.c +0 -0
  169. {multimark-0.3.2 → multimark-0.4.0}/third_party/cmark-gfm/src/node.h +0 -0
  170. {multimark-0.3.2 → multimark-0.4.0}/third_party/cmark-gfm/src/node.o +0 -0
  171. {multimark-0.3.2 → multimark-0.4.0}/third_party/cmark-gfm/src/parser.h +0 -0
  172. {multimark-0.3.2 → multimark-0.4.0}/third_party/cmark-gfm/src/plaintext.c +0 -0
  173. {multimark-0.3.2 → multimark-0.4.0}/third_party/cmark-gfm/src/plaintext.o +0 -0
  174. {multimark-0.3.2 → multimark-0.4.0}/third_party/cmark-gfm/src/plugin.c +0 -0
  175. {multimark-0.3.2 → multimark-0.4.0}/third_party/cmark-gfm/src/plugin.h +0 -0
  176. {multimark-0.3.2 → multimark-0.4.0}/third_party/cmark-gfm/src/plugin.o +0 -0
  177. {multimark-0.3.2 → multimark-0.4.0}/third_party/cmark-gfm/src/references.c +0 -0
  178. {multimark-0.3.2 → multimark-0.4.0}/third_party/cmark-gfm/src/references.h +0 -0
  179. {multimark-0.3.2 → multimark-0.4.0}/third_party/cmark-gfm/src/references.o +0 -0
  180. {multimark-0.3.2 → multimark-0.4.0}/third_party/cmark-gfm/src/registry.c +0 -0
  181. {multimark-0.3.2 → multimark-0.4.0}/third_party/cmark-gfm/src/registry.h +0 -0
  182. {multimark-0.3.2 → multimark-0.4.0}/third_party/cmark-gfm/src/registry.o +0 -0
  183. {multimark-0.3.2 → multimark-0.4.0}/third_party/cmark-gfm/src/render.c +0 -0
  184. {multimark-0.3.2 → multimark-0.4.0}/third_party/cmark-gfm/src/render.h +0 -0
  185. {multimark-0.3.2 → multimark-0.4.0}/third_party/cmark-gfm/src/render.o +0 -0
  186. {multimark-0.3.2 → multimark-0.4.0}/third_party/cmark-gfm/src/scanners.c +0 -0
  187. {multimark-0.3.2 → multimark-0.4.0}/third_party/cmark-gfm/src/scanners.h +0 -0
  188. {multimark-0.3.2 → multimark-0.4.0}/third_party/cmark-gfm/src/scanners.o +0 -0
  189. {multimark-0.3.2 → multimark-0.4.0}/third_party/cmark-gfm/src/scanners.re +0 -0
  190. {multimark-0.3.2 → multimark-0.4.0}/third_party/cmark-gfm/src/syntax_extension.c +0 -0
  191. {multimark-0.3.2 → multimark-0.4.0}/third_party/cmark-gfm/src/syntax_extension.h +0 -0
  192. {multimark-0.3.2 → multimark-0.4.0}/third_party/cmark-gfm/src/syntax_extension.o +0 -0
  193. {multimark-0.3.2 → multimark-0.4.0}/third_party/cmark-gfm/src/utf8.c +0 -0
  194. {multimark-0.3.2 → multimark-0.4.0}/third_party/cmark-gfm/src/utf8.h +0 -0
  195. {multimark-0.3.2 → multimark-0.4.0}/third_party/cmark-gfm/src/utf8.o +0 -0
  196. {multimark-0.3.2 → multimark-0.4.0}/third_party/cmark-gfm/src/xml.c +0 -0
  197. {multimark-0.3.2 → multimark-0.4.0}/third_party/cmark-gfm/src/xml.o +0 -0
  198. {multimark-0.3.2 → multimark-0.4.0}/user_guide/00-introduction.qmd +0 -0
  199. {multimark-0.3.2 → multimark-0.4.0}/user_guide/01-installation.qmd +0 -0
  200. {multimark-0.3.2 → multimark-0.4.0}/user_guide/02-quick-start.qmd +0 -0
  201. {multimark-0.3.2 → multimark-0.4.0}/user_guide/03-gfm-extensions.qmd +0 -0
  202. {multimark-0.3.2 → multimark-0.4.0}/user_guide/04-output-formats.qmd +0 -0
  203. {multimark-0.3.2 → multimark-0.4.0}/user_guide/05-options-and-flags.qmd +0 -0
  204. {multimark-0.3.2 → multimark-0.4.0}/user_guide/06-cli.qmd +0 -0
  205. {multimark-0.3.2 → multimark-0.4.0}/user_guide/07-security.qmd +0 -0
  206. {multimark-0.3.2 → multimark-0.4.0}/user_guide/08-recipes.qmd +0 -0
  207. {multimark-0.3.2 → multimark-0.4.0}/user_guide/09-performance.qmd +0 -0
  208. {multimark-0.3.2 → multimark-0.4.0}/user_guide/10-parsing-and-ast.qmd +0 -0
@@ -20,6 +20,13 @@ jobs:
20
20
  matrix:
21
21
  os: [ubuntu-latest, macos-latest, windows-latest]
22
22
  python-version: ["3.9", "3.10", "3.11", "3.12", "3.13", "3.14"]
23
+ # setup-python has no 3.9 build for Ubuntu 26.04 (ubuntu-latest from Oct 2026)
24
+ exclude:
25
+ - os: ubuntu-latest
26
+ python-version: "3.9"
27
+ include:
28
+ - os: ubuntu-24.04
29
+ python-version: "3.9"
23
30
 
24
31
  steps:
25
32
  - uses: actions/checkout@v6
@@ -56,6 +63,12 @@ jobs:
56
63
  with:
57
64
  python-version: "3.12"
58
65
 
66
+ - name: Set up QEMU
67
+ if: runner.os == 'Linux'
68
+ uses: docker/setup-qemu-action@v3
69
+ with:
70
+ platforms: arm64
71
+
59
72
  - name: Install cibuildwheel
60
73
  run: pip install cibuildwheel==2.23.4
61
74
 
@@ -64,7 +77,7 @@ jobs:
64
77
 
65
78
  - uses: actions/upload-artifact@v4
66
79
  with:
67
- name: wheels-${{ matrix.os }}
80
+ name: wheels-native-${{ matrix.os }}
68
81
  path: ./wheelhouse/*.whl
69
82
 
70
83
  build_pyodide:
@@ -78,13 +91,13 @@ jobs:
78
91
  with:
79
92
  fetch-depth: 0
80
93
 
81
- - uses: pypa/cibuildwheel@v3.4.0
94
+ - uses: pypa/cibuildwheel@v4.2.1
82
95
  env:
83
96
  CIBW_PLATFORM: pyodide
84
97
 
85
98
  - uses: actions/upload-artifact@v4
86
99
  with:
87
- name: pyodide-wheel
100
+ name: wheels-pyodide
88
101
  path: wheelhouse/*.whl
89
102
 
90
103
  build_sdist:
@@ -118,7 +131,7 @@ jobs:
118
131
  steps:
119
132
  - uses: actions/download-artifact@v4
120
133
  with:
121
- pattern: wheels-*
134
+ pattern: wheels-native-*
122
135
  path: dist
123
136
  merge-multiple: true
124
137
 
@@ -132,3 +145,21 @@ jobs:
132
145
  user: __token__
133
146
  password: ${{ secrets.PYPI_API_TOKEN }}
134
147
  skip-existing: true
148
+
149
+ # Uploaded separately so a Pyodide failure can't block the native release.
150
+ publish_pyodide:
151
+ name: Publish Pyodide wheel to PyPI
152
+ needs: [publish, build_pyodide]
153
+ runs-on: ubuntu-latest
154
+ if: github.event_name == 'release'
155
+ steps:
156
+ - uses: actions/download-artifact@v4
157
+ with:
158
+ name: wheels-pyodide
159
+ path: dist
160
+
161
+ - uses: pypa/gh-action-pypi-publish@release/v1
162
+ with:
163
+ user: __token__
164
+ password: ${{ secrets.PYPI_API_TOKEN }}
165
+ skip-existing: true
@@ -16,7 +16,7 @@ jobs:
16
16
  with:
17
17
  fetch-depth: 0
18
18
 
19
- - uses: pypa/cibuildwheel@v3.4.0
19
+ - uses: pypa/cibuildwheel@v4.2.1
20
20
  env:
21
21
  CIBW_PLATFORM: pyodide
22
22
 
@@ -23,6 +23,12 @@ jobs:
23
23
  with:
24
24
  python-version: "3.12"
25
25
 
26
+ - name: Set up QEMU
27
+ if: runner.os == 'Linux'
28
+ uses: docker/setup-qemu-action@v3
29
+ with:
30
+ platforms: arm64
31
+
26
32
  - name: Install cibuildwheel
27
33
  run: pip install cibuildwheel==2.23.4
28
34
 
@@ -38,8 +38,8 @@ dist-wheel: clean ## builds native abi3 wheel using cibuildwheel
38
38
 
39
39
  .PHONY: dist-pyodide
40
40
  dist-pyodide: clean ## builds Pyodide/emscripten wheel (requires Linux or macOS)
41
- pip install pyodide-build
42
- pyodide build --outdir dist
41
+ pip install cibuildwheel==4.2.1
42
+ python -m cibuildwheel --platform pyodide --output-dir dist
43
43
  ls -l dist
44
44
 
45
45
  .PHONY: dist-sdist
@@ -50,8 +50,9 @@ dist-sdist: clean ## builds source distribution only
50
50
 
51
51
  .PHONY: dist-all
52
52
  dist-all: clean ## builds native wheel, Pyodide wheel, and sdist
53
- pip install cibuildwheel==2.23.4 pyodide-build build
53
+ pip install cibuildwheel==2.23.4 build
54
54
  python -m cibuildwheel --output-dir dist
55
- pyodide build --outdir dist
55
+ pip install cibuildwheel==4.2.1
56
+ python -m cibuildwheel --platform pyodide --output-dir dist
56
57
  python3 -m build --sdist --outdir dist
57
58
  ls -l dist
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: multimark
3
- Version: 0.3.2
3
+ Version: 0.4.0
4
4
  Summary: Python bindings to cmark: CommonMark parsing and rendering (HTML, LaTeX, man, XML)
5
5
  Author: Rich Iannone
6
6
  License-Expression: MIT AND BSD-2-Clause
@@ -12,21 +12,27 @@ Built with cibuildwheel using the `cp39-abi3` tag.
12
12
 
13
13
  | Platform | Architectures | Wheel tag |
14
14
  |----------|--------------|-----------|
15
- | Linux (manylinux) | x86_64 | `cp39-abi3-manylinux_*_x86_64` |
15
+ | Linux (manylinux/musllinux) | x86_64, aarch64 | `cp39-abi3-manylinux_*_{x86_64,aarch64}`, `cp39-abi3-musllinux_*_{x86_64,aarch64}` |
16
16
  | macOS | x86_64, arm64 | `cp39-abi3-macosx_*_x86_64`, `cp39-abi3-macosx_*_arm64` |
17
17
  | Windows | x86_64 | `cp39-abi3-win_amd64` |
18
18
 
19
+ Linux aarch64 wheels are built and tested under QEMU on the x86_64 GitHub Actions runner.
20
+
19
21
  Skipped: 32-bit Windows (`win32`), 32-bit Linux (`manylinux_i686`), musl 32-bit (`musllinux_i686`).
20
22
 
21
23
  ## Pyodide / WebAssembly Wheels
22
24
 
23
- Built with cibuildwheel using `CIBW_PLATFORM=pyodide`. These allow multimark to run in browser-based Python environments (Pyodide, JupyterLite, Shinylive).
25
+ Built with cibuildwheel 4.x using `CIBW_PLATFORM=pyodide`, and published to PyPI with the native wheels. They use the PEP 783 `pyemscripten` platform tag, so `micropip.install("multimark")` finds them. These allow multimark to run in browser-based Python environments (Pyodide, JupyterLite, Shinylive).
24
26
 
25
27
  | Pyodide Version | Python | Emscripten | Wheel tag |
26
28
  |----------------|--------|------------|-----------|
27
- | 0.29.x | 3.13 | 4.0.9 | `cp39-abi3-pyodide_2025_0_wasm32` |
29
+ | 314.x | 3.14 | 5.0.3 | `cp39-abi3-pyemscripten_2026_0_wasm32` |
30
+
31
+ Pyodide 0.28/0.29 (Python 3.13) is a different ABI and is not built. Its `pyemscripten_2025_0` wheel would only install on Pyodide 0.29.4 and later, because earlier versions bundle a micropip older than 0.11.1, which does not recognise the `pyemscripten` tag.
32
+
33
+ Threading and CLI tests are skipped under Pyodide (emscripten does not support pthreads or subprocesses). For the same reason, `markdown_to_html_batch(..., workers=N)` with `N > 1` raises `RuntimeError` under Pyodide. Leave `workers` unset there.
28
34
 
29
- Threading and CLI tests are skipped under Pyodide (emscripten does not support pthreads or subprocesses).
35
+ The Pyodide wheel is uploaded to PyPI in its own job, after the native wheels and sdist. If the Pyodide build, its tests, or its upload fail, the native release is still published.
30
36
 
31
37
  ## Source Distribution
32
38
 
@@ -57,4 +63,4 @@ gh workflow run test-sdist.yml
57
63
 
58
64
  ## Configuration
59
65
 
60
- All cibuildwheel settings live in `pyproject.toml` under `[tool.cibuildwheel]`. The release CI workflow (`ci.yml`) and local Makefile targets read from the same configuration.
66
+ All cibuildwheel settings live in `pyproject.toml` under `[tool.cibuildwheel]`. The release CI workflow (`ci.yml`) and local Makefile targets read from the same configuration. Native wheels are built with cibuildwheel 2.23.4 and Pyodide wheels with 4.2.1.
@@ -54,10 +54,10 @@ before-build = "git config --global --add safe.directory /project"
54
54
  archs = ["x86_64", "arm64"]
55
55
 
56
56
  [tool.cibuildwheel.linux]
57
- archs = ["x86_64"]
57
+ archs = ["x86_64", "aarch64"]
58
58
 
59
59
  [tool.cibuildwheel.pyodide]
60
- build = "cp313-*"
60
+ build = "cp314-*"
61
61
  skip = ""
62
62
  before-build = ""
63
63
  test-requires = ["pytest"]
@@ -16,6 +16,7 @@ from multimark._cmark import (
16
16
  VALID_EXTENSIONS,
17
17
  )
18
18
  from multimark._parser import Parser
19
+ from multimark._batch import markdown_to_html_batch
19
20
  from multimark._node import Node, NodeType, ListType, DelimType, parse
20
21
  from multimark._binding import lib
21
22
 
@@ -86,6 +87,7 @@ __all__ = [
86
87
  "markdown_to_man",
87
88
  "markdown_to_commonmark",
88
89
  "markdown_to_xml",
90
+ "markdown_to_html_batch",
89
91
  "cmark_version",
90
92
  "Options",
91
93
  "Parser",
@@ -0,0 +1,107 @@
1
+ from __future__ import annotations
2
+
3
+ from typing import List, Optional, Sequence
4
+
5
+ from multimark._binding import ffi, lib
6
+ from multimark._cmark import _build_options
7
+
8
+
9
+ def _render_html_chunk(encoded: Sequence[bytes], opts: int) -> List[str]:
10
+ """Render a chunk of pre-encoded documents in a single C batch call.
11
+
12
+ The whole parse+render+free loop runs in C, so the GIL is released once for
13
+ the entire chunk rather than once per document.
14
+ """
15
+ n = len(encoded)
16
+ if n == 0:
17
+ return []
18
+
19
+ # Zero-copy views into the Python bytes; keep them alive for the call.
20
+ inputs = ffi.new("char*[]", n)
21
+ lens = ffi.new("size_t[]", n)
22
+ for i, buf in enumerate(encoded):
23
+ inputs[i] = ffi.from_buffer(buf)
24
+ lens[i] = len(buf)
25
+
26
+ outputs = ffi.new("char*[]", n)
27
+ rendered = lib.mm_render_html_batch(inputs, lens, n, opts, outputs)
28
+
29
+ try:
30
+ if rendered < 0:
31
+ raise MemoryError("Failed to render document batch")
32
+ return [ffi.string(outputs[i]).decode("utf-8") for i in range(n)]
33
+ finally:
34
+ for i in range(n):
35
+ if outputs[i] != ffi.NULL:
36
+ lib.free(outputs[i])
37
+
38
+
39
+ def markdown_to_html_batch(
40
+ texts: Sequence[str],
41
+ *,
42
+ hardbreaks: bool = False,
43
+ smart: bool = False,
44
+ normalize: bool = False,
45
+ sourcepos: bool = False,
46
+ unsafe: bool = False,
47
+ footnotes: bool = False,
48
+ options: int = 0,
49
+ workers: Optional[int] = None,
50
+ ) -> List[str]:
51
+ """Render many Markdown documents to HTML in one call.
52
+
53
+ Equivalent to `[markdown_to_html(t, ...) for t in texts]` but faster: the
54
+ parse/render/free loop happens in C, cutting per-document Python overhead,
55
+ and the GIL is released for the whole batch. Set `workers` above 1 to fan
56
+ the batch across threads for real multi-core parallelism (the C work runs
57
+ with the GIL released, so threads scale).
58
+
59
+ Parameters
60
+ ----------
61
+ texts
62
+ The Markdown documents to render. Each must be a `str`.
63
+ workers
64
+ Number of worker threads. `None` or `1` renders the whole batch in a
65
+ single C call on the current thread. A value `> 1` splits the batch
66
+ into that many chunks rendered concurrently.
67
+ options, smart, unsafe, ...
68
+ Same parsing/rendering options as :func:`markdown_to_html`. GFM
69
+ `extensions=` are not yet supported by the batch path.
70
+
71
+ Returns
72
+ -------
73
+ list[str]
74
+ Rendered HTML, in the same order as `texts`.
75
+ """
76
+ opts = _build_options(
77
+ options, hardbreaks, smart, normalize, sourcepos, unsafe, footnotes
78
+ )
79
+ encoded = [t.encode("utf-8") for t in texts]
80
+ n = len(encoded)
81
+
82
+ if n == 0:
83
+ return []
84
+
85
+ if workers is None or workers <= 1 or n == 1:
86
+ return _render_html_chunk(encoded, opts)
87
+
88
+ import concurrent.futures as cf
89
+
90
+ workers = min(workers, n)
91
+ # Contiguous chunks preserve order when reassembled.
92
+ chunk_size = (n + workers - 1) // workers
93
+ chunks = [encoded[i : i + chunk_size] for i in range(0, n, chunk_size)]
94
+
95
+ results: List[List[str]] = [[]] * len(chunks)
96
+ with cf.ThreadPoolExecutor(max_workers=workers) as ex:
97
+ futures = {
98
+ ex.submit(_render_html_chunk, chunk, opts): idx
99
+ for idx, chunk in enumerate(chunks)
100
+ }
101
+ for fut in cf.as_completed(futures):
102
+ results[futures[fut]] = fut.result()
103
+
104
+ out: List[str] = []
105
+ for part in results:
106
+ out.extend(part)
107
+ return out
@@ -37,6 +37,33 @@ ffi.set_source(
37
37
  """
38
38
  #include "cmark-gfm.h"
39
39
  #include "cmark-gfm-core-extensions.h"
40
+
41
+ /* Batch HTML renderer: parse + render + free a whole array of documents
42
+ in a single C loop. Because this is one cffi boundary crossing, the GIL
43
+ is released for the entire batch rather than once per document, and the
44
+ per-document Python-side dispatch overhead disappears. Each outputs[i]
45
+ is a malloc'd C string the caller frees; on failure returns -1 and any
46
+ already-rendered outputs[i] are non-NULL for the caller to free. */
47
+ int mm_render_html_batch(const char **inputs, size_t *lens, size_t n,
48
+ int options, char **outputs) {
49
+ size_t i;
50
+ for (i = 0; i < n; i++) {
51
+ outputs[i] = (char *)0;
52
+ }
53
+ for (i = 0; i < n; i++) {
54
+ cmark_node *node = cmark_parse_document(inputs[i], lens[i], options);
55
+ if (node == (cmark_node *)0) {
56
+ return -1;
57
+ }
58
+ char *html = cmark_render_html(node, options, (cmark_llist *)0);
59
+ cmark_node_free(node);
60
+ if (html == (char *)0) {
61
+ return -1;
62
+ }
63
+ outputs[i] = html;
64
+ }
65
+ return (int)n;
66
+ }
40
67
  """,
41
68
  sources=src_sources + ext_sources,
42
69
  include_dirs=[src_dir_abs, ext_dir_abs],
@@ -34,6 +34,13 @@ const char *cmark_version_string(void);
34
34
 
35
35
  void free(void *ptr);
36
36
 
37
+ /* multimark batch helpers (defined in _build_cmark.py set_source body).
38
+ Parse+render a whole batch in one C loop so the GIL is released once per
39
+ call instead of once per document. Each outputs[i] is a malloc'd C string
40
+ the caller must free(). Returns the number rendered, or -1 on failure. */
41
+ int mm_render_html_batch(const char **inputs, size_t *lens, size_t n,
42
+ int options, char **outputs);
43
+
37
44
  /* Tree traversal */
38
45
  cmark_node *cmark_node_next(cmark_node *node);
39
46
  cmark_node *cmark_node_previous(cmark_node *node);
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: multimark
3
- Version: 0.3.2
3
+ Version: 0.4.0
4
4
  Summary: Python bindings to cmark: CommonMark parsing and rendering (HTML, LaTeX, man, XML)
5
5
  Author: Rich Iannone
6
6
  License-Expression: MIT AND BSD-2-Clause
@@ -45,6 +45,7 @@ multimark/_binding.c
45
45
  multimark/_binding.o
46
46
  skills/multimark/SKILL.md
47
47
  src/multimark/__init__.py
48
+ src/multimark/_batch.py
48
49
  src/multimark/_build_cmark.py
49
50
  src/multimark/_cli.py
50
51
  src/multimark/_cmark.py
@@ -62,6 +63,7 @@ src/multimark.egg-info/top_level.txt
62
63
  tests/conftest.py
63
64
  tests/spec_parser.py
64
65
  tests/test_ast.py
66
+ tests/test_batch.py
65
67
  tests/test_cli.py
66
68
  tests/test_commonmark.py
67
69
  tests/test_errors.py
@@ -47,6 +47,7 @@
47
47
  "setup.py",
48
48
  "skills/multimark/SKILL.md",
49
49
  "src/multimark/__init__.py",
50
+ "src/multimark/_batch.py",
50
51
  "src/multimark/_build_cmark.py",
51
52
  "src/multimark/_cli.py",
52
53
  "src/multimark/_cmark.py",
@@ -60,6 +61,7 @@
60
61
  "tests/fixtures/spec.txt",
61
62
  "tests/spec_parser.py",
62
63
  "tests/test_ast.py",
64
+ "tests/test_batch.py",
63
65
  "tests/test_cli.py",
64
66
  "tests/test_commonmark.py",
65
67
  "tests/test_errors.py",
@@ -0,0 +1,8 @@
1
+ {
2
+ "tag": "0.4.0",
3
+ "distance": 0,
4
+ "node": "gbc838242607d36fde724afc72fc23ed1290e701e",
5
+ "dirty": false,
6
+ "branch": "HEAD",
7
+ "node_date": "2026-10-06"
8
+ }
@@ -0,0 +1,54 @@
1
+ import sys
2
+
3
+ import pytest
4
+
5
+ from multimark import markdown_to_html, markdown_to_html_batch
6
+
7
+
8
+ DOCS = [
9
+ "# Heading\n\nA paragraph with **bold** and *italic*.\n",
10
+ "text with a [link](http://example.com) and `code`",
11
+ "",
12
+ "plain line",
13
+ "<div>raw html</div>",
14
+ "- one\n- two\n- three\n",
15
+ ]
16
+
17
+
18
+ def _ref(docs, **kw):
19
+ return [markdown_to_html(d, **kw) for d in docs]
20
+
21
+
22
+ no_threads = pytest.mark.skipif(
23
+ sys.platform == "emscripten", reason="Emscripten cannot start threads"
24
+ )
25
+
26
+
27
+ def test_batch_matches_per_call():
28
+ assert markdown_to_html_batch(DOCS) == _ref(DOCS)
29
+
30
+
31
+ def test_batch_empty():
32
+ assert markdown_to_html_batch([]) == []
33
+
34
+
35
+ def test_batch_single():
36
+ assert markdown_to_html_batch(["**hi**"]) == [markdown_to_html("**hi**")]
37
+
38
+
39
+ def test_batch_options_parity():
40
+ for kw in ({"smart": True}, {"unsafe": True}, {"sourcepos": True}):
41
+ assert markdown_to_html_batch(DOCS, **kw) == _ref(DOCS, **kw), kw
42
+
43
+
44
+ @no_threads
45
+ def test_batch_workers_preserve_order():
46
+ docs = [f"# Doc {i}\n\nParagraph {i}\n" for i in range(500)]
47
+ ref = _ref(docs)
48
+ for w in (1, 2, 4, 8):
49
+ assert markdown_to_html_batch(docs, workers=w) == ref, w
50
+
51
+
52
+ @no_threads
53
+ def test_batch_workers_more_than_docs():
54
+ assert markdown_to_html_batch(DOCS, workers=64) == _ref(DOCS)
@@ -1,8 +0,0 @@
1
- {
2
- "tag": "0.3.2",
3
- "distance": 0,
4
- "node": "gff06b085df2d5e8a4396d0d0b0e0ccc82bdac701",
5
- "dirty": false,
6
- "branch": "HEAD",
7
- "node_date": "2026-08-08"
8
- }
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes