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,183 +0,0 @@
1
- /**
2
- * Test Helper Functions Implementation
3
- */
4
-
5
- #include "test_helpers.h"
6
- #include <string.h>
7
- #include <stdarg.h>
8
-
9
- /* Test statistics (shared across all test files) */
10
- int tests_run = 0;
11
- int tests_passed = 0;
12
- int tests_failed = 0;
13
-
14
- /* When non-zero, only failing tests (and their context) are printed */
15
- int errors_only_output = 0;
16
-
17
- /* When non-zero, suppress all output except final count */
18
- int badge_mode = 0;
19
-
20
- /**
21
- * Assert that string contains substring
22
- */
23
- bool assert_contains(const char *haystack, const char *needle, const char *test_name) {
24
- tests_run++;
25
-
26
- if (strstr(haystack, needle) != NULL) {
27
- tests_passed++;
28
- if (!errors_only_output) {
29
- printf(COLOR_GREEN "✓" COLOR_RESET " %s\n", test_name);
30
- }
31
- return true;
32
- } else {
33
- tests_failed++;
34
- printf(COLOR_RED "✗" COLOR_RESET " %s\n", test_name);
35
- printf(" Looking for: %s\n", needle);
36
- printf(" In: %s\n", haystack);
37
- return false;
38
- }
39
- }
40
-
41
- /**
42
- * Assert that string does NOT contain substring
43
- */
44
- bool assert_not_contains(const char *haystack, const char *needle, const char *test_name) {
45
- tests_run++;
46
-
47
- if (strstr(haystack, needle) == NULL) {
48
- tests_passed++;
49
- if (!errors_only_output) {
50
- printf(COLOR_GREEN "✓" COLOR_RESET " %s\n", test_name);
51
- }
52
- return true;
53
- } else {
54
- tests_failed++;
55
- printf(COLOR_RED "✗" COLOR_RESET " %s\n", test_name);
56
- printf(" Should NOT contain: %s\n", needle);
57
- printf(" But found in: %s\n", haystack);
58
- return false;
59
- }
60
- }
61
-
62
- /**
63
- * Assert that a boolean option is set correctly
64
- */
65
- bool assert_option_bool(bool actual, bool expected, const char *test_name) {
66
- tests_run++;
67
- if (actual == expected) {
68
- tests_passed++;
69
- if (!errors_only_output) {
70
- printf(COLOR_GREEN "✓" COLOR_RESET " %s\n", test_name);
71
- }
72
- return true;
73
- } else {
74
- tests_failed++;
75
- printf(COLOR_RED "✗" COLOR_RESET " %s\n", test_name);
76
- printf(" Expected: %s, Got: %s\n", expected ? "true" : "false", actual ? "true" : "false");
77
- return false;
78
- }
79
- }
80
-
81
- /**
82
- * Assert that a string option matches
83
- */
84
- bool assert_option_string(const char *actual, const char *expected, const char *test_name) {
85
- tests_run++;
86
- if (actual && expected && strcmp(actual, expected) == 0) {
87
- tests_passed++;
88
- if (!errors_only_output) {
89
- printf(COLOR_GREEN "✓" COLOR_RESET " %s\n", test_name);
90
- }
91
- return true;
92
- } else {
93
- tests_failed++;
94
- printf(COLOR_RED "✗" COLOR_RESET " %s\n", test_name);
95
- printf(" Expected: %s, Got: %s\n", expected ? expected : "(null)", actual ? actual : "(null)");
96
- return false;
97
- }
98
- }
99
-
100
- /**
101
- * Report a test result (for manual test cases)
102
- * Updates test statistics and prints output based on errors_only_output flag
103
- */
104
- void test_result(bool passed, const char *test_name) {
105
- tests_run++;
106
- if (passed) {
107
- tests_passed++;
108
- if (!errors_only_output) {
109
- printf(COLOR_GREEN "✓" COLOR_RESET " %s\n", test_name);
110
- }
111
- } else {
112
- tests_failed++;
113
- printf(COLOR_RED "✗" COLOR_RESET " %s\n", test_name);
114
- }
115
- }
116
-
117
- /**
118
- * Report a test result with formatted message (for manual test cases)
119
- * Updates test statistics and prints output based on errors_only_output flag
120
- */
121
- void test_resultf(bool passed, const char *format, ...) {
122
- tests_run++;
123
- if (passed) {
124
- tests_passed++;
125
- if (!errors_only_output) {
126
- va_list args;
127
- va_start(args, format);
128
- printf(COLOR_GREEN "✓" COLOR_RESET " ");
129
- vprintf(format, args);
130
- printf("\n");
131
- va_end(args);
132
- }
133
- } else {
134
- tests_failed++;
135
- va_list args;
136
- va_start(args, format);
137
- printf(COLOR_RED "✗" COLOR_RESET " ");
138
- vprintf(format, args);
139
- printf("\n");
140
- va_end(args);
141
- }
142
- }
143
-
144
- /**
145
- * Start tracking a test suite
146
- * Returns the current failure count to track if this suite has failures
147
- */
148
- int suite_start(void) {
149
- return tests_failed;
150
- }
151
-
152
- /**
153
- * End tracking a test suite and check if it had failures
154
- */
155
- bool suite_end(int suite_start_failures) {
156
- return tests_failed > suite_start_failures;
157
- }
158
-
159
- /**
160
- * Print suite title conditionally based on mode
161
- * @param title the suite title to print
162
- * @param suite_had_failures true if the suite had any failures (only used in errors-only mode)
163
- * @param at_start true if called at start of suite, false if at end
164
- */
165
- void print_suite_title(const char *title, bool suite_had_failures, bool at_start) {
166
- /* Never print in badge mode */
167
- if (badge_mode) {
168
- return;
169
- }
170
-
171
- /* In errors-only mode: only print at end if suite had failures */
172
- if (errors_only_output) {
173
- if (at_start) {
174
- return; /* Don't print at start in errors-only mode */
175
- }
176
- if (!suite_had_failures) {
177
- return; /* Don't print at end if no failures */
178
- }
179
- }
180
-
181
- /* Print in normal mode (at start), or in errors-only mode (at end if failures) */
182
- printf("\n=== %s ===\n", title);
183
- }
@@ -1,91 +0,0 @@
1
- /**
2
- * Test Helper Functions
3
- * Shared test infrastructure for Apex test suite
4
- */
5
-
6
- #ifndef TEST_HELPERS_H
7
- #define TEST_HELPERS_H
8
-
9
- #include <stdbool.h>
10
- #include <stdio.h>
11
-
12
- /* Test statistics (shared across all test files) */
13
- extern int tests_run;
14
- extern int tests_passed;
15
- extern int tests_failed;
16
-
17
- /* When non-zero, only failing tests (and their context) are printed */
18
- extern int errors_only_output;
19
-
20
- /* When non-zero, suppress all output except final count */
21
- extern int badge_mode;
22
-
23
- /* Color codes for terminal output */
24
- #define COLOR_GREEN "\033[0;32m"
25
- #define COLOR_RED "\033[0;31m"
26
- #define COLOR_RESET "\033[0m"
27
-
28
- /**
29
- * Assert that string contains substring
30
- */
31
- bool assert_contains(const char *haystack, const char *needle, const char *test_name);
32
-
33
- /**
34
- * Assert that string does NOT contain substring
35
- */
36
- bool assert_not_contains(const char *haystack, const char *needle, const char *test_name);
37
-
38
- /**
39
- * Assert that a boolean option is set correctly
40
- */
41
- bool assert_option_bool(bool actual, bool expected, const char *test_name);
42
-
43
- /**
44
- * Assert that a string option matches
45
- */
46
- bool assert_option_string(const char *actual, const char *expected, const char *test_name);
47
-
48
- /**
49
- * Report a test result (for manual test cases)
50
- * Updates test statistics and prints output based on errors_only_output flag
51
- * @param passed true if test passed, false if failed
52
- * @param test_name the name/description of the test
53
- */
54
- void test_result(bool passed, const char *test_name);
55
-
56
- /**
57
- * Report a test result with formatted message (for manual test cases)
58
- * Updates test statistics and prints output based on errors_only_output flag
59
- * @param passed true if test passed, false if failed
60
- * @param format printf-style format string
61
- * @param ... arguments for format string
62
- */
63
- void test_resultf(bool passed, const char *format, ...);
64
-
65
- /**
66
- * Start tracking a test suite
67
- * Saves current test counts to track suite-level pass/fail
68
- * @return suite ID (current tests_failed count)
69
- */
70
- int suite_start(void);
71
-
72
- /**
73
- * End tracking a test suite and check if it had failures
74
- * @param suite_start_failures the tests_failed count when suite started
75
- * @return true if suite had any failures, false if all passed
76
- */
77
- bool suite_end(int suite_start_failures);
78
-
79
- /**
80
- * Print suite title conditionally based on mode
81
- * - Always prints in normal mode (at start)
82
- * - Never prints in badge mode
83
- * - In errors-only mode: only prints at end if suite had failures
84
- * @param title the suite title to print
85
- * @param suite_had_failures true if the suite had any failures (only used in errors-only mode at end)
86
- * @param at_start true if called at start of suite, false if at end
87
- */
88
- void print_suite_title(const char *title, bool suite_had_failures, bool at_start);
89
-
90
- #endif /* TEST_HELPERS_H */
91
-
@@ -1,289 +0,0 @@
1
- /**
2
- * Ial Tests
3
- */
4
-
5
- #include "test_helpers.h"
6
- #include "apex/apex.h"
7
- #include <string.h>
8
-
9
- void test_ial(void) {
10
- int suite_failures = suite_start();
11
- print_suite_title("IAL Tests", false, true);
12
-
13
- apex_options opts = apex_options_for_mode(APEX_MODE_KRAMDOWN);
14
- char *html;
15
-
16
- /* Test block IAL with ID */
17
- html = apex_markdown_to_html("# Header\n{: #custom-id}", 24, &opts);
18
- assert_contains(html, "id=\"custom-id\"", "Block IAL ID");
19
- apex_free_string(html);
20
-
21
- /* Test block IAL with class (requires blank line in standard Kramdown) */
22
- html = apex_markdown_to_html("Paragraph\n\n{: .important}", 25, &opts);
23
- assert_contains(html, "class=\"important\"", "Block IAL class");
24
- apex_free_string(html);
25
-
26
- /* Test block IAL with multiple classes */
27
- html = apex_markdown_to_html("Text\n\n{: .class1 .class2}", 26, &opts);
28
- assert_contains(html, "class=\"class1 class2\"", "Block IAL multiple classes");
29
- apex_free_string(html);
30
-
31
- /* Test block IAL with ID and class */
32
- html = apex_markdown_to_html("## Header 2\n{: #myid .myclass}", 31, &opts);
33
- assert_contains(html, "id=\"myid\"", "Block IAL ID with class");
34
- assert_contains(html, "class=\"myclass\"", "Block IAL class with ID");
35
- apex_free_string(html);
36
-
37
- /* Test block IAL with custom attributes - skip for now (complex quoting) */
38
- // html = apex_markdown_to_html("Para\n{: data-value=\"test\"}", 27, &opts);
39
- // assert_contains(html, "data-value=\"test\"", "Block IAL custom attribute");
40
- // apex_free_string(html);
41
-
42
- /* Test ALD (Attribute List Definition) - needs debugging */
43
- // const char *ald_doc = "{:ref: #special .highlight}\n\nParagraph 1\n{:ref}\n\nParagraph 2\n{:ref}";
44
- // html = apex_markdown_to_html(ald_doc, strlen(ald_doc), &opts);
45
- // assert_contains(html, "id=\"special\"", "ALD reference applied");
46
- // assert_contains(html, "class=\"highlight\"", "ALD class applied");
47
- // apex_free_string(html);
48
-
49
- /* Test list item IAL - needs debugging */
50
- // html = apex_markdown_to_html("- Item 1\n{: .special}\n- Item 2", 31, &opts);
51
- // assert_contains(html, "class=\"special\"", "List item IAL");
52
- // apex_free_string(html);
53
-
54
- /* Test inline IAL on links */
55
- const char *link_ial = "Here's a [link](https://example.com){:.button} with text after.";
56
- html = apex_markdown_to_html(link_ial, strlen(link_ial), &opts);
57
- assert_contains(html, "class=\"button\"", "Inline IAL on link");
58
- assert_contains(html, "with text after", "Text after IAL preserved");
59
- assert_not_contains(html, "{:.button}", "IAL removed from output");
60
- apex_free_string(html);
61
-
62
- /* Test inline IAL on links with duplicate URLs */
63
- const char *dup_urls = "First [link](https://example.com) and [second](https://example.com){:.special} link.";
64
- html = apex_markdown_to_html(dup_urls, strlen(dup_urls), &opts);
65
- assert_contains(html, "<a href=\"https://example.com\">link</a>", "First link without class");
66
- assert_contains(html, "class=\"special\"", "Second link with class");
67
- assert_not_contains(html, "{:.special}", "IAL removed from output");
68
- apex_free_string(html);
69
-
70
- /* Test Pandoc-style IAL (no colon) for block-level elements */
71
- html = apex_markdown_to_html("# Header\n{#pandoc-id .pandoc-class}", 35, &opts);
72
- assert_contains(html, "id=\"pandoc-id\"", "Pandoc-style block IAL ID");
73
- assert_contains(html, "class=\"pandoc-class\"", "Pandoc-style block IAL class");
74
- apex_free_string(html);
75
-
76
- /* Test Pandoc-style IAL for paragraphs */
77
- html = apex_markdown_to_html("Paragraph text\n\n{#para-id .para-class}", 40, &opts);
78
- assert_contains(html, "id=\"para-id\"", "Pandoc-style paragraph IAL ID");
79
- assert_contains(html, "class=\"para-class\"", "Pandoc-style paragraph IAL class");
80
- apex_free_string(html);
81
-
82
- /* Test Pandoc-style IAL for inline elements */
83
- const char *pandoc_inline = "Here's a [link](url){#link-id .link-class} with Pandoc IAL.";
84
- html = apex_markdown_to_html(pandoc_inline, strlen(pandoc_inline), &opts);
85
- assert_contains(html, "id=\"link-id\"", "Pandoc-style inline IAL ID");
86
- assert_contains(html, "class=\"link-class\"", "Pandoc-style inline IAL class");
87
- apex_free_string(html);
88
-
89
- /* Test Pandoc-style IAL with multiple classes */
90
- html = apex_markdown_to_html("## Heading\n{#heading-id .class1 .class2}", 40, &opts);
91
- assert_contains(html, "id=\"heading-id\"", "Pandoc-style IAL with multiple classes - ID");
92
- assert_contains(html, "class=\"class1 class2\"", "Pandoc-style IAL with multiple classes");
93
- apex_free_string(html);
94
-
95
- /* Test inline IAL on strong/emph */
96
- html = apex_markdown_to_html("This is **bold**{:.bold-style} text.", 40, &opts);
97
- assert_contains(html, "class=\"bold-style\"", "Inline IAL on strong");
98
- assert_contains(html, "<strong", "Strong tag present");
99
- assert_not_contains(html, "{:.bold-style}", "IAL removed from output");
100
- apex_free_string(html);
101
-
102
- html = apex_markdown_to_html("This is *italic*{:.italic-style} text.", 42, &opts);
103
- assert_contains(html, "class=\"italic-style\"", "Inline IAL on emphasis");
104
- assert_contains(html, "<em", "Em tag present");
105
- assert_not_contains(html, "{:.italic-style}", "IAL removed from output");
106
- apex_free_string(html);
107
-
108
- /* Test inline IAL on code */
109
- html = apex_markdown_to_html("Use `code`{:.code-inline} here.", 34, &opts);
110
- assert_contains(html, "class=\"code-inline\"", "Inline IAL on code");
111
- assert_contains(html, "<code", "Code tag present");
112
- assert_not_contains(html, "{:.code-inline}", "IAL removed from output");
113
- apex_free_string(html);
114
-
115
- /* Test multiple inline IALs in same paragraph */
116
- const char *multi_ial = "[link](url){:.link} and **bold**{:.bold} and *em*{:.em}.";
117
- html = apex_markdown_to_html(multi_ial, strlen(multi_ial), &opts);
118
- assert_contains(html, "class=\"link\"", "First IAL applied");
119
- assert_contains(html, "class=\"bold\"", "Second IAL applied");
120
- assert_contains(html, "class=\"em\"", "Third IAL applied");
121
- apex_free_string(html);
122
-
123
- /* Test inline IAL with multiple classes */
124
- const char *multi_class = "[link](url){:.primary .large .button} text.";
125
- html = apex_markdown_to_html(multi_class, strlen(multi_class), &opts);
126
- assert_contains(html, "class=\"primary large button\"", "Multiple classes in inline IAL");
127
- apex_free_string(html);
128
-
129
- /* Test inline IAL with ID and classes */
130
- const char *id_class = "**bold**{:#bold-id .highlight .important}";
131
- html = apex_markdown_to_html(id_class, strlen(id_class), &opts);
132
- assert_contains(html, "id=\"bold-id\"", "Inline IAL with ID");
133
- assert_contains(html, "class=\"highlight important\"", "Inline IAL ID with classes");
134
- apex_free_string(html);
135
-
136
- /* Test inline IAL at end of paragraph (should still work) */
137
- const char *end_ial = "End with [link](url){:.end-link}.";
138
- html = apex_markdown_to_html(end_ial, strlen(end_ial), &opts);
139
- assert_contains(html, "class=\"end-link\"", "Inline IAL at paragraph end");
140
- apex_free_string(html);
141
-
142
- /* Test inline IAL with whitespace (spaces around IAL) */
143
- const char *spaced_ial = "[link](url){: .spaced-class } text.";
144
- html = apex_markdown_to_html(spaced_ial, strlen(spaced_ial), &opts);
145
- assert_contains(html, "class=\"spaced-class\"", "Inline IAL with spaces");
146
- apex_free_string(html);
147
-
148
- /* Test block IAL on paragraph when IAL is on same line (no blank line) - span IAL path */
149
- const char *same_line_ial = "Lead paragraph text.\n{: .lead }";
150
- html = apex_markdown_to_html(same_line_ial, strlen(same_line_ial), &opts);
151
- assert_contains(html, "class=\"lead\"", "Paragraph IAL same line (no blank)");
152
- assert_not_contains(html, "{: .lead }", "IAL removed from output");
153
- apex_free_string(html);
154
-
155
- /* Test block IAL with raw div (simulates fenced div output: two paragraphs, second is IAL) */
156
- apex_options opts_unified = apex_options_for_mode(APEX_MODE_UNIFIED);
157
- const char *raw_div_ial = "<div class=\"section\">\n\nOpening paragraph here.\n\n{: .lead }\n\n</div>";
158
- html = apex_markdown_to_html(raw_div_ial, strlen(raw_div_ial), &opts_unified);
159
- assert_contains(html, "class=\"lead\"", "Block IAL with raw div: .lead on paragraph");
160
- assert_not_contains(html, "<p>{: .lead }</p>", "Block IAL with raw div: IAL paragraph removed");
161
- apex_free_string(html);
162
-
163
- /* Test block IAL inside fenced div (Unified mode: divs + IAL preprocess) */
164
- const char *fenced_ial = "::: section\nOpening paragraph here.\n{: .lead }\n:::";
165
- html = apex_markdown_to_html(fenced_ial, strlen(fenced_ial), &opts_unified);
166
- assert_contains(html, "class=\"section\"", "Fenced div IAL: section div present");
167
- assert_contains(html, "class=\"lead\"", "Fenced div IAL: .lead on paragraph");
168
- assert_not_contains(html, "<p>{: .lead }</p>", "Fenced div IAL: IAL paragraph removed");
169
- apex_free_string(html);
170
-
171
- bool had_failures = suite_end(suite_failures);
172
- print_suite_title("IAL Tests", had_failures, false);
173
- }
174
-
175
- /**
176
- * Test bracketed spans [text]{IAL}
177
- */
178
-
179
- void test_bracketed_spans(void) {
180
- int suite_failures = suite_start();
181
- print_suite_title("Bracketed Spans Tests", false, true);
182
-
183
- apex_options opts = apex_options_default();
184
- opts.enable_spans = true;
185
- char *html;
186
-
187
- /* Test basic bracketed span with class */
188
- const char *basic_span = "This is [some text]{.class} with a span.";
189
- html = apex_markdown_to_html(basic_span, strlen(basic_span), &opts);
190
- assert_contains(html, "<span", "Bracketed span creates span tag");
191
- assert_contains(html, "class=\"class\"", "Bracketed span has class");
192
- assert_contains(html, "some text", "Bracketed span contains text");
193
- assert_not_contains(html, "[some text]{.class}", "Bracketed span syntax removed");
194
- apex_free_string(html);
195
-
196
- /* Test bracketed span with ID */
197
- const char *span_with_id = "This is [text]{#my-id} with an ID.";
198
- html = apex_markdown_to_html(span_with_id, strlen(span_with_id), &opts);
199
- assert_contains(html, "id=\"my-id\"", "Bracketed span has ID");
200
- apex_free_string(html);
201
-
202
- /* Test bracketed span with multiple attributes */
203
- const char *span_multi = "This is [text]{#id .class1 .class2 key=\"value\"} with multiple attributes.";
204
- html = apex_markdown_to_html(span_multi, strlen(span_multi), &opts);
205
- assert_contains(html, "id=\"id\"", "Bracketed span has ID");
206
- assert_contains(html, "class=\"class1 class2\"", "Bracketed span has multiple classes");
207
- assert_contains(html, "key=\"value\"", "Bracketed span has custom attribute");
208
- apex_free_string(html);
209
-
210
- /* Test bracketed span with markdown inside */
211
- const char *span_markdown = "This is [some *text*]{.highlight} with markdown.";
212
- html = apex_markdown_to_html(span_markdown, strlen(span_markdown), &opts);
213
- assert_contains(html, "<em>text</em>", "Bracketed span processes markdown inside");
214
- assert_contains(html, "class=\"highlight\"", "Bracketed span with markdown has class");
215
- apex_free_string(html);
216
-
217
- /* Test reference link takes precedence over span */
218
- const char *ref_link = "This is [a link] that should be a link.\n\n[a link]: https://example.com";
219
- html = apex_markdown_to_html(ref_link, strlen(ref_link), &opts);
220
- assert_contains(html, "<a href", "Reference link creates link tag");
221
- assert_contains(html, "https://example.com", "Reference link has correct URL");
222
- assert_not_contains(html, "<span", "Reference link does not create span");
223
- apex_free_string(html);
224
-
225
- /* Test reference link with different ID */
226
- const char *ref_link2 = "This is [another link][ref] that should be a link.\n\n[ref]: https://example.org";
227
- html = apex_markdown_to_html(ref_link2, strlen(ref_link2), &opts);
228
- assert_contains(html, "<a href", "Reference link with ID creates link tag");
229
- assert_contains(html, "https://example.org", "Reference link with ID has correct URL");
230
- assert_not_contains(html, "<span", "Reference link with ID does not create span");
231
- apex_free_string(html);
232
-
233
- /* Test mixed reference link and span */
234
- const char *mixed = "This has [a link][ref] and [a span]{.span-class}.\n\n[ref]: https://example.com";
235
- html = apex_markdown_to_html(mixed, strlen(mixed), &opts);
236
- assert_contains(html, "<a href", "Mixed content has link");
237
- assert_contains(html, "<span", "Mixed content has span");
238
- assert_contains(html, "class=\"span-class\"", "Mixed content span has class");
239
- apex_free_string(html);
240
-
241
- /* Test bracketed span with bold markdown */
242
- const char *span_bold = "This is [**bold text**]{.bold} in a span.";
243
- html = apex_markdown_to_html(span_bold, strlen(span_bold), &opts);
244
- assert_contains(html, "<strong>bold text</strong>", "Bracketed span processes bold markdown");
245
- apex_free_string(html);
246
-
247
- /* Test bracketed span with code markdown */
248
- const char *span_code = "This is [`code`]{.code-style} in a span.";
249
- html = apex_markdown_to_html(span_code, strlen(span_code), &opts);
250
- assert_contains(html, "<code>code</code>", "Bracketed span processes code markdown");
251
- apex_free_string(html);
252
-
253
- /* Test bracketed span with nested brackets */
254
- const char *span_nested = "This is [Text with [nested brackets]]{.nested} that should work.";
255
- html = apex_markdown_to_html(span_nested, strlen(span_nested), &opts);
256
- assert_contains(html, "<span", "Bracketed span with nested brackets creates span");
257
- assert_contains(html, "class=\"nested\"", "Bracketed span with nested brackets has class");
258
- assert_contains(html, "Text with [nested brackets]", "Bracketed span with nested brackets contains full text");
259
- assert_not_contains(html, "[Text with [nested brackets]]{.nested}", "Bracketed span syntax removed");
260
- apex_free_string(html);
261
-
262
- /* Class-only span must not produce <spanclass=...> (space before class attribute) */
263
- const char *class_only = "[smallcaps text]{.smallcaps}";
264
- html = apex_markdown_to_html(class_only, strlen(class_only), &opts);
265
- assert_contains(html, "<span class=\"smallcaps\">", "Class-only bracketed span has valid class attribute");
266
- assert_not_contains(html, "<spanclass", "Class-only bracketed span does not merge tag and class");
267
- apex_free_string(html);
268
-
269
- /* Test that spans are disabled when flag is off */
270
- apex_options no_spans = apex_options_default();
271
- no_spans.enable_spans = false;
272
- const char *span_disabled = "This is [text]{.class} that should NOT be a span.";
273
- html = apex_markdown_to_html(span_disabled, strlen(span_disabled), &no_spans);
274
- /* When spans are disabled, [text]{.class} should remain as-is or be treated differently */
275
- /* For now, we'll just check that it doesn't create a span when disabled */
276
- if (strstr(html, "<span") == NULL) {
277
- test_result(true, "Bracketed spans disabled when flag is off");
278
- } else {
279
- test_result(false, "Bracketed spans incorrectly enabled when flag is off");
280
- }
281
- apex_free_string(html);
282
-
283
- bool had_failures = suite_end(suite_failures);
284
- print_suite_title("Bracketed Spans Tests", had_failures, false);
285
- }
286
-
287
- /**
288
- * Test definition lists
289
- */