apex-ruby 1.0.30 → 1.0.32

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 (490) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +2 -8
  3. data/apex-ruby.gemspec +14 -3
  4. data/ext/apex_ext/apex_src/include/apex/apex.h +11 -2
  5. data/ext/apex_ext/apex_src/src/apex.c +64 -5
  6. data/ext/apex_ext/apex_src/src/ast_terminal.c +2 -4
  7. data/ext/apex_ext/apex_src/src/extensions/callouts.c +103 -63
  8. data/ext/apex_ext/apex_src/src/extensions/callouts.h +3 -2
  9. data/ext/apex_ext/apex_src/src/extensions/citations.c +15 -2
  10. data/ext/apex_ext/apex_src/src/extensions/emoji.c +73 -7
  11. data/ext/apex_ext/apex_src/src/extensions/html_markdown.c +25 -4
  12. data/ext/apex_ext/apex_src/src/extensions/html_markdown.h +4 -1
  13. data/ext/apex_ext/apex_src/src/extensions/insert.c +49 -0
  14. data/ext/apex_ext/apex_src/src/extensions/metadata.c +275 -55
  15. data/ext/apex_ext/apex_src/src/extensions/metadata.h +9 -0
  16. data/ext/apex_ext/apex_src/src/extensions/relaxed_tables.c +172 -254
  17. data/ext/apex_ext/apex_src/src/extensions/table_html_postprocess.c +36 -127
  18. data/ext/apex_ext/apex_src/src/html_renderer.c +99 -157
  19. data/ext/apex_ext/apex_src/vendor/cmark-gfm/extensions/table.c +7 -0
  20. data/ext/apex_ext/extconf.rb +31 -79
  21. data/lib/apex/version.rb +1 -1
  22. metadata +1 -469
  23. data/ext/apex_ext/apex_src/AGENTS.md +0 -41
  24. data/ext/apex_ext/apex_src/BENCHMARK.md +0 -32
  25. data/ext/apex_ext/apex_src/BENCHMARK_COMPARISON.md +0 -67
  26. data/ext/apex_ext/apex_src/CHANGELOG.md +0 -3373
  27. data/ext/apex_ext/apex_src/CMakeLists.txt +0 -481
  28. data/ext/apex_ext/apex_src/Dockerfile.linux-build +0 -15
  29. data/ext/apex_ext/apex_src/Formula/apex.rb +0 -43
  30. data/ext/apex_ext/apex_src/Info.plist.in +0 -27
  31. data/ext/apex_ext/apex_src/Package.swift +0 -192
  32. data/ext/apex_ext/apex_src/PackageSupport/README.md +0 -17
  33. data/ext/apex_ext/apex_src/PackageSupport/cmark-gfm/cmark_gfm_spm_stub.c +0 -4
  34. data/ext/apex_ext/apex_src/README.md +0 -536
  35. data/ext/apex_ext/apex_src/ROADMAP.md +0 -5
  36. data/ext/apex_ext/apex_src/VERSION +0 -1
  37. data/ext/apex_ext/apex_src/apex-debug.log +0 -4
  38. data/ext/apex_ext/apex_src/apex-header-2-rb@2x.webp +0 -0
  39. data/ext/apex_ext/apex_src/apex-plugins.json.example +0 -20
  40. data/ext/apex_ext/apex_src/apex.code-workspace +0 -38
  41. data/ext/apex_ext/apex_src/apex.pc.in +0 -11
  42. data/ext/apex_ext/apex_src/apex.taskpaper +0 -12
  43. data/ext/apex_ext/apex_src/apex_deflist_debug.log +0 -25
  44. data/ext/apex_ext/apex_src/buildnotes.md +0 -1435
  45. data/ext/apex_ext/apex_src/cli/main.c +0 -4588
  46. data/ext/apex_ext/apex_src/debug.log +0 -7
  47. data/ext/apex_ext/apex_src/debug_test.sh +0 -22
  48. data/ext/apex_ext/apex_src/docs/API_REFERENCE.md +0 -451
  49. data/ext/apex_ext/apex_src/docs/ARCHITECTURE.md +0 -166
  50. data/ext/apex_ext/apex_src/docs/CITATIONS_EXAMPLES.md +0 -274
  51. data/ext/apex_ext/apex_src/docs/CITATIONS_IMPLEMENTATION_PLAN.md +0 -749
  52. data/ext/apex_ext/apex_src/docs/CITATIONS_PLAN.md +0 -744
  53. data/ext/apex_ext/apex_src/docs/CMARK_INTEGRATION.md +0 -220
  54. data/ext/apex_ext/apex_src/docs/CRITICMARKUP.md +0 -501
  55. data/ext/apex_ext/apex_src/docs/DEBUGGING.md +0 -73
  56. data/ext/apex_ext/apex_src/docs/FINAL_STATUS.md +0 -391
  57. data/ext/apex_ext/apex_src/docs/FINAL_STATUS_UPDATE.md +0 -237
  58. data/ext/apex_ext/apex_src/docs/IAL_FEATURES.md +0 -210
  59. data/ext/apex_ext/apex_src/docs/IAL_STATUS.md +0 -344
  60. data/ext/apex_ext/apex_src/docs/INDEX_IMPLEMENTATION_ANALYSIS.md +0 -382
  61. data/ext/apex_ext/apex_src/docs/INTEGRATION_EXAMPLE.m +0 -144
  62. data/ext/apex_ext/apex_src/docs/LIMITATIONS_RESOLVED.md +0 -278
  63. data/ext/apex_ext/apex_src/docs/OUTPUT_MODES.md +0 -321
  64. data/ext/apex_ext/apex_src/docs/PROGRESS.md +0 -167
  65. data/ext/apex_ext/apex_src/docs/STANDALONE_FEATURE.md +0 -174
  66. data/ext/apex_ext/apex_src/docs/TABLE_SPANS_STATUS.md +0 -243
  67. data/ext/apex_ext/apex_src/docs/TEST_COVERAGE.md +0 -316
  68. data/ext/apex_ext/apex_src/docs/USER_GUIDE.md +0 -803
  69. data/ext/apex_ext/apex_src/docs/WIKI_LINKS_ISSUE.md +0 -91
  70. data/ext/apex_ext/apex_src/docs/index.md +0 -459
  71. data/ext/apex_ext/apex_src/docs/plans/2025-02-27-man-page-output-implementation.md +0 -351
  72. data/ext/apex_ext/apex_src/docs/superpowers/plans/2026-07-12-toc-output-format.md +0 -745
  73. data/ext/apex_ext/apex_src/docs/superpowers/plans/2026-07-18-bear-image-attributes.md +0 -829
  74. data/ext/apex_ext/apex_src/docs/superpowers/plans/2026-07-19-apex-node-npm.md +0 -1148
  75. data/ext/apex_ext/apex_src/docs/superpowers/specs/2026-07-12-toc-output-format-design.md +0 -161
  76. data/ext/apex_ext/apex_src/docs/superpowers/specs/2026-07-18-bear-image-attributes-design.md +0 -184
  77. data/ext/apex_ext/apex_src/docs/superpowers/specs/2026-07-19-apex-node-npm-design.md +0 -211
  78. data/ext/apex_ext/apex_src/documentation/README.md +0 -160
  79. data/ext/apex_ext/apex_src/documentation/app-settings-table.md +0 -67
  80. data/ext/apex_ext/apex_src/documentation/app-transformed/Citations.md +0 -340
  81. data/ext/apex_ext/apex_src/documentation/app-transformed/Credits.md +0 -11
  82. data/ext/apex_ext/apex_src/documentation/app-transformed/Header-IDs.md +0 -234
  83. data/ext/apex_ext/apex_src/documentation/app-transformed/Inline-Attribute-Lists.md +0 -516
  84. data/ext/apex_ext/apex_src/documentation/app-transformed/Metadata-Transforms.md +0 -461
  85. data/ext/apex_ext/apex_src/documentation/app-transformed/Modes.md +0 -193
  86. data/ext/apex_ext/apex_src/documentation/app-transformed/Multi-File-Documents.md +0 -201
  87. data/ext/apex_ext/apex_src/documentation/app-transformed/Plugins.md +0 -678
  88. data/ext/apex_ext/apex_src/documentation/app-transformed/Syntax.md +0 -1367
  89. data/ext/apex_ext/apex_src/documentation/docsets/Apex Command Line Options.cheatsheet.txt +0 -371
  90. data/ext/apex_ext/apex_src/documentation/docsets/Apex.docset/Contents/Info.plist +0 -24
  91. data/ext/apex_ext/apex_src/documentation/docsets/Apex.docset/Contents/Resources/Documents/C-API.html +0 -2211
  92. data/ext/apex_ext/apex_src/documentation/docsets/Apex.docset/Contents/Resources/Documents/Callouts.html +0 -1194
  93. data/ext/apex_ext/apex_src/documentation/docsets/Apex.docset/Contents/Resources/Documents/Citations.html +0 -1620
  94. data/ext/apex_ext/apex_src/documentation/docsets/Apex.docset/Contents/Resources/Documents/Command-Line-Options.html +0 -6024
  95. data/ext/apex_ext/apex_src/documentation/docsets/Apex.docset/Contents/Resources/Documents/Configuration.html +0 -1877
  96. data/ext/apex_ext/apex_src/documentation/docsets/Apex.docset/Contents/Resources/Documents/Credits.html +0 -1040
  97. data/ext/apex_ext/apex_src/documentation/docsets/Apex.docset/Contents/Resources/Documents/Examples.html +0 -1402
  98. data/ext/apex_ext/apex_src/documentation/docsets/Apex.docset/Contents/Resources/Documents/Filters.html +0 -1656
  99. data/ext/apex_ext/apex_src/documentation/docsets/Apex.docset/Contents/Resources/Documents/Generating-Man-Pages.html +0 -1226
  100. data/ext/apex_ext/apex_src/documentation/docsets/Apex.docset/Contents/Resources/Documents/Getting-Started.html +0 -1148
  101. data/ext/apex_ext/apex_src/documentation/docsets/Apex.docset/Contents/Resources/Documents/Header-IDs.html +0 -1478
  102. data/ext/apex_ext/apex_src/documentation/docsets/Apex.docset/Contents/Resources/Documents/Home.html +0 -1225
  103. data/ext/apex_ext/apex_src/documentation/docsets/Apex.docset/Contents/Resources/Documents/Indices.html +0 -2327
  104. data/ext/apex_ext/apex_src/documentation/docsets/Apex.docset/Contents/Resources/Documents/Inline-Attribute-Lists.html +0 -2041
  105. data/ext/apex_ext/apex_src/documentation/docsets/Apex.docset/Contents/Resources/Documents/Installation.html +0 -1314
  106. data/ext/apex_ext/apex_src/documentation/docsets/Apex.docset/Contents/Resources/Documents/Limitations-and-Roadmap.html +0 -1868
  107. data/ext/apex_ext/apex_src/documentation/docsets/Apex.docset/Contents/Resources/Documents/Metadata-Transforms.html +0 -1731
  108. data/ext/apex_ext/apex_src/documentation/docsets/Apex.docset/Contents/Resources/Documents/Modes.html +0 -2242
  109. data/ext/apex_ext/apex_src/documentation/docsets/Apex.docset/Contents/Resources/Documents/Multi-File-Documents.html +0 -1533
  110. data/ext/apex_ext/apex_src/documentation/docsets/Apex.docset/Contents/Resources/Documents/Multi-Format-Images.html +0 -1362
  111. data/ext/apex_ext/apex_src/documentation/docsets/Apex.docset/Contents/Resources/Documents/Pandoc-Integration.html +0 -1338
  112. data/ext/apex_ext/apex_src/documentation/docsets/Apex.docset/Contents/Resources/Documents/Plugins.html +0 -3188
  113. data/ext/apex_ext/apex_src/documentation/docsets/Apex.docset/Contents/Resources/Documents/Quarto-Mode.html +0 -1405
  114. data/ext/apex_ext/apex_src/documentation/docsets/Apex.docset/Contents/Resources/Documents/Rendering-Markdown-In-Terminal.html +0 -1902
  115. data/ext/apex_ext/apex_src/documentation/docsets/Apex.docset/Contents/Resources/Documents/Syntax.html +0 -4222
  116. data/ext/apex_ext/apex_src/documentation/docsets/Apex.docset/Contents/Resources/Documents/Tables.html +0 -1781
  117. data/ext/apex_ext/apex_src/documentation/docsets/Apex.docset/Contents/Resources/Documents/Troubleshooting.html +0 -1629
  118. data/ext/apex_ext/apex_src/documentation/docsets/Apex.docset/Contents/Resources/Documents/Usage.html +0 -1394
  119. data/ext/apex_ext/apex_src/documentation/docsets/Apex.docset/Contents/Resources/Documents/Using-Apex-with-Jekyll.html +0 -1132
  120. data/ext/apex_ext/apex_src/documentation/docsets/Apex.docset/Contents/Resources/Documents/Writing-Tests.html +0 -1754
  121. data/ext/apex_ext/apex_src/documentation/docsets/Apex.docset/Contents/Resources/Documents/Xcode-Integration.html +0 -2562
  122. data/ext/apex_ext/apex_src/documentation/docsets/Apex.docset/Contents/Resources/docSet.dsidx +0 -0
  123. data/ext/apex_ext/apex_src/documentation/docsets/Apex.docset/Contents/Resources/optimizedIndex.dsidx +0 -0
  124. data/ext/apex_ext/apex_src/documentation/docsets/ApexCLI.docset/Contents/Info.plist +0 -22
  125. data/ext/apex_ext/apex_src/documentation/docsets/ApexCLI.docset/Contents/Resources/Documents/cheatset_resources/Open_Sans.woff +0 -0
  126. data/ext/apex_ext/apex_src/documentation/docsets/ApexCLI.docset/Contents/Resources/Documents/cheatset_resources/Open_Sans_Bold.woff +0 -0
  127. data/ext/apex_ext/apex_src/documentation/docsets/ApexCLI.docset/Contents/Resources/Documents/cheatset_resources/Open_Sans_Bold_Italic.woff +0 -0
  128. data/ext/apex_ext/apex_src/documentation/docsets/ApexCLI.docset/Contents/Resources/Documents/cheatset_resources/Open_Sans_Extrabold.woff +0 -0
  129. data/ext/apex_ext/apex_src/documentation/docsets/ApexCLI.docset/Contents/Resources/Documents/cheatset_resources/Open_Sans_Extrabold_Italic.woff +0 -0
  130. data/ext/apex_ext/apex_src/documentation/docsets/ApexCLI.docset/Contents/Resources/Documents/cheatset_resources/Open_Sans_Italic.woff +0 -0
  131. data/ext/apex_ext/apex_src/documentation/docsets/ApexCLI.docset/Contents/Resources/Documents/cheatset_resources/Open_Sans_Semibold.woff +0 -0
  132. data/ext/apex_ext/apex_src/documentation/docsets/ApexCLI.docset/Contents/Resources/Documents/cheatset_resources/Open_Sans_Semibold_Italic.woff +0 -0
  133. data/ext/apex_ext/apex_src/documentation/docsets/ApexCLI.docset/Contents/Resources/Documents/index.html +0 -914
  134. data/ext/apex_ext/apex_src/documentation/docsets/ApexCLI.docset/Contents/Resources/Documents/style.css +0 -399
  135. data/ext/apex_ext/apex_src/documentation/docsets/ApexCLI.docset/Contents/Resources/docSet.dsidx +0 -0
  136. data/ext/apex_ext/apex_src/documentation/docsets/ApexCLI.docset/Contents/Resources/optimizedIndex.dsidx +0 -0
  137. data/ext/apex_ext/apex_src/documentation/generate_app_docs.rb +0 -772
  138. data/ext/apex_ext/apex_src/documentation/generate_app_docs_ai.rb +0 -678
  139. data/ext/apex_ext/apex_src/documentation/generate_docset.rb +0 -873
  140. data/ext/apex_ext/apex_src/documentation/generate_single_html.rb +0 -733
  141. data/ext/apex_ext/apex_src/documentation/html/apex-app-docs.html +0 -8746
  142. data/ext/apex_ext/apex_src/documentation/html/apex-docs.html +0 -17073
  143. data/ext/apex_ext/apex_src/documentation/shared_scripts.js +0 -64
  144. data/ext/apex_ext/apex_src/documentation/shared_styles.css +0 -651
  145. data/ext/apex_ext/apex_src/documentation/transform_for_app.example.md +0 -260
  146. data/ext/apex_ext/apex_src/documentation/transform_for_app.md +0 -55
  147. data/ext/apex_ext/apex_src/escaping-repro.md +0 -103
  148. data/ext/apex_ext/apex_src/examples/bracketed_spans_demo.md +0 -119
  149. data/ext/apex_ext/apex_src/examples/emoji_span_plugin.yml +0 -11
  150. data/ext/apex_ext/apex_src/examples/example.html +0 -53
  151. data/ext/apex_ext/apex_src/examples/example.md +0 -85
  152. data/ext/apex_ext/apex_src/examples/fenced_divs_demo.md +0 -158
  153. data/ext/apex_ext/apex_src/examples/kbd.md +0 -8
  154. data/ext/apex_ext/apex_src/examples/kbd_plugin.rb +0 -250
  155. data/ext/apex_ext/apex_src/examples/kbd_plugin.yml +0 -9
  156. data/ext/apex_ext/apex_src/examples/quick-actions/Markdown to RTF.workflow/Contents/Info.plist +0 -8
  157. data/ext/apex_ext/apex_src/examples/quick-actions/Markdown to RTF.workflow/Contents/QuickLook/Preview.png +0 -0
  158. data/ext/apex_ext/apex_src/examples/quick-actions/Markdown to RTF.workflow/Contents/document.wflow +0 -547
  159. data/ext/apex_ext/apex_src/examples/quick-actions/Markdown-to-RTF.workflow.zip +0 -0
  160. data/ext/apex_ext/apex_src/examples/quick-actions/README.md +0 -33
  161. data/ext/apex_ext/apex_src/ial.html +0 -24
  162. data/ext/apex_ext/apex_src/icon/apexicon-outline-black.png +0 -0
  163. data/ext/apex_ext/apex_src/icon/apexicon-outline-black@2x.png +0 -0
  164. data/ext/apex_ext/apex_src/icon/apexicon-outline-mark.png +0 -0
  165. data/ext/apex_ext/apex_src/icon/apexicon-outline-mark@2x.png +0 -0
  166. data/ext/apex_ext/apex_src/icon/apexicon-outline-white.png +0 -0
  167. data/ext/apex_ext/apex_src/icon/apexicon-outline-white@2x.png +0 -0
  168. data/ext/apex_ext/apex_src/icon/apexicon.png +0 -0
  169. data/ext/apex_ext/apex_src/icon/apexicon@2x.png +0 -0
  170. data/ext/apex_ext/apex_src/man/apex-config.5 +0 -455
  171. data/ext/apex_ext/apex_src/man/apex-config.5.md +0 -262
  172. data/ext/apex_ext/apex_src/man/apex-plugins.7 +0 -541
  173. data/ext/apex_ext/apex_src/man/apex-plugins.7.md +0 -365
  174. data/ext/apex_ext/apex_src/man/apex.1 +0 -583
  175. data/ext/apex_ext/apex_src/man/apex.1.html +0 -703
  176. data/ext/apex_ext/apex_src/man/apex.1.md +0 -803
  177. data/ext/apex_ext/apex_src/man/apex.1.new +0 -338
  178. data/ext/apex_ext/apex_src/objc/Apex.swift +0 -316
  179. data/ext/apex_ext/apex_src/objc/ApexPlugins.swift +0 -79
  180. data/ext/apex_ext/apex_src/objc/NSString+Apex.h +0 -207
  181. data/ext/apex_ext/apex_src/objc/NSString+Apex.m +0 -584
  182. data/ext/apex_ext/apex_src/objc/NSString+ApexPlugins.h +0 -76
  183. data/ext/apex_ext/apex_src/objc/NSString+ApexPlugins.m +0 -169
  184. data/ext/apex_ext/apex_src/output.html +0 -87
  185. data/ext/apex_ext/apex_src/pages/index.md +0 -459
  186. data/ext/apex_ext/apex_src/plans/quarto-mode.md +0 -442
  187. data/ext/apex_ext/apex_src/src/_README.md +0 -413
  188. data/ext/apex_ext/apex_src/src/extensions/github-emoji.txt +0 -869
  189. data/ext/apex_ext/apex_src/test-linux-build.sh +0 -20
  190. data/ext/apex_ext/apex_src/test.html +0 -103
  191. data/ext/apex_ext/apex_src/test_coverage.sh +0 -121
  192. data/ext/apex_ext/apex_src/test_ial_fenced.md +0 -6
  193. data/ext/apex_ext/apex_src/test_math_norm.py +0 -79
  194. data/ext/apex_ext/apex_src/test_pandoc_output.html +0 -48
  195. data/ext/apex_ext/apex_src/test_spm.sh +0 -107
  196. data/ext/apex_ext/apex_src/tests/ApexSPMTest/main.swift +0 -50
  197. data/ext/apex_ext/apex_src/tests/BENCHMARK_RESULTS.md +0 -229
  198. data/ext/apex_ext/apex_src/tests/CMakeLists.txt +0 -25
  199. data/ext/apex_ext/apex_src/tests/README.md +0 -152
  200. data/ext/apex_ext/apex_src/tests/benchmark.sh +0 -113
  201. data/ext/apex_ext/apex_src/tests/benchmark_comparison.sh +0 -166
  202. data/ext/apex_ext/apex_src/tests/compare_header_ids.sh +0 -31
  203. data/ext/apex_ext/apex_src/tests/fixtures/basic/headers.md +0 -25
  204. data/ext/apex_ext/apex_src/tests/fixtures/basic/list-interruption.md +0 -24
  205. data/ext/apex_ext/apex_src/tests/fixtures/basic/misc_markup.md +0 -33
  206. data/ext/apex_ext/apex_src/tests/fixtures/basic/test_basic.md +0 -26
  207. data/ext/apex_ext/apex_src/tests/fixtures/code/code-blocks.md +0 -260
  208. data/ext/apex_ext/apex_src/tests/fixtures/combine_summary/SUMMARY.md +0 -6
  209. data/ext/apex_ext/apex_src/tests/fixtures/combine_summary/chapter1.md +0 -7
  210. data/ext/apex_ext/apex_src/tests/fixtures/combine_summary/index.txt +0 -9
  211. data/ext/apex_ext/apex_src/tests/fixtures/combine_summary/intro.md +0 -5
  212. data/ext/apex_ext/apex_src/tests/fixtures/combine_summary/section1_1.md +0 -5
  213. data/ext/apex_ext/apex_src/tests/fixtures/comprehensive_test.md +0 -652
  214. data/ext/apex_ext/apex_src/tests/fixtures/debug_ref_image_ial.md +0 -3
  215. data/ext/apex_ext/apex_src/tests/fixtures/demos/ial.md +0 -11
  216. data/ext/apex_ext/apex_src/tests/fixtures/demos/ial_demo.md +0 -177
  217. data/ext/apex_ext/apex_src/tests/fixtures/extensions/emoji-autocorrect.md +0 -94
  218. data/ext/apex_ext/apex_src/tests/fixtures/extensions/emoji_test.md +0 -3
  219. data/ext/apex_ext/apex_src/tests/fixtures/extensions/kbd_test.md +0 -3
  220. data/ext/apex_ext/apex_src/tests/fixtures/filters/filter_output_with_rawblock.json +0 -1
  221. data/ext/apex_ext/apex_src/tests/fixtures/filters/unwrap.md +0 -7
  222. data/ext/apex_ext/apex_src/tests/fixtures/ial/bracketed_spans_test.md +0 -74
  223. data/ext/apex_ext/apex_src/tests/fixtures/images/auto-wildcard.md +0 -8
  224. data/ext/apex_ext/apex_src/tests/fixtures/images/bear_image_attributes.md +0 -10
  225. data/ext/apex_ext/apex_src/tests/fixtures/images/image_and_encoding_test.md +0 -27
  226. data/ext/apex_ext/apex_src/tests/fixtures/images/img/app-pass-1-profile-menu.avif +0 -0
  227. data/ext/apex_ext/apex_src/tests/fixtures/images/img/app-pass-1-profile-menu.jpg +0 -0
  228. data/ext/apex_ext/apex_src/tests/fixtures/images/img/app-pass-1-profile-menu.webp +0 -0
  229. data/ext/apex_ext/apex_src/tests/fixtures/images/img/app-pass-1-profile-menu@2x.avif +0 -0
  230. data/ext/apex_ext/apex_src/tests/fixtures/images/img/app-pass-1-profile-menu@2x.jpg +0 -0
  231. data/ext/apex_ext/apex_src/tests/fixtures/images/img/app-pass-1-profile-menu@2x.webp +0 -0
  232. data/ext/apex_ext/apex_src/tests/fixtures/images/media_formats_test.md +0 -63
  233. data/ext/apex_ext/apex_src/tests/fixtures/images/multimarkdown_image_attributes_test.md +0 -60
  234. data/ext/apex_ext/apex_src/tests/fixtures/images/pandoc_ial_image_test.md +0 -27
  235. data/ext/apex_ext/apex_src/tests/fixtures/images/width_height_conversion_test.md +0 -94
  236. data/ext/apex_ext/apex_src/tests/fixtures/img-in-div.md +0 -16
  237. data/ext/apex_ext/apex_src/tests/fixtures/includes/code.py +0 -4
  238. data/ext/apex_ext/apex_src/tests/fixtures/includes/data-semi.csv +0 -3
  239. data/ext/apex_ext/apex_src/tests/fixtures/includes/data.csv +0 -5
  240. data/ext/apex_ext/apex_src/tests/fixtures/includes/data.tsv +0 -5
  241. data/ext/apex_ext/apex_src/tests/fixtures/includes/image.png +0 -2
  242. data/ext/apex_ext/apex_src/tests/fixtures/includes/metadata_options.yml +0 -11
  243. data/ext/apex_ext/apex_src/tests/fixtures/includes/nested.md +0 -8
  244. data/ext/apex_ext/apex_src/tests/fixtures/includes/raw.html +0 -4
  245. data/ext/apex_ext/apex_src/tests/fixtures/includes/sections.md +0 -19
  246. data/ext/apex_ext/apex_src/tests/fixtures/includes/sections.txt +0 -11
  247. data/ext/apex_ext/apex_src/tests/fixtures/includes/simple.md +0 -7
  248. data/ext/apex_ext/apex_src/tests/fixtures/includes/test_image.png +0 -0
  249. data/ext/apex_ext/apex_src/tests/fixtures/includes/with space.txt +0 -1
  250. data/ext/apex_ext/apex_src/tests/fixtures/large_doc.md +0 -1094
  251. data/ext/apex_ext/apex_src/tests/fixtures/metadata/mmd-metadata.md +0 -5
  252. data/ext/apex_ext/apex_src/tests/fixtures/metadata/pandoc-meta.md +0 -4
  253. data/ext/apex_ext/apex_src/tests/fixtures/metadata/yaml-frontmatter.md +0 -6
  254. data/ext/apex_ext/apex_src/tests/fixtures/metadata_options.yml +0 -11
  255. data/ext/apex_ext/apex_src/tests/fixtures/minimal_pb.md +0 -2
  256. data/ext/apex_ext/apex_src/tests/fixtures/obsidian-callouts.md +0 -46
  257. data/ext/apex_ext/apex_src/tests/fixtures/output/gfm_header_id_test.md +0 -96
  258. data/ext/apex_ext/apex_src/tests/fixtures/output/test_citations.md +0 -43
  259. data/ext/apex_ext/apex_src/tests/fixtures/output/test_def_list_links.md +0 -12
  260. data/ext/apex_ext/apex_src/tests/fixtures/output/test_index_mmark.md +0 -53
  261. data/ext/apex_ext/apex_src/tests/fixtures/output/test_index_textindex.md +0 -37
  262. data/ext/apex_ext/apex_src/tests/fixtures/pagebreak_html_repro.md +0 -5
  263. data/ext/apex_ext/apex_src/tests/fixtures/python-callouts.md +0 -47
  264. data/ext/apex_ext/apex_src/tests/fixtures/quarto/callouts.md +0 -3
  265. data/ext/apex_ext/apex_src/tests/fixtures/quarto/code-attrs.md +0 -3
  266. data/ext/apex_ext/apex_src/tests/fixtures/quarto/diagrams.md +0 -8
  267. data/ext/apex_ext/apex_src/tests/fixtures/quarto/lists.md +0 -19
  268. data/ext/apex_ext/apex_src/tests/fixtures/quarto/raw-content.md +0 -5
  269. data/ext/apex_ext/apex_src/tests/fixtures/quarto/shortcodes.md +0 -7
  270. data/ext/apex_ext/apex_src/tests/fixtures/quarto/smoke.md +0 -81
  271. data/ext/apex_ext/apex_src/tests/fixtures/quarto/spans.md +0 -5
  272. data/ext/apex_ext/apex_src/tests/fixtures/quarto-callouts.md +0 -47
  273. data/ext/apex_ext/apex_src/tests/fixtures/speed.md +0 -192
  274. data/ext/apex_ext/apex_src/tests/fixtures/tables/advanced_tables_test.md +0 -93
  275. data/ext/apex_ext/apex_src/tests/fixtures/tables/grid-tables.md +0 -37
  276. data/ext/apex_ext/apex_src/tests/fixtures/tables/inline_tables_test.md +0 -41
  277. data/ext/apex_ext/apex_src/tests/fixtures/tables/relaxed-table.md +0 -12
  278. data/ext/apex_ext/apex_src/tests/fixtures/tables/table_cr_line_endings.md +0 -15
  279. data/ext/apex_ext/apex_src/tests/fixtures/tables/table_no_trailing_newline.md +0 -15
  280. data/ext/apex_ext/apex_src/tests/generate_gfm_ids.sh +0 -105
  281. data/ext/apex_ext/apex_src/tests/generate_ial_demo.sh +0 -143
  282. data/ext/apex_ext/apex_src/tests/gfm_id_comparison_summary.md +0 -96
  283. data/ext/apex_ext/apex_src/tests/gh_api_test.md +0 -6
  284. data/ext/apex_ext/apex_src/tests/ial_demo.html +0 -186
  285. data/ext/apex_ext/apex_src/tests/include_code.py +0 -19
  286. data/ext/apex_ext/apex_src/tests/include_snippet.md +0 -15
  287. data/ext/apex_ext/apex_src/tests/metadata_cli_test.sh +0 -119
  288. data/ext/apex_ext/apex_src/tests/multi_file_cli_test.sh +0 -64
  289. data/ext/apex_ext/apex_src/tests/paginate_cli_test.sh +0 -80
  290. data/ext/apex_ext/apex_src/tests/sample_data.csv +0 -7
  291. data/ext/apex_ext/apex_src/tests/table_escaped_ltlt.md +0 -4
  292. data/ext/apex_ext/apex_src/tests/terminal_width_test.sh +0 -29
  293. data/ext/apex_ext/apex_src/tests/test-swift-package.sh +0 -14
  294. data/ext/apex_ext/apex_src/tests/test_basic.c +0 -74
  295. data/ext/apex_ext/apex_src/tests/test_bear_image_attrs.c +0 -301
  296. data/ext/apex_ext/apex_src/tests/test_cmark_callback.c +0 -189
  297. data/ext/apex_ext/apex_src/tests/test_concordance.tsv +0 -4
  298. data/ext/apex_ext/apex_src/tests/test_custom_plugins.c +0 -78
  299. data/ext/apex_ext/apex_src/tests/test_escaping_repro.c +0 -82
  300. data/ext/apex_ext/apex_src/tests/test_extensions.c +0 -3337
  301. data/ext/apex_ext/apex_src/tests/test_helpers.c +0 -183
  302. data/ext/apex_ext/apex_src/tests/test_helpers.h +0 -91
  303. data/ext/apex_ext/apex_src/tests/test_ial.c +0 -289
  304. data/ext/apex_ext/apex_src/tests/test_links.c +0 -418
  305. data/ext/apex_ext/apex_src/tests/test_marked_integration.c +0 -290
  306. data/ext/apex_ext/apex_src/tests/test_metadata.c +0 -1147
  307. data/ext/apex_ext/apex_src/tests/test_output.c +0 -2056
  308. data/ext/apex_ext/apex_src/tests/test_plugins.c +0 -219
  309. data/ext/apex_ext/apex_src/tests/test_refs.bib +0 -31
  310. data/ext/apex_ext/apex_src/tests/test_runner.c +0 -268
  311. data/ext/apex_ext/apex_src/tests/test_syntax_highlight.c +0 -198
  312. data/ext/apex_ext/apex_src/tests/test_tables.c +0 -1298
  313. data/ext/apex_ext/apex_src/tests/update_benchmarks.sh +0 -9
  314. data/ext/apex_ext/apex_src/tests/yaml_test.md +0 -13
  315. data/ext/apex_ext/apex_src/tests.rb +0 -39
  316. data/ext/apex_ext/apex_src/vendor/cmark-gfm/CMakeLists.txt +0 -48
  317. data/ext/apex_ext/apex_src/vendor/cmark-gfm/CheckFileOffsetBits.c +0 -14
  318. data/ext/apex_ext/apex_src/vendor/cmark-gfm/CheckFileOffsetBits.cmake +0 -43
  319. data/ext/apex_ext/apex_src/vendor/cmark-gfm/FindAsan.cmake +0 -74
  320. data/ext/apex_ext/apex_src/vendor/cmark-gfm/Makefile.nmake +0 -38
  321. data/ext/apex_ext/apex_src/vendor/cmark-gfm/README.md +0 -206
  322. data/ext/apex_ext/apex_src/vendor/cmark-gfm/api_test/CMakeLists.txt +0 -30
  323. data/ext/apex_ext/apex_src/vendor/cmark-gfm/api_test/cplusplus.cpp +0 -15
  324. data/ext/apex_ext/apex_src/vendor/cmark-gfm/api_test/cplusplus.h +0 -16
  325. data/ext/apex_ext/apex_src/vendor/cmark-gfm/api_test/harness.c +0 -111
  326. data/ext/apex_ext/apex_src/vendor/cmark-gfm/api_test/harness.h +0 -35
  327. data/ext/apex_ext/apex_src/vendor/cmark-gfm/api_test/main.c +0 -1169
  328. data/ext/apex_ext/apex_src/vendor/cmark-gfm/appveyor.yml +0 -21
  329. data/ext/apex_ext/apex_src/vendor/cmark-gfm/bench/samples/block-bq-flat.md +0 -16
  330. data/ext/apex_ext/apex_src/vendor/cmark-gfm/bench/samples/block-bq-nested.md +0 -13
  331. data/ext/apex_ext/apex_src/vendor/cmark-gfm/bench/samples/block-code.md +0 -11
  332. data/ext/apex_ext/apex_src/vendor/cmark-gfm/bench/samples/block-fences.md +0 -14
  333. data/ext/apex_ext/apex_src/vendor/cmark-gfm/bench/samples/block-heading.md +0 -9
  334. data/ext/apex_ext/apex_src/vendor/cmark-gfm/bench/samples/block-hr.md +0 -10
  335. data/ext/apex_ext/apex_src/vendor/cmark-gfm/bench/samples/block-html.md +0 -32
  336. data/ext/apex_ext/apex_src/vendor/cmark-gfm/bench/samples/block-lheading.md +0 -8
  337. data/ext/apex_ext/apex_src/vendor/cmark-gfm/bench/samples/block-list-flat.md +0 -67
  338. data/ext/apex_ext/apex_src/vendor/cmark-gfm/bench/samples/block-list-nested.md +0 -36
  339. data/ext/apex_ext/apex_src/vendor/cmark-gfm/bench/samples/block-ref-flat.md +0 -15
  340. data/ext/apex_ext/apex_src/vendor/cmark-gfm/bench/samples/block-ref-nested.md +0 -17
  341. data/ext/apex_ext/apex_src/vendor/cmark-gfm/bench/samples/inline-autolink.md +0 -14
  342. data/ext/apex_ext/apex_src/vendor/cmark-gfm/bench/samples/inline-backticks.md +0 -3
  343. data/ext/apex_ext/apex_src/vendor/cmark-gfm/bench/samples/inline-em-flat.md +0 -5
  344. data/ext/apex_ext/apex_src/vendor/cmark-gfm/bench/samples/inline-em-nested.md +0 -5
  345. data/ext/apex_ext/apex_src/vendor/cmark-gfm/bench/samples/inline-em-worst.md +0 -5
  346. data/ext/apex_ext/apex_src/vendor/cmark-gfm/bench/samples/inline-entity.md +0 -11
  347. data/ext/apex_ext/apex_src/vendor/cmark-gfm/bench/samples/inline-escape.md +0 -15
  348. data/ext/apex_ext/apex_src/vendor/cmark-gfm/bench/samples/inline-html.md +0 -44
  349. data/ext/apex_ext/apex_src/vendor/cmark-gfm/bench/samples/inline-links-flat.md +0 -23
  350. data/ext/apex_ext/apex_src/vendor/cmark-gfm/bench/samples/inline-links-nested.md +0 -13
  351. data/ext/apex_ext/apex_src/vendor/cmark-gfm/bench/samples/inline-newlines.md +0 -24
  352. data/ext/apex_ext/apex_src/vendor/cmark-gfm/bench/samples/lorem1.md +0 -13
  353. data/ext/apex_ext/apex_src/vendor/cmark-gfm/bench/samples/rawtabs.md +0 -18
  354. data/ext/apex_ext/apex_src/vendor/cmark-gfm/bench/statistics.py +0 -595
  355. data/ext/apex_ext/apex_src/vendor/cmark-gfm/bench/stats.py +0 -19
  356. data/ext/apex_ext/apex_src/vendor/cmark-gfm/benchmarks.md +0 -33
  357. data/ext/apex_ext/apex_src/vendor/cmark-gfm/changelog.txt +0 -1245
  358. data/ext/apex_ext/apex_src/vendor/cmark-gfm/data/CaseFolding.txt +0 -1495
  359. data/ext/apex_ext/apex_src/vendor/cmark-gfm/extensions/CMakeLists.txt +0 -119
  360. data/ext/apex_ext/apex_src/vendor/cmark-gfm/extensions/ext_scanners.re +0 -92
  361. data/ext/apex_ext/apex_src/vendor/cmark-gfm/fuzz/CMakeLists.txt +0 -22
  362. data/ext/apex_ext/apex_src/vendor/cmark-gfm/fuzz/README.md +0 -12
  363. data/ext/apex_ext/apex_src/vendor/cmark-gfm/fuzz/fuzz_quadratic.c +0 -91
  364. data/ext/apex_ext/apex_src/vendor/cmark-gfm/fuzz/fuzz_quadratic_brackets.c +0 -110
  365. data/ext/apex_ext/apex_src/vendor/cmark-gfm/fuzz/fuzzloop.sh +0 -28
  366. data/ext/apex_ext/apex_src/vendor/cmark-gfm/man/CMakeLists.txt +0 -10
  367. data/ext/apex_ext/apex_src/vendor/cmark-gfm/man/make_man_page.py +0 -133
  368. data/ext/apex_ext/apex_src/vendor/cmark-gfm/man/man1/cmark-gfm.1 +0 -78
  369. data/ext/apex_ext/apex_src/vendor/cmark-gfm/man/man3/cmark-gfm.3 +0 -1041
  370. data/ext/apex_ext/apex_src/vendor/cmark-gfm/nmake.bat +0 -1
  371. data/ext/apex_ext/apex_src/vendor/cmark-gfm/src/CMakeLists.txt +0 -230
  372. data/ext/apex_ext/apex_src/vendor/cmark-gfm/src/cmark-gfm_version.h.in +0 -7
  373. data/ext/apex_ext/apex_src/vendor/cmark-gfm/src/config.h.in +0 -76
  374. data/ext/apex_ext/apex_src/vendor/cmark-gfm/src/libcmark-gfm.pc.in +0 -10
  375. data/ext/apex_ext/apex_src/vendor/cmark-gfm/src/scanners.re +0 -365
  376. data/ext/apex_ext/apex_src/vendor/cmark-gfm/suppressions +0 -10
  377. data/ext/apex_ext/apex_src/vendor/cmark-gfm/test/CMakeLists.txt +0 -114
  378. data/ext/apex_ext/apex_src/vendor/cmark-gfm/test/__pycache__/cmark.cpython-314.pyc +0 -0
  379. data/ext/apex_ext/apex_src/vendor/cmark-gfm/test/__pycache__/normalize.cpython-314.pyc +0 -0
  380. data/ext/apex_ext/apex_src/vendor/cmark-gfm/test/afl_test_cases/test.md +0 -49
  381. data/ext/apex_ext/apex_src/vendor/cmark-gfm/test/cmark-fuzz.c +0 -58
  382. data/ext/apex_ext/apex_src/vendor/cmark-gfm/test/cmark.py +0 -105
  383. data/ext/apex_ext/apex_src/vendor/cmark-gfm/test/entity_tests.py +0 -67
  384. data/ext/apex_ext/apex_src/vendor/cmark-gfm/test/extensions-full-info-string.txt +0 -0
  385. data/ext/apex_ext/apex_src/vendor/cmark-gfm/test/extensions-table-prefer-style-attributes.txt +0 -38
  386. data/ext/apex_ext/apex_src/vendor/cmark-gfm/test/extensions.txt +0 -989
  387. data/ext/apex_ext/apex_src/vendor/cmark-gfm/test/fuzzing_dictionary +0 -67
  388. data/ext/apex_ext/apex_src/vendor/cmark-gfm/test/normalize.py +0 -194
  389. data/ext/apex_ext/apex_src/vendor/cmark-gfm/test/pathological_tests.py +0 -160
  390. data/ext/apex_ext/apex_src/vendor/cmark-gfm/test/regression.txt +0 -375
  391. data/ext/apex_ext/apex_src/vendor/cmark-gfm/test/roundtrip_tests.py +0 -50
  392. data/ext/apex_ext/apex_src/vendor/cmark-gfm/test/run-cmark-fuzz +0 -4
  393. data/ext/apex_ext/apex_src/vendor/cmark-gfm/test/smart_punct.txt +0 -177
  394. data/ext/apex_ext/apex_src/vendor/cmark-gfm/test/spec.txt +0 -10212
  395. data/ext/apex_ext/apex_src/vendor/cmark-gfm/test/spec_tests.py +0 -152
  396. data/ext/apex_ext/apex_src/vendor/cmark-gfm/toolchain-mingw32.cmake +0 -17
  397. data/ext/apex_ext/apex_src/vendor/cmark-gfm/tools/Dockerfile +0 -41
  398. data/ext/apex_ext/apex_src/vendor/cmark-gfm/tools/appveyor-build.bat +0 -13
  399. data/ext/apex_ext/apex_src/vendor/cmark-gfm/tools/make_entities_inc.py +0 -32
  400. data/ext/apex_ext/apex_src/vendor/cmark-gfm/tools/mkcasefold.pl +0 -22
  401. data/ext/apex_ext/apex_src/vendor/cmark-gfm/tools/xml2md.xsl +0 -319
  402. data/ext/apex_ext/apex_src/vendor/cmark-gfm/tools/xml2md_gfm.xsl +0 -80
  403. data/ext/apex_ext/apex_src/vendor/cmark-gfm/why-cmark-and-not-x.md +0 -104
  404. data/ext/apex_ext/apex_src/vendor/cmark-gfm/wrappers/wrapper.js +0 -6
  405. data/ext/apex_ext/apex_src/vendor/cmark-gfm/wrappers/wrapper.py +0 -37
  406. data/ext/apex_ext/apex_src/vendor/cmark-gfm/wrappers/wrapper.rb +0 -15
  407. data/ext/apex_ext/apex_src/vendor/cmark-gfm/wrappers/wrapper.rkt +0 -208
  408. data/ext/apex_ext/apex_src/vendor/cmark-gfm/wrappers/wrapper_ext.py +0 -109
  409. data/ext/apex_ext/apex_src/vendor/libyaml/CMakeLists.txt +0 -160
  410. data/ext/apex_ext/apex_src/vendor/libyaml/Changes +0 -372
  411. data/ext/apex_ext/apex_src/vendor/libyaml/License +0 -20
  412. data/ext/apex_ext/apex_src/vendor/libyaml/Makefile.am +0 -51
  413. data/ext/apex_ext/apex_src/vendor/libyaml/ReadMe.md +0 -46
  414. data/ext/apex_ext/apex_src/vendor/libyaml/announcement.msg +0 -89
  415. data/ext/apex_ext/apex_src/vendor/libyaml/bootstrap +0 -3
  416. data/ext/apex_ext/apex_src/vendor/libyaml/cmake/config.h.in +0 -4
  417. data/ext/apex_ext/apex_src/vendor/libyaml/configure.ac +0 -73
  418. data/ext/apex_ext/apex_src/vendor/libyaml/doc/doxygen.cfg +0 -222
  419. data/ext/apex_ext/apex_src/vendor/libyaml/docker/README.mkd +0 -17
  420. data/ext/apex_ext/apex_src/vendor/libyaml/docker/alpine-3.7 +0 -26
  421. data/ext/apex_ext/apex_src/vendor/libyaml/docker/fedora-25 +0 -26
  422. data/ext/apex_ext/apex_src/vendor/libyaml/docker/ubuntu-14.04 +0 -29
  423. data/ext/apex_ext/apex_src/vendor/libyaml/docker/ubuntu-16.04 +0 -24
  424. data/ext/apex_ext/apex_src/vendor/libyaml/examples/anchors.yaml +0 -10
  425. data/ext/apex_ext/apex_src/vendor/libyaml/examples/array.yaml +0 -2
  426. data/ext/apex_ext/apex_src/vendor/libyaml/examples/global-tag.yaml +0 -14
  427. data/ext/apex_ext/apex_src/vendor/libyaml/examples/json.yaml +0 -1
  428. data/ext/apex_ext/apex_src/vendor/libyaml/examples/mapping.yaml +0 -2
  429. data/ext/apex_ext/apex_src/vendor/libyaml/examples/numbers.yaml +0 -1
  430. data/ext/apex_ext/apex_src/vendor/libyaml/examples/strings.yaml +0 -7
  431. data/ext/apex_ext/apex_src/vendor/libyaml/examples/tags.yaml +0 -7
  432. data/ext/apex_ext/apex_src/vendor/libyaml/examples/yaml-version.yaml +0 -3
  433. data/ext/apex_ext/apex_src/vendor/libyaml/include/Makefile.am +0 -17
  434. data/ext/apex_ext/apex_src/vendor/libyaml/include/yaml.h +0 -1999
  435. data/ext/apex_ext/apex_src/vendor/libyaml/pkg/ReadMe.md +0 -77
  436. data/ext/apex_ext/apex_src/vendor/libyaml/pkg/docker/Dockerfile +0 -32
  437. data/ext/apex_ext/apex_src/vendor/libyaml/pkg/docker/output/ReadMe +0 -1
  438. data/ext/apex_ext/apex_src/vendor/libyaml/pkg/docker/scripts/libyaml-dist.sh +0 -23
  439. data/ext/apex_ext/apex_src/vendor/libyaml/regression-inputs/clusterfuzz-testcase-minimized-5607885063061504.yml +0 -1
  440. data/ext/apex_ext/apex_src/vendor/libyaml/src/Makefile.am +0 -4
  441. data/ext/apex_ext/apex_src/vendor/libyaml/src/api.c +0 -1393
  442. data/ext/apex_ext/apex_src/vendor/libyaml/src/dumper.c +0 -394
  443. data/ext/apex_ext/apex_src/vendor/libyaml/src/emitter.c +0 -2358
  444. data/ext/apex_ext/apex_src/vendor/libyaml/src/loader.c +0 -544
  445. data/ext/apex_ext/apex_src/vendor/libyaml/src/parser.c +0 -1416
  446. data/ext/apex_ext/apex_src/vendor/libyaml/src/reader.c +0 -469
  447. data/ext/apex_ext/apex_src/vendor/libyaml/src/scanner.c +0 -3598
  448. data/ext/apex_ext/apex_src/vendor/libyaml/src/writer.c +0 -141
  449. data/ext/apex_ext/apex_src/vendor/libyaml/src/yaml_private.h +0 -684
  450. data/ext/apex_ext/apex_src/vendor/libyaml/tests/CMakeLists.txt +0 -27
  451. data/ext/apex_ext/apex_src/vendor/libyaml/tests/Makefile.am +0 -9
  452. data/ext/apex_ext/apex_src/vendor/libyaml/tests/ReadMe.md +0 -63
  453. data/ext/apex_ext/apex_src/vendor/libyaml/tests/example-deconstructor-alt.c +0 -800
  454. data/ext/apex_ext/apex_src/vendor/libyaml/tests/example-deconstructor.c +0 -1127
  455. data/ext/apex_ext/apex_src/vendor/libyaml/tests/example-reformatter-alt.c +0 -217
  456. data/ext/apex_ext/apex_src/vendor/libyaml/tests/example-reformatter.c +0 -202
  457. data/ext/apex_ext/apex_src/vendor/libyaml/tests/run-all-tests.sh +0 -29
  458. data/ext/apex_ext/apex_src/vendor/libyaml/tests/run-dumper.c +0 -314
  459. data/ext/apex_ext/apex_src/vendor/libyaml/tests/run-emitter-test-suite.c +0 -290
  460. data/ext/apex_ext/apex_src/vendor/libyaml/tests/run-emitter.c +0 -327
  461. data/ext/apex_ext/apex_src/vendor/libyaml/tests/run-loader.c +0 -63
  462. data/ext/apex_ext/apex_src/vendor/libyaml/tests/run-parser-test-suite.c +0 -196
  463. data/ext/apex_ext/apex_src/vendor/libyaml/tests/run-parser.c +0 -88
  464. data/ext/apex_ext/apex_src/vendor/libyaml/tests/run-scanner.c +0 -63
  465. data/ext/apex_ext/apex_src/vendor/libyaml/tests/test-reader.c +0 -354
  466. data/ext/apex_ext/apex_src/vendor/libyaml/tests/test-version.c +0 -29
  467. data/ext/apex_ext/apex_src/vendor/libyaml/yaml-0.1.pc.in +0 -10
  468. data/ext/apex_ext/apex_src/vendor/libyaml/yamlConfig.cmake.in +0 -16
  469. data/ext/apex_ext/apex_src/xcode_build/CMakeScripts/ReRunCMake.make +0 -74
  470. data/ext/apex_ext/apex_src/xcode_build/CTestTestfile.cmake +0 -22
  471. data/ext/apex_ext/apex_src/xcode_build/Debug/Apex.framework/Versions/A/Apex +0 -0
  472. data/ext/apex_ext/apex_src/xcode_build/Debug/Apex.framework/Versions/A/Resources/Info.plist +0 -44
  473. data/ext/apex_ext/apex_src/xcode_build/Debug/Apex.framework/Versions/A/_CodeSignature/CodeResources +0 -128
  474. data/ext/apex_ext/apex_src/xcode_build/apex.xcodeproj/project.pbxproj +0 -5118
  475. data/ext/apex_ext/apex_src/xcode_build/apex.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings +0 -8
  476. data/ext/apex_ext/apex_src/xcode_build/apex.xcodeproj/project.xcworkspace/xcuserdata/ttscoff.xcuserdatad/UserInterfaceState.xcuserstate +0 -0
  477. data/ext/apex_ext/apex_src/xcode_build/apex.xcodeproj/project.xcworkspace/xcuserdata/ttscoff.xcuserdatad/WorkspaceSettings.xcsettings +0 -8
  478. data/ext/apex_ext/apex_src/xcode_build/apex.xcodeproj/xcuserdata/ttscoff.xcuserdatad/xcschemes/xcschememanagement.plist +0 -99
  479. data/ext/apex_ext/apex_src/xcode_build/cmake_install.cmake +0 -452
  480. data/ext/apex_ext/apex_src/xcode_build/vendor/cmark-gfm/CMakeScripts/ReRunCMake.make +0 -52
  481. data/ext/apex_ext/apex_src/xcode_build/vendor/cmark-gfm/cmake_install.cmake +0 -55
  482. data/ext/apex_ext/apex_src/xcode_build/vendor/cmark-gfm/cmark-gfm.xcodeproj/project.pbxproj +0 -2455
  483. data/ext/apex_ext/apex_src/xcode_build/vendor/cmark-gfm/cmark-gfm.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings +0 -8
  484. data/ext/apex_ext/apex_src/xcode_build/vendor/cmark-gfm/extensions/cmake_install.cmake +0 -171
  485. data/ext/apex_ext/apex_src/xcode_build/vendor/cmark-gfm/man/cmake_install.cmake +0 -55
  486. data/ext/apex_ext/apex_src/xcode_build/vendor/cmark-gfm/src/cmake_install.cmake +0 -220
  487. data/ext/apex_ext/apex_src/xcode_build/vendor/cmark-gfm/src/cmark-gfm_export.h +0 -43
  488. data/ext/apex_ext/apex_src/xcode_build/vendor/cmark-gfm/src/cmark-gfm_version.h +0 -7
  489. data/ext/apex_ext/apex_src/xcode_build/vendor/cmark-gfm/src/config.h +0 -76
  490. data/ext/apex_ext/apex_src/xcode_build/vendor/cmark-gfm/src/libcmark-gfm.pc +0 -10
@@ -1,338 +0,0 @@
1
- .\" Automatically generated by Pandoc 3.6.3
2
- .\"
3
- .TH "APEX" "1" "December 2025" ""
4
- .SH NAME
5
- apex \- Unified Markdown processor supporting CommonMark, GFM,
6
- MultiMarkdown, and Kramdown
7
- .SH SYNOPSIS
8
- \f[B]apex\f[R] [\f[I]options\f[R]] [\f[I]file\f[R]]
9
- .SH DESCRIPTION
10
- Apex is a unified Markdown processor that combines the best features
11
- from CommonMark, GitHub Flavored Markdown (GFM), MultiMarkdown,
12
- Kramdown, and Marked.
13
- One processor to rule them all.
14
- .PP
15
- If no file is specified, \f[B]apex\f[R] reads from stdin.
16
- .SH OPTIONS
17
- .SS Processing Modes
18
- .TP
19
- \f[B]\-m\f[R] \f[I]MODE\f[R], \f[B]\[en]mode\f[R] \f[I]MODE\f[R]
20
- Processor mode: \f[B]commonmark\f[R], \f[B]gfm\f[R], \f[B]mmd\f[R] (or
21
- \f[B]multimarkdown\f[R]), \f[B]kramdown\f[R], or \f[B]unified\f[R]
22
- (default).
23
- Each mode enables different features and syntax compatibility.
24
- .SS Input/Output
25
- .TP
26
- \f[B]\-o\f[R] \f[I]FILE\f[R], \f[B]\[en]output\f[R] \f[I]FILE\f[R]
27
- Write output to \f[I]FILE\f[R] instead of stdout.
28
- .TP
29
- \f[B]\-s\f[R], \f[B]\[en]standalone\f[R]
30
- Generate complete HTML document with \f[CR]<html>\f[R],
31
- \f[CR]<head>\f[R], and \f[CR]<body>\f[R] tags.
32
- .TP
33
- \f[B]\[en]style\f[R] \f[I]FILE\f[R]
34
- Link to CSS file in document head (requires \f[B]\[en]standalone\f[R]).
35
- .TP
36
- \f[B]\[en]title\f[R] \f[I]TITLE\f[R]
37
- Document title (requires \f[B]\[en]standalone\f[R], default:
38
- \[lq]Document\[rq]).
39
- .TP
40
- \f[B]\[en]pretty\f[R]
41
- Pretty\-print HTML with indentation and whitespace.
42
- .SS Feature Flags
43
- .TP
44
- \f[B]\[en]accept\f[R]
45
- Accept all Critic Markup changes (apply edits).
46
- .TP
47
- \f[B]\[en]reject\f[R]
48
- Reject all Critic Markup changes (revert edits).
49
- .TP
50
- \f[B]\[en]enable\-includes\f[R]
51
- Enable file inclusion.
52
- .TP
53
- \f[B]\[en]meta\-file\f[R] \f[I]FILE\f[R]
54
- Load metadata from an external file.
55
- Auto\-detects format: YAML (starts with \f[CR]\-\-\-\f[R]),
56
- MultiMarkdown (key: value pairs), or Pandoc (starts with \f[CR]%\f[R]).
57
- Metadata from the file is merged with document metadata, with document
58
- metadata taking precedence.
59
- .TP
60
- \f[B]\[en]meta\f[R] \f[I]KEY=VALUE\f[R]
61
- Set a metadata key\-value pair.
62
- Can be used multiple times.
63
- Supports comma\-separated pairs (e.g.,
64
- \f[CR]\-\-meta KEY1=value1,KEY2=value2\f[R]).
65
- Values can be quoted to include spaces and special characters.
66
- Command\-line metadata takes precedence over both file and document
67
- metadata.
68
- .TP
69
- \f[B]\[en]hardbreaks\f[R]
70
- Treat newlines as hard breaks.
71
- .TP
72
- \f[B]\[en]no\-footnotes\f[R]
73
- Disable footnote support.
74
- .TP
75
- \f[B]\[en]no\-math\f[R]
76
- Disable math support.
77
- .TP
78
- \f[B]\[en]no\-smart\f[R]
79
- Disable smart typography.
80
- .TP
81
- \f[B]\[en]no\-tables\f[R]
82
- Disable table support.
83
- .TP
84
- \f[B]\[en]no\-ids\f[R]
85
- Disable automatic header ID generation.
86
- .TP
87
- \f[B]\[en]header\-anchors\f[R]
88
- Generate \f[CR]<a>\f[R] anchor tags instead of header IDs.
89
- .TP
90
- \f[B]\[en]wikilinks\f[R], \f[B]\[en]no\-wikilinks\f[R]
91
- Enable wiki link syntax \f[CR][[PageName]]\f[R].
92
- Default: disabled.
93
- .SS Header ID Format
94
- .TP
95
- \f[B]\[en]id\-format\f[R] \f[I]FORMAT\f[R]
96
- Header ID format: \f[B]gfm\f[R] (default), \f[B]mmd\f[R], or
97
- \f[B]kramdown\f[R].
98
- Modes auto\-set format; use this to override in unified mode.
99
- .SS List Options
100
- .TP
101
- \f[B]\[en]alpha\-lists\f[R], \f[B]\[en]no\-alpha\-lists\f[R]
102
- Support alpha list markers (a., b., c.\ and A., B., C.).
103
- .TP
104
- \f[B]\[en]mixed\-lists\f[R], \f[B]\[en]no\-mixed\-lists\f[R]
105
- Allow mixed list markers at same level (inherit type from first item).
106
- .SS Table Options
107
- .TP
108
- \f[B]\[en]relaxed\-tables\f[R], \f[B]\[en]no\-relaxed\-tables\f[R]
109
- Enable relaxed table parsing (no separator rows required).
110
- Default: enabled in unified/kramdown modes, disabled in
111
- commonmark/gfm/multimarkdown modes.
112
- .SS HTML and Links
113
- .TP
114
- \f[B]\[en]unsafe\f[R], \f[B]\[en]no\-unsafe\f[R]
115
- Allow raw HTML in output.
116
- Default: true for unified/mmd/kramdown modes, false for commonmark/gfm
117
- modes.
118
- .TP
119
- \f[B]\[en]autolink\f[R], \f[B]\[en]no\-autolink\f[R]
120
- Enable autolinking of URLs and email addresses.
121
- Default: enabled in GFM, MultiMarkdown, Kramdown, and unified modes;
122
- disabled in CommonMark mode.
123
- .TP
124
- \f[B]\[en]obfuscate\-emails\f[R]
125
- Obfuscate email links and text using HTML entities (hex\-encoded).
126
- .SS Image Embedding
127
- .TP
128
- \f[B]\[en]embed\-images\f[R]
129
- Embed local images as base64 data URLs in HTML output.
130
- Only local images (file paths) are embedded; remote images (http://,
131
- https://) are not processed.
132
- Images are read from the filesystem and encoded as base64 data URLs
133
- (e.g., \f[CR]data:image/png;base64,...\f[R]).
134
- Relative paths are resolved using the base directory (see
135
- \f[B]\[en]base\-dir\f[R]).
136
- .SS Path Resolution
137
- .TP
138
- \f[B]\[en]base\-dir\f[R] \f[I]DIR\f[R]
139
- Base directory for resolving relative paths.
140
- Used for: \- Image embedding (with \f[B]\[en]embed\-images\f[R]) \- File
141
- includes/transclusions \- Relative path resolution when reading from
142
- stdin or when the working directory differs from the document location
143
- .RS
144
- .PP
145
- If not specified and reading from a file, the base directory is
146
- automatically set to the input file\[cq]s directory.
147
- When reading from stdin, this flag must be used to resolve relative
148
- paths.
149
- .RE
150
- .SS Superscript/Subscript
151
- .TP
152
- \f[B]\[en]sup\-sub\f[R], \f[B]\[en]no\-sup\-sub\f[R]
153
- Enable MultiMarkdown\-style superscript and subscript syntax.
154
- The \f[CR]\[ha]\f[R] character creates superscript for the text
155
- immediately following it (stops at space or punctuation).
156
- The \f[CR]\[ti]\f[R] character creates subscript when used within a
157
- word/identifier (e.g., \f[CR]H\[ti]2\[ti]O\f[R] creates H₂O).
158
- When tildes are at word boundaries (e.g., \f[CR]\[ti]text\[ti]\f[R]),
159
- they create underline instead.
160
- Default: enabled in unified and MultiMarkdown modes.
161
- .SS Citations and Bibliography
162
- .TP
163
- \f[B]\[en]bibliography\f[R] \f[I]FILE\f[R]
164
- Bibliography file in BibTeX, CSL JSON, or CSL YAML format.
165
- Can be specified multiple times to load multiple bibliography files.
166
- Citations are automatically enabled when this option is used.
167
- Bibliography can also be specified in document metadata.
168
- .TP
169
- \f[B]\[en]csl\f[R] \f[I]FILE\f[R]
170
- Citation Style Language (CSL) file for formatting citations and
171
- bibliography.
172
- Citations are automatically enabled when this option is used.
173
- CSL file can also be specified in document metadata.
174
- .TP
175
- \f[B]\[en]no\-bibliography\f[R]
176
- Suppress bibliography output even when citations are present.
177
- .TP
178
- \f[B]\[en]link\-citations\f[R]
179
- Link citations to their corresponding bibliography entries.
180
- Citations will include \f[CR]href\f[R] attributes pointing to the
181
- bibliography entry.
182
- .TP
183
- \f[B]\[en]show\-tooltips\f[R]
184
- Show tooltips on citations when hovering (requires CSS support).
185
- .PP
186
- Citation syntax is supported in MultiMarkdown and unified modes: \-
187
- Pandoc: \f[CR][\[at]key]\f[R], \f[CR][\[at]key1; \[at]key2]\f[R],
188
- \f[CR]\[at]key\f[R] \- MultiMarkdown: \f[CR][#key]\f[R] \- mmark:
189
- \f[CR][\[at]RFC1234]\f[R]
190
- .PP
191
- Bibliography is inserted at the \f[CR]<!\-\- REFERENCES \-\->\f[R]
192
- marker or appended to the end of the document if no marker is found.
193
- .SS General Options
194
- .TP
195
- \f[B]\-h\f[R], \f[B]\[en]help\f[R]
196
- Show help message and exit.
197
- .TP
198
- \f[B]\-v\f[R], \f[B]\[en]version\f[R]
199
- Show version information and exit.
200
- .SH EXAMPLES
201
- Process a markdown file:
202
- .IP
203
- .EX
204
- apex input.md
205
- .EE
206
- .PP
207
- Output to a file:
208
- .IP
209
- .EX
210
- apex input.md \-o output.html
211
- .EE
212
- .PP
213
- Generate standalone HTML document:
214
- .IP
215
- .EX
216
- apex input.md \-\-standalone \-\-title \[dq]My Document\[dq]
217
- .EE
218
- .PP
219
- Pretty\-print HTML output:
220
- .IP
221
- .EX
222
- apex input.md \-\-pretty
223
- .EE
224
- .PP
225
- Use GFM mode:
226
- .IP
227
- .EX
228
- apex input.md \-\-mode gfm
229
- .EE
230
- .PP
231
- Process document with citations and bibliography:
232
- .IP
233
- .EX
234
- apex document.md \-\-bibliography refs.bib
235
- .EE
236
- .PP
237
- Use metadata to specify bibliography:
238
- .IP
239
- .EX
240
- apex document.md
241
- .EE
242
- .PP
243
- (With bibliography specified in YAML front matter)
244
- .PP
245
- Use Kramdown mode with relaxed tables:
246
- .IP
247
- .EX
248
- apex input.md \-\-mode kramdown
249
- .EE
250
- .PP
251
- Process from stdin:
252
- .IP
253
- .EX
254
- echo \[dq]# Hello\[dq] | apex
255
- .EE
256
- .SH PROCESSING MODES
257
- .TP
258
- \f[B]commonmark\f[R]
259
- Pure CommonMark specification.
260
- Minimal features, maximum compatibility.
261
- .TP
262
- \f[B]gfm\f[R]
263
- GitHub Flavored Markdown.
264
- Includes tables, strikethrough, task lists, autolinks, and more.
265
- .TP
266
- \f[B]mmd\f[R], \f[B]multimarkdown\f[R]
267
- MultiMarkdown compatibility.
268
- Includes metadata, definition lists, footnotes, and more.
269
- .TP
270
- \f[B]kramdown\f[R]
271
- Kramdown compatibility.
272
- Includes relaxed tables, IAL (Inline Attribute Lists), and more.
273
- .TP
274
- \f[B]unified\f[R] (default)
275
- All features enabled.
276
- Combines features from all modes.
277
- .SH FEATURES
278
- Apex supports a wide range of Markdown extensions:
279
- .IP \[bu] 2
280
- \f[B]Tables\f[R]: GFM\-style tables with alignment
281
- .IP \[bu] 2
282
- \f[B]Footnotes\f[R]: Reference\-style footnotes
283
- .IP \[bu] 2
284
- \f[B]Math\f[R]: Inline (\f[CR]$...$\f[R]) and display
285
- (\f[CR]$$...$$\f[R]) math with LaTeX
286
- .IP \[bu] 2
287
- \f[B]Wiki Links\f[R]: \f[CR][[Page]]\f[R], \f[CR][[Page|Display]]\f[R],
288
- \f[CR][[Page#Section]]\f[R]
289
- .IP \[bu] 2
290
- \f[B]Critic Markup\f[R]: All 5 types ({++add++}, {\[en]del\[en]},
291
- {[STRIKEOUT:sub]}, {==mark==}, {>>comment<<})
292
- .IP \[bu] 2
293
- \f[B]Smart Typography\f[R]: Smart quotes, dashes, ellipsis
294
- .IP \[bu] 2
295
- \f[B]Definition Lists\f[R]: MultiMarkdown\-style definition lists
296
- .IP \[bu] 2
297
- \f[B]Task Lists\f[R]: GFM\-style task lists
298
- .IP \[bu] 2
299
- \f[B]Metadata\f[R]: YAML front matter, MultiMarkdown metadata, Pandoc
300
- title blocks
301
- .IP \[bu] 2
302
- \f[B]Metadata Transforms\f[R]: Transform metadata values with
303
- \f[CR][%key:transform]\f[R] syntax (case conversion, string
304
- manipulation, regex replacement, date formatting, etc.)
305
- .IP \[bu] 2
306
- \f[B]Header IDs\f[R]: Automatic or manual header IDs with multiple
307
- format options
308
- .IP \[bu] 2
309
- \f[B]Relaxed Tables\f[R]: Support for tables without separator rows
310
- (Kramdown\-style)
311
- .IP \[bu] 2
312
- \f[B]Superscript/Subscript\f[R]: MultiMarkdown\-style superscript
313
- (\f[CR]\[ha]text\f[R]) and subscript (\f[CR]\[ti]text\[ti]\f[R] within
314
- words) syntax.
315
- Subscript uses paired tildes within word boundaries (e.g.,
316
- \f[CR]H\[ti]2\[ti]O\f[R]), while tildes at word boundaries create
317
- underline
318
- .IP \[bu] 2
319
- \f[B]Image Embedding\f[R]: Embed local images as base64 data URLs with
320
- \f[CR]\-\-embed\-images\f[R] flag
321
- .SH SEE ALSO
322
- For complete documentation, see the \c
323
- .UR https://github.com/ttscoff/apex/wiki
324
- Apex Wiki
325
- .UE \c
326
- \&.
327
- .SH AUTHOR
328
- Brett Terpstra
329
- .SH COPYRIGHT
330
- Copyright (c) 2025 Brett Terpstra.
331
- Licensed under MIT License.
332
- .SH BUGS
333
- Report bugs at \c
334
- .UR https://github.com/ttscoff/apex/issues
335
- .UE \c
336
- \&.
337
- .SH AUTHORS
338
- Brett Terpstra.
@@ -1,316 +0,0 @@
1
- /**
2
- * Apex.swift
3
- * Swift API wrapper for Apex Markdown processor
4
- * Provides idiomatic Swift interface over the Objective-C API
5
- */
6
-
7
- import Foundation
8
- @_exported import ApexObjC
9
- @_exported import ApexC
10
-
11
- #if canImport(AppKit)
12
- import AppKit
13
- #elseif canImport(UIKit)
14
- import UIKit
15
- #endif
16
-
17
- /// Apex processor mode
18
- /// Type-safe enum for processor modes
19
- public enum ApexMode: String, CaseIterable {
20
- case commonmark = "commonmark"
21
- case gfm = "gfm"
22
- case multimarkdown = "multimarkdown"
23
- case kramdown = "kramdown"
24
- case unified = "unified"
25
- case quarto = "quarto"
26
-
27
- /// Convert to NSString for Objective-C API
28
- internal var nsString: NSString {
29
- return self.rawValue as NSString
30
- }
31
- }
32
-
33
- /// Preferred document type when building NSAttributedString from Markdown.
34
- public enum ApexAttributedSource: String {
35
- /// Use Apex RTF output (NSRTFTextDocumentType). Preferred for AppKit fidelity.
36
- case rtf
37
- /// Use Apex HTML output (NSHTMLTextDocumentType).
38
- case html
39
- }
40
-
41
- /// Apex conversion options
42
- /// Swift struct for configuring conversion options
43
- public struct ApexOptions {
44
- /// Pretty-print HTML with indentation
45
- public var pretty: Bool = false
46
-
47
- /// Generate complete HTML5 document
48
- public var standalone: Bool = false
49
-
50
- /// Path to CSS file to link in document head
51
- public var stylesheet: String? = nil
52
-
53
- /// Document title
54
- public var title: String? = nil
55
-
56
- /// Treat newlines as hard breaks
57
- public var hardBreaks: Bool = false
58
-
59
- /// Generate IDs for headers
60
- public var generateHeaderIDs: Bool = false
61
-
62
- /// Allow raw HTML in output
63
- public var unsafe: Bool = false
64
-
65
- /// Generate anchor tags instead of header IDs
66
- public var headerAnchors: Bool = false
67
-
68
- /// Obfuscate email links using HTML entities
69
- public var obfuscateEmails: Bool = false
70
-
71
- /// Embed local images as base64 data URLs
72
- public var embedImages: Bool = false
73
-
74
- /// Enable external plugin processing during conversion.
75
- public var enablePlugins: Bool = false
76
-
77
- /// Autolink bare URLs and emails. `nil` leaves the mode default unchanged.
78
- public var enableAutolink: Bool? = nil
79
-
80
- /// Output format: "html" (default) or "rtf"
81
- public var outputFormat: String? = nil
82
-
83
- /// Default initializer
84
- public init() {}
85
-
86
- /// Default options
87
- public static let `default` = ApexOptions()
88
-
89
- /// Convert to NSDictionary for Objective-C API
90
- internal func toDictionary() -> [String: Any] {
91
- var dict: [String: Any] = [:]
92
-
93
- if pretty {
94
- dict["pretty"] = true
95
- }
96
- if standalone {
97
- dict["standalone"] = true
98
- }
99
- if let stylesheet = stylesheet {
100
- dict["stylesheet"] = stylesheet
101
- }
102
- if let title = title {
103
- dict["title"] = title
104
- }
105
- if hardBreaks {
106
- dict["hardBreaks"] = true
107
- }
108
- if generateHeaderIDs {
109
- dict["generateHeaderIDs"] = true
110
- }
111
- if unsafe {
112
- dict["unsafe"] = true
113
- }
114
- if headerAnchors {
115
- dict["headerAnchors"] = true
116
- }
117
- if obfuscateEmails {
118
- dict["obfuscateEmails"] = true
119
- }
120
- if embedImages {
121
- dict["embedImages"] = true
122
- }
123
- if enablePlugins {
124
- dict["enablePlugins"] = true
125
- }
126
- if let enableAutolink {
127
- dict["enableAutolink"] = enableAutolink
128
- }
129
- if let outputFormat = outputFormat {
130
- dict["outputFormat"] = outputFormat
131
- }
132
-
133
- return dict
134
- }
135
- }
136
-
137
- /// String extension for Apex Markdown conversion
138
- /// Provides idiomatic Swift API
139
- extension String {
140
- /**
141
- * Convert Markdown to HTML using Apex in unified mode
142
- */
143
- public func apexHTML() -> String {
144
- return (self as NSString).apexHTML() as String
145
- }
146
-
147
- /**
148
- * Convert Markdown to HTML using Apex with specific mode
149
- */
150
- public func apexHTML(mode: ApexMode) -> String {
151
- return (self as NSString).apexHTML(withMode: mode.rawValue) as String
152
- }
153
-
154
- /**
155
- * Convert Markdown to HTML using Apex with mode and options
156
- */
157
- public func apexHTML(mode: ApexMode = .unified, options: ApexOptions = .default) -> String {
158
- let dict = options.toDictionary()
159
- if dict.isEmpty {
160
- // No options, use simple method
161
- return (self as NSString).apexHTML(withMode: mode.rawValue)
162
- } else {
163
- // Use dictionary-based method
164
- return NSString.convert(
165
- withApex: self, mode: mode.rawValue, options: dict)
166
- }
167
- }
168
-
169
- /**
170
- * Convert Markdown to HTML using Apex with standalone document options
171
- */
172
- public func apexHTML(
173
- mode: ApexMode = .unified, standalone: Bool, stylesheet: String? = nil, title: String? = nil
174
- ) -> String {
175
- return NSString.convert(
176
- withApex: self,
177
- mode: mode.rawValue,
178
- standalone: standalone,
179
- stylesheet: stylesheet,
180
- title: title
181
- )
182
- }
183
-
184
- /**
185
- * Convert Markdown to HTML using Apex with pretty printing
186
- * Convenience method for pretty-printing only
187
- */
188
- public func apexHTML(pretty: Bool, mode: ApexMode = .unified) -> String {
189
- return NSString.convert(withApex: self, mode: mode.rawValue, pretty: pretty)
190
- }
191
-
192
- /**
193
- * Convert Markdown to HTML using Apex with common options
194
- */
195
- public func apexHTML(
196
- mode: ApexMode = .unified,
197
- generateHeaderIDs: Bool,
198
- hardBreaks: Bool,
199
- pretty: Bool
200
- ) -> String {
201
- return NSString.convert(
202
- withApex: self,
203
- mode: mode.rawValue,
204
- generateHeaderIDs: generateHeaderIDs,
205
- hardBreaks: hardBreaks,
206
- pretty: pretty
207
- )
208
- }
209
-
210
- /**
211
- * Convert Markdown to RTF using Apex.
212
- */
213
- public func apexRTF(mode: ApexMode = .unified, options: ApexOptions = .default) -> String {
214
- var opts = options
215
- opts.outputFormat = "rtf"
216
- return NSString.convert(withApex: self, mode: mode.rawValue, options: opts.toDictionary())
217
- }
218
-
219
- #if canImport(AppKit) || canImport(UIKit)
220
- /**
221
- * Convert Markdown to NSAttributedString.
222
- * Defaults to the RTF pipeline; pass source: .html for the HTML importer.
223
- */
224
- public func apexAttributedString(
225
- mode: ApexMode = .unified,
226
- options: ApexOptions = .default,
227
- source: ApexAttributedSource = .rtf
228
- ) -> NSAttributedString? {
229
- let dict = options.toDictionary()
230
- let useHTML = (source == .html)
231
- return (self as NSString).apexAttributedString(
232
- withMode: mode.rawValue, options: dict.isEmpty ? nil : dict, usingHTML: useHTML)
233
- }
234
- #endif
235
- }
236
-
237
- /// Static Apex converter
238
- /// Provides static methods for conversion
239
- public struct Apex {
240
- /// Apex processor version string (e.g. "0.1.89")
241
- public static var version: String {
242
- return NSString.apexVersion() as String
243
- }
244
-
245
- /**
246
- * Convert Markdown to HTML using Apex in unified mode
247
- */
248
- public static func convert(_ markdown: String) -> String {
249
- return markdown.apexHTML()
250
- }
251
-
252
- /**
253
- * Convert Markdown to HTML using Apex with specific mode
254
- */
255
- public static func convert(_ markdown: String, mode: ApexMode) -> String {
256
- return markdown.apexHTML(mode: mode)
257
- }
258
-
259
- /**
260
- * Convert Markdown to HTML using Apex with mode and options
261
- */
262
- public static func convert(
263
- _ markdown: String, mode: ApexMode = .unified, options: ApexOptions = .default
264
- ) -> String {
265
- return markdown.apexHTML(mode: mode, options: options)
266
- }
267
-
268
- /**
269
- * Convert Markdown to HTML using Apex with source file URL for includes
270
- */
271
- public static func convert(
272
- _ markdown: String, mode: ApexMode = .unified, sourceURL: URL, enableAutolink: Bool = true
273
- ) -> String {
274
- return NSString.convert(
275
- withApex: markdown,
276
- mode: mode.rawValue,
277
- sourceURL: sourceURL,
278
- enableAutolink: enableAutolink
279
- )
280
- }
281
-
282
- /**
283
- * Convert Markdown to HTML using Apex with standalone document options
284
- */
285
- public static func convert(
286
- _ markdown: String, mode: ApexMode = .unified, standalone: Bool, stylesheet: String? = nil,
287
- title: String? = nil
288
- ) -> String {
289
- return markdown.apexHTML(
290
- mode: mode, standalone: standalone, stylesheet: stylesheet, title: title)
291
- }
292
-
293
- /**
294
- * Convert Markdown to HTML using Apex with pretty printing
295
- */
296
- public static func convert(_ markdown: String, pretty: Bool, mode: ApexMode = .unified)
297
- -> String
298
- {
299
- return markdown.apexHTML(pretty: pretty, mode: mode)
300
- }
301
-
302
- /**
303
- * Convert Markdown to HTML using Apex with common options
304
- */
305
- public static func convert(
306
- _ markdown: String,
307
- mode: ApexMode = .unified,
308
- generateHeaderIDs: Bool,
309
- hardBreaks: Bool,
310
- pretty: Bool
311
- ) -> String {
312
- return markdown.apexHTML(
313
- mode: mode, generateHeaderIDs: generateHeaderIDs, hardBreaks: hardBreaks, pretty: pretty
314
- )
315
- }
316
- }