apex-ruby 1.0.18 → 1.0.20

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 (207) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +17 -3
  3. data/ext/apex_ext/apex_ext.c +260 -91
  4. data/ext/apex_ext/apex_src/CHANGELOG.md +440 -0
  5. data/ext/apex_ext/apex_src/CMakeLists.txt +15 -1
  6. data/ext/apex_ext/apex_src/Formula/apex.rb +7 -2
  7. data/ext/apex_ext/apex_src/Package.swift +15 -4
  8. data/ext/apex_ext/apex_src/README.md +94 -35
  9. data/ext/apex_ext/apex_src/VERSION +1 -1
  10. data/ext/apex_ext/apex_src/apex-debug.log +4 -0
  11. data/ext/apex_ext/apex_src/apex.code-workspace +38 -0
  12. data/ext/apex_ext/apex_src/apex.taskpaper +12 -0
  13. data/ext/apex_ext/apex_src/apex_deflist_debug.log +25 -0
  14. data/ext/apex_ext/apex_src/buildnotes.md +1435 -0
  15. data/ext/apex_ext/apex_src/cli/main.c +262 -33
  16. data/ext/apex_ext/apex_src/debug.log +7 -0
  17. data/ext/apex_ext/apex_src/docs/CITATIONS_EXAMPLES.md +274 -0
  18. data/ext/apex_ext/apex_src/docs/CITATIONS_IMPLEMENTATION_PLAN.md +749 -0
  19. data/ext/apex_ext/apex_src/docs/CITATIONS_PLAN.md +744 -0
  20. data/ext/apex_ext/apex_src/docs/INDEX_IMPLEMENTATION_ANALYSIS.md +382 -0
  21. data/ext/apex_ext/apex_src/docs/plans/2025-02-27-man-page-output-implementation.md +351 -0
  22. data/ext/apex_ext/apex_src/docs/superpowers/plans/2026-07-12-toc-output-format.md +745 -0
  23. data/ext/apex_ext/apex_src/docs/superpowers/plans/2026-07-18-bear-image-attributes.md +829 -0
  24. data/ext/apex_ext/apex_src/docs/superpowers/plans/2026-07-19-apex-node-npm.md +1148 -0
  25. data/ext/apex_ext/apex_src/docs/superpowers/specs/2026-07-12-toc-output-format-design.md +161 -0
  26. data/ext/apex_ext/apex_src/docs/superpowers/specs/2026-07-18-bear-image-attributes-design.md +184 -0
  27. data/ext/apex_ext/apex_src/docs/superpowers/specs/2026-07-19-apex-node-npm-design.md +211 -0
  28. data/ext/apex_ext/apex_src/documentation/app-settings-table.md +67 -0
  29. data/ext/apex_ext/apex_src/documentation/app-transformed/Citations.md +340 -0
  30. data/ext/apex_ext/apex_src/documentation/app-transformed/Credits.md +11 -0
  31. data/ext/apex_ext/apex_src/documentation/app-transformed/Header-IDs.md +234 -0
  32. data/ext/apex_ext/apex_src/documentation/app-transformed/Inline-Attribute-Lists.md +516 -0
  33. data/ext/apex_ext/apex_src/documentation/app-transformed/Metadata-Transforms.md +461 -0
  34. data/ext/apex_ext/apex_src/documentation/app-transformed/Modes.md +193 -0
  35. data/ext/apex_ext/apex_src/documentation/app-transformed/Multi-File-Documents.md +201 -0
  36. data/ext/apex_ext/apex_src/documentation/app-transformed/Plugins.md +678 -0
  37. data/ext/apex_ext/apex_src/documentation/app-transformed/Syntax.md +1367 -0
  38. data/ext/apex_ext/apex_src/documentation/docsets/Apex Command Line Options.cheatsheet.txt +6 -0
  39. data/ext/apex_ext/apex_src/documentation/docsets/Apex.docset/Contents/Resources/Documents/C-API.html +774 -300
  40. data/ext/apex_ext/apex_src/documentation/docsets/Apex.docset/Contents/Resources/Documents/Callouts.html +1194 -0
  41. data/ext/apex_ext/apex_src/documentation/docsets/Apex.docset/Contents/Resources/Documents/Citations.html +416 -216
  42. data/ext/apex_ext/apex_src/documentation/docsets/Apex.docset/Contents/Resources/Documents/Command-Line-Options.html +3544 -1094
  43. data/ext/apex_ext/apex_src/documentation/docsets/Apex.docset/Contents/Resources/Documents/Configuration.html +371 -97
  44. data/ext/apex_ext/apex_src/documentation/docsets/Apex.docset/Contents/Resources/Documents/Credits.html +153 -23
  45. data/ext/apex_ext/apex_src/documentation/docsets/Apex.docset/Contents/Resources/Documents/Examples.html +358 -124
  46. data/ext/apex_ext/apex_src/documentation/docsets/Apex.docset/Contents/Resources/Documents/Filters.html +1656 -0
  47. data/ext/apex_ext/apex_src/documentation/docsets/Apex.docset/Contents/Resources/Documents/Generating-Man-Pages.html +1226 -0
  48. data/ext/apex_ext/apex_src/documentation/docsets/Apex.docset/Contents/Resources/Documents/Getting-Started.html +201 -56
  49. data/ext/apex_ext/apex_src/documentation/docsets/Apex.docset/Contents/Resources/Documents/Header-IDs.html +279 -109
  50. data/ext/apex_ext/apex_src/documentation/docsets/Apex.docset/Contents/Resources/Documents/Home.html +200 -53
  51. data/ext/apex_ext/apex_src/documentation/docsets/Apex.docset/Contents/Resources/Documents/Indices.html +2327 -0
  52. data/ext/apex_ext/apex_src/documentation/docsets/Apex.docset/Contents/Resources/Documents/Inline-Attribute-Lists.html +690 -271
  53. data/ext/apex_ext/apex_src/documentation/docsets/Apex.docset/Contents/Resources/Documents/Installation.html +201 -55
  54. data/ext/apex_ext/apex_src/documentation/docsets/Apex.docset/Contents/Resources/Documents/Limitations-and-Roadmap.html +238 -68
  55. data/ext/apex_ext/apex_src/documentation/docsets/Apex.docset/Contents/Resources/Documents/Metadata-Transforms.html +421 -221
  56. data/ext/apex_ext/apex_src/documentation/docsets/Apex.docset/Contents/Resources/Documents/Modes.html +340 -78
  57. data/ext/apex_ext/apex_src/documentation/docsets/Apex.docset/Contents/Resources/Documents/Multi-File-Documents.html +251 -86
  58. data/ext/apex_ext/apex_src/documentation/docsets/Apex.docset/Contents/Resources/Documents/Multi-Format-Images.html +1362 -0
  59. data/ext/apex_ext/apex_src/documentation/docsets/Apex.docset/Contents/Resources/Documents/Pandoc-Integration.html +277 -90
  60. data/ext/apex_ext/apex_src/documentation/docsets/Apex.docset/Contents/Resources/Documents/Plugins.html +673 -346
  61. data/ext/apex_ext/apex_src/documentation/docsets/Apex.docset/Contents/Resources/Documents/Quarto-Mode.html +1405 -0
  62. data/ext/apex_ext/apex_src/documentation/docsets/Apex.docset/Contents/Resources/Documents/Rendering-Markdown-In-Terminal.html +1902 -0
  63. data/ext/apex_ext/apex_src/documentation/docsets/Apex.docset/Contents/Resources/Documents/Syntax.html +1939 -1698
  64. data/ext/apex_ext/apex_src/documentation/docsets/Apex.docset/Contents/Resources/Documents/Tables.html +1781 -0
  65. data/ext/apex_ext/apex_src/documentation/docsets/Apex.docset/Contents/Resources/Documents/Troubleshooting.html +315 -140
  66. data/ext/apex_ext/apex_src/documentation/docsets/Apex.docset/Contents/Resources/Documents/Usage.html +307 -113
  67. data/ext/apex_ext/apex_src/documentation/docsets/Apex.docset/Contents/Resources/Documents/Using-Apex-with-Jekyll.html +1132 -0
  68. data/ext/apex_ext/apex_src/documentation/docsets/Apex.docset/Contents/Resources/Documents/Writing-Tests.html +1754 -0
  69. data/ext/apex_ext/apex_src/documentation/docsets/Apex.docset/Contents/Resources/Documents/Xcode-Integration.html +872 -376
  70. data/ext/apex_ext/apex_src/documentation/docsets/Apex.docset/Contents/Resources/docSet.dsidx +0 -0
  71. data/ext/apex_ext/apex_src/documentation/docsets/Apex.docset/Contents/Resources/optimizedIndex.dsidx +0 -0
  72. data/ext/apex_ext/apex_src/documentation/html/apex-app-docs.html +8746 -0
  73. data/ext/apex_ext/apex_src/documentation/shared_styles.css +20 -15
  74. data/ext/apex_ext/apex_src/documentation/transform_for_app.md +55 -0
  75. data/ext/apex_ext/apex_src/escaping-repro.md +103 -0
  76. data/ext/apex_ext/apex_src/examples/quick-actions/Markdown to RTF.workflow/Contents/Info.plist +8 -0
  77. data/ext/apex_ext/apex_src/examples/quick-actions/Markdown to RTF.workflow/Contents/QuickLook/Preview.png +0 -0
  78. data/ext/apex_ext/apex_src/examples/quick-actions/Markdown to RTF.workflow/Contents/document.wflow +547 -0
  79. data/ext/apex_ext/apex_src/examples/quick-actions/Markdown-to-RTF.workflow.zip +0 -0
  80. data/ext/apex_ext/apex_src/examples/quick-actions/README.md +33 -0
  81. data/ext/apex_ext/apex_src/include/apex/apex.h +92 -6
  82. data/ext/apex_ext/apex_src/include/apex/ast_rtf.h +23 -0
  83. data/ext/apex_ext/apex_src/include/apex/ast_terminal.h +6 -0
  84. data/ext/apex_ext/apex_src/include/apex/module.modulemap +5 -0
  85. data/ext/apex_ext/apex_src/include/apex/plugins.h +105 -0
  86. data/ext/apex_ext/apex_src/include/apexc.h +1 -0
  87. data/ext/apex_ext/apex_src/man/apex.1 +82 -78
  88. data/ext/apex_ext/apex_src/man/apex.1.md +81 -4
  89. data/ext/apex_ext/apex_src/objc/Apex.swift +73 -0
  90. data/ext/apex_ext/apex_src/objc/ApexPlugins.swift +79 -0
  91. data/ext/apex_ext/apex_src/objc/NSString+Apex.h +83 -5
  92. data/ext/apex_ext/apex_src/objc/NSString+Apex.m +244 -1
  93. data/ext/apex_ext/apex_src/objc/NSString+ApexPlugins.h +76 -0
  94. data/ext/apex_ext/apex_src/objc/NSString+ApexPlugins.m +169 -0
  95. data/ext/apex_ext/apex_src/output.html +87 -0
  96. data/ext/apex_ext/apex_src/plans/quarto-mode.md +442 -0
  97. data/ext/apex_ext/apex_src/src/_README.md +85 -32
  98. data/ext/apex_ext/apex_src/src/apex.c +770 -200
  99. data/ext/apex_ext/apex_src/src/ast_rtf.c +848 -0
  100. data/ext/apex_ext/apex_src/src/ast_terminal.c +184 -7
  101. data/ext/apex_ext/apex_src/src/extensions/abbreviations.c +10 -3
  102. data/ext/apex_ext/apex_src/src/extensions/advanced_tables.c +7 -11
  103. data/ext/apex_ext/apex_src/src/extensions/bear_image_attrs.c +467 -0
  104. data/ext/apex_ext/apex_src/src/extensions/bear_image_attrs.h +27 -0
  105. data/ext/apex_ext/apex_src/src/extensions/callouts.c +400 -4
  106. data/ext/apex_ext/apex_src/src/extensions/callouts.h +15 -5
  107. data/ext/apex_ext/apex_src/src/extensions/citations.c +26 -5
  108. data/ext/apex_ext/apex_src/src/extensions/code_fence_attrs.c +632 -0
  109. data/ext/apex_ext/apex_src/src/extensions/code_fence_attrs.h +22 -0
  110. data/ext/apex_ext/apex_src/src/extensions/concordance.c +632 -0
  111. data/ext/apex_ext/apex_src/src/extensions/definition_list.c +129 -15
  112. data/ext/apex_ext/apex_src/src/extensions/grid_tables.c +1050 -121
  113. data/ext/apex_ext/apex_src/src/extensions/html_markdown.c +569 -16
  114. data/ext/apex_ext/apex_src/src/extensions/ial.c +502 -52
  115. data/ext/apex_ext/apex_src/src/extensions/ial.h +2 -1
  116. data/ext/apex_ext/apex_src/src/extensions/includes.c +532 -33
  117. data/ext/apex_ext/apex_src/src/extensions/includes.h +7 -1
  118. data/ext/apex_ext/apex_src/src/extensions/index.c +1427 -140
  119. data/ext/apex_ext/apex_src/src/extensions/index.h +28 -0
  120. data/ext/apex_ext/apex_src/src/extensions/metadata.c +200 -161
  121. data/ext/apex_ext/apex_src/src/extensions/quarto_diagrams.c +251 -0
  122. data/ext/apex_ext/apex_src/src/extensions/quarto_diagrams.h +22 -0
  123. data/ext/apex_ext/apex_src/src/extensions/quarto_lists.c +624 -0
  124. data/ext/apex_ext/apex_src/src/extensions/quarto_lists.h +35 -0
  125. data/ext/apex_ext/apex_src/src/extensions/quarto_polish.c +264 -0
  126. data/ext/apex_ext/apex_src/src/extensions/quarto_polish.h +23 -0
  127. data/ext/apex_ext/apex_src/src/extensions/quarto_shortcodes.c +307 -0
  128. data/ext/apex_ext/apex_src/src/extensions/quarto_shortcodes.h +21 -0
  129. data/ext/apex_ext/apex_src/src/extensions/raw_content.c +351 -0
  130. data/ext/apex_ext/apex_src/src/extensions/raw_content.h +20 -0
  131. data/ext/apex_ext/apex_src/src/extensions/relaxed_tables.c +117 -3
  132. data/ext/apex_ext/apex_src/src/extensions/special_markers.c +53 -0
  133. data/ext/apex_ext/apex_src/src/extensions/syntax_highlight.c +23 -1
  134. data/ext/apex_ext/apex_src/src/extensions/table_html_postprocess.c +83 -92
  135. data/ext/apex_ext/apex_src/src/extensions/toc.c +446 -25
  136. data/ext/apex_ext/apex_src/src/extensions/toc.h +26 -1
  137. data/ext/apex_ext/apex_src/src/extensions/wiki_links.c +28 -0
  138. data/ext/apex_ext/apex_src/src/html_renderer.c +387 -17
  139. data/ext/apex_ext/apex_src/src/plugin_catalog.c +517 -0
  140. data/ext/apex_ext/apex_src/src/plugins_remote.c +88 -14
  141. data/ext/apex_ext/apex_src/src/plugins_remote.h +34 -0
  142. data/ext/apex_ext/apex_src/src/pretty_html.c +6 -1
  143. data/ext/apex_ext/apex_src/tests/fixtures/comprehensive_test.md +21 -0
  144. data/ext/apex_ext/apex_src/tests/fixtures/images/bear_image_attributes.md +10 -0
  145. data/ext/apex_ext/apex_src/tests/fixtures/includes/sections.md +19 -0
  146. data/ext/apex_ext/apex_src/tests/fixtures/includes/sections.txt +11 -0
  147. data/ext/apex_ext/apex_src/tests/fixtures/minimal_pb.md +2 -0
  148. data/ext/apex_ext/apex_src/tests/fixtures/obsidian-callouts.md +46 -0
  149. data/ext/apex_ext/apex_src/tests/fixtures/pagebreak_html_repro.md +5 -0
  150. data/ext/apex_ext/apex_src/tests/fixtures/python-callouts.md +47 -0
  151. data/ext/apex_ext/apex_src/tests/fixtures/quarto/callouts.md +3 -0
  152. data/ext/apex_ext/apex_src/tests/fixtures/quarto/code-attrs.md +3 -0
  153. data/ext/apex_ext/apex_src/tests/fixtures/quarto/diagrams.md +8 -0
  154. data/ext/apex_ext/apex_src/tests/fixtures/quarto/lists.md +19 -0
  155. data/ext/apex_ext/apex_src/tests/fixtures/quarto/raw-content.md +5 -0
  156. data/ext/apex_ext/apex_src/tests/fixtures/quarto/shortcodes.md +7 -0
  157. data/ext/apex_ext/apex_src/tests/fixtures/quarto/smoke.md +81 -0
  158. data/ext/apex_ext/apex_src/tests/fixtures/quarto/spans.md +5 -0
  159. data/ext/apex_ext/apex_src/tests/fixtures/quarto-callouts.md +47 -0
  160. data/ext/apex_ext/apex_src/tests/fixtures/speed.md +192 -0
  161. data/ext/apex_ext/apex_src/tests/fixtures/tables/grid-tables.md +37 -0
  162. data/ext/apex_ext/apex_src/tests/paginate_cli_test.sh +16 -0
  163. data/ext/apex_ext/apex_src/tests/test_bear_image_attrs.c +301 -0
  164. data/ext/apex_ext/apex_src/tests/test_concordance.tsv +4 -0
  165. data/ext/apex_ext/apex_src/tests/test_escaping_repro.c +82 -0
  166. data/ext/apex_ext/apex_src/tests/test_extensions.c +821 -1
  167. data/ext/apex_ext/apex_src/tests/test_ial.c +7 -0
  168. data/ext/apex_ext/apex_src/tests/test_marked_integration.c +25 -0
  169. data/ext/apex_ext/apex_src/tests/test_metadata.c +129 -0
  170. data/ext/apex_ext/apex_src/tests/test_output.c +568 -2
  171. data/ext/apex_ext/apex_src/tests/test_runner.c +11 -0
  172. data/ext/apex_ext/apex_src/tests/test_tables.c +420 -0
  173. data/ext/apex_ext/apex_src/vendor/cmark-gfm/CMakeLists.txt +1 -1
  174. data/ext/apex_ext/apex_src/vendor/cmark-gfm/extensions/autolink.c +77 -1
  175. data/ext/apex_ext/apex_src/vendor/cmark-gfm/extensions/table.c +135 -5
  176. data/ext/apex_ext/apex_src/vendor/cmark-gfm/src/blocks.c +56 -1
  177. data/ext/apex_ext/apex_src/vendor/cmark-gfm/src/config.h +38 -0
  178. data/ext/apex_ext/apex_src/vendor/cmark-gfm/src/main.c +1 -1
  179. data/ext/apex_ext/apex_src/vendor/cmark-gfm/test/__pycache__/cmark.cpython-314.pyc +0 -0
  180. data/ext/apex_ext/apex_src/vendor/cmark-gfm/test/__pycache__/normalize.cpython-314.pyc +0 -0
  181. data/ext/apex_ext/apex_src/vendor/cmark-gfm/test/extensions.txt +69 -0
  182. data/ext/apex_ext/apex_src/xcode_build/CMakeScripts/ReRunCMake.make +74 -0
  183. data/ext/apex_ext/apex_src/xcode_build/CTestTestfile.cmake +22 -0
  184. data/ext/apex_ext/apex_src/xcode_build/Debug/Apex.framework/Versions/A/Apex +0 -0
  185. data/ext/apex_ext/apex_src/xcode_build/Debug/Apex.framework/Versions/A/Resources/Info.plist +44 -0
  186. data/ext/apex_ext/apex_src/xcode_build/Debug/Apex.framework/Versions/A/_CodeSignature/CodeResources +128 -0
  187. data/ext/apex_ext/apex_src/xcode_build/apex.xcodeproj/project.pbxproj +5118 -0
  188. data/ext/apex_ext/apex_src/xcode_build/apex.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings +8 -0
  189. data/ext/apex_ext/apex_src/xcode_build/apex.xcodeproj/project.xcworkspace/xcuserdata/ttscoff.xcuserdatad/UserInterfaceState.xcuserstate +0 -0
  190. data/ext/apex_ext/apex_src/xcode_build/apex.xcodeproj/project.xcworkspace/xcuserdata/ttscoff.xcuserdatad/WorkspaceSettings.xcsettings +8 -0
  191. data/ext/apex_ext/apex_src/xcode_build/apex.xcodeproj/xcuserdata/ttscoff.xcuserdatad/xcschemes/xcschememanagement.plist +99 -0
  192. data/ext/apex_ext/apex_src/xcode_build/cmake_install.cmake +452 -0
  193. data/ext/apex_ext/apex_src/xcode_build/vendor/cmark-gfm/CMakeScripts/ReRunCMake.make +52 -0
  194. data/ext/apex_ext/apex_src/xcode_build/vendor/cmark-gfm/cmake_install.cmake +55 -0
  195. data/ext/apex_ext/apex_src/xcode_build/vendor/cmark-gfm/cmark-gfm.xcodeproj/project.pbxproj +2455 -0
  196. data/ext/apex_ext/apex_src/xcode_build/vendor/cmark-gfm/cmark-gfm.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings +8 -0
  197. data/ext/apex_ext/apex_src/xcode_build/vendor/cmark-gfm/extensions/cmake_install.cmake +171 -0
  198. data/ext/apex_ext/apex_src/xcode_build/vendor/cmark-gfm/man/cmake_install.cmake +55 -0
  199. data/ext/apex_ext/apex_src/xcode_build/vendor/cmark-gfm/src/cmake_install.cmake +220 -0
  200. data/ext/apex_ext/apex_src/xcode_build/vendor/cmark-gfm/src/cmark-gfm_export.h +43 -0
  201. data/ext/apex_ext/apex_src/xcode_build/vendor/cmark-gfm/src/cmark-gfm_version.h +7 -0
  202. data/ext/apex_ext/apex_src/xcode_build/vendor/cmark-gfm/src/config.h +76 -0
  203. data/ext/apex_ext/apex_src/xcode_build/vendor/cmark-gfm/src/libcmark-gfm.pc +10 -0
  204. data/ext/apex_ext/extconf.rb +35 -0
  205. data/lib/apex/version.rb +2 -2
  206. metadata +117 -2
  207. data/ext/apex_ext/apex_src/documentation/docsets/Apex.docset/Contents/Resources/tempOptimizedIndex.dsidx +0 -0
@@ -5,8 +5,97 @@
5
5
 
6
6
  <meta charset="UTF-8">
7
7
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
8
- <meta name="generator" content="Apex 0.1.49">
8
+ <meta name="generator" content="Apex 1.1.12">
9
9
  <title>Document</title>
10
+ <style>
11
+ /* GitHub-style syntax highlighting for Pygments and Skylighting */
12
+ /* Don't apply background to wrapper when code highlighting is enabled - let default styles handle it */
13
+ .code-highlighted .highlight, .code-highlighted .sourceCode { background: inherit; border-radius: 6px; padding: 16px; overflow-x: auto; }
14
+ .highlight pre, .sourceCode pre { margin: 0; padding: 0; background: transparent; }
15
+ .highlight code, .sourceCode code { font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace; font-size: 12px; line-height: 1.45; }
16
+ /* Pygments classes */
17
+ .highlight .k { color: #d73a49; font-weight: 600; } /* Keyword */
18
+ .highlight .kt { color: #d73a49; } /* Keyword.Type */
19
+ .highlight .kd { color: #d73a49; font-weight: 600; } /* Keyword.Declaration */
20
+ .highlight .kn { color: #d73a49; } /* Keyword.Namespace */
21
+ .highlight .kp { color: #d73a49; } /* Keyword.Pseudo */
22
+ .highlight .kr { color: #d73a49; font-weight: 600; } /* Keyword.Reserved */
23
+ .highlight .n { color: #6f42c1; } /* Name */
24
+ .highlight .na { color: #6f42c1; } /* Name.Attribute */
25
+ .highlight .nc { color: #6f42c1; font-weight: 600; } /* Name.Class */
26
+ .highlight .no { color: #005cc5; } /* Name.Constant */
27
+ .highlight .nd { color: #6f42c1; font-weight: 600; } /* Name.Decorator */
28
+ .highlight .ni { color: #800080; } /* Name.Entity */
29
+ .highlight .ne { color: #990000; font-weight: 600; } /* Name.Exception */
30
+ .highlight .nf { color: #6f42c1; font-weight: 600; } /* Name.Function */
31
+ .highlight .nl { color: #6f42c1; } /* Name.Label */
32
+ .highlight .nn { color: #555; } /* Name.Namespace */
33
+ .highlight .nt { color: #22863a; } /* Name.Tag */
34
+ .highlight .nv { color: #e36209; } /* Name.Variable */
35
+ .highlight .s { color: #032f62; } /* String */
36
+ .highlight .sb { color: #032f62; } /* String.Backtick */
37
+ .highlight .sc { color: #032f62; } /* String.Char */
38
+ .highlight .sd { color: #032f62; } /* String.Doc */
39
+ .highlight .s2 { color: #032f62; } /* String.Double */
40
+ .highlight .se { color: #032f62; } /* String.Escape */
41
+ .highlight .sh { color: #032f62; } /* String.Heredoc */
42
+ .highlight .si { color: #032f62; } /* String.Interpol */
43
+ .highlight .sx { color: #032f62; } /* String.Other */
44
+ .highlight .sr { color: #032f62; } /* String.Regex */
45
+ .highlight .s1 { color: #032f62; } /* String.Single */
46
+ .highlight .ss { color: #032f62; } /* String.Symbol */
47
+ .highlight .c { color: #6a737d; font-style: italic; } /* Comment */
48
+ .highlight .c1 { color: #6a737d; font-style: italic; } /* Comment.Single */
49
+ .highlight .cm { color: #6a737d; font-style: italic; } /* Comment.Multiline */
50
+ .highlight .cp { color: #6a737d; font-weight: 600; } /* Comment.Preproc */
51
+ .highlight .cs { color: #6a737d; font-weight: 600; font-style: italic; } /* Comment.Special */
52
+ .highlight .m { color: #005cc5; } /* Literal.Number */
53
+ .highlight .mb { color: #005cc5; } /* Literal.Number.Bin */
54
+ .highlight .mf { color: #005cc5; } /* Literal.Number.Float */
55
+ .highlight .mh { color: #005cc5; } /* Literal.Number.Hex */
56
+ .highlight .mi { color: #005cc5; } /* Literal.Number.Integer */
57
+ .highlight .il { color: #005cc5; } /* Literal.Number.Integer.Long */
58
+ .highlight .mo { color: #005cc5; } /* Literal.Number.Oct */
59
+ .highlight .o { color: #d73a49; } /* Operator */
60
+ .highlight .ow { color: #d73a49; } /* Operator.Word */
61
+ .highlight .p { color: #24292e; } /* Punctuation */
62
+ .highlight .w { color: #e1e4e8; } /* Text.Whitespace */
63
+ /* Skylighting classes */
64
+ .sourceCode .kw { color: #d73a49; font-weight: 600; } /* Keyword */
65
+ .sourceCode .dt { color: #6f42c1; } /* DataType */
66
+ .sourceCode .dv { color: #005cc5; } /* DecVal */
67
+ .sourceCode .bn { color: #005cc5; } /* BaseN */
68
+ .sourceCode .fl { color: #005cc5; } /* Float */
69
+ .sourceCode .ch { color: #032f62; } /* Char */
70
+ .sourceCode .st { color: #032f62; } /* String */
71
+ .sourceCode .co { color: #6a737d; font-style: italic; } /* Comment */
72
+ .sourceCode .ot { color: #22863a; } /* Other */
73
+ .sourceCode .al { color: #e36209; font-weight: 600; } /* Alert */
74
+ .sourceCode .fu { color: #6f42c1; font-weight: 600; } /* Function */
75
+ .sourceCode .re { color: #032f62; } /* RegionMarker */
76
+ .sourceCode .er { color: #d73a49; font-weight: 600; } /* Error */
77
+ .sourceCode .cf { color: #d73a49; font-weight: 600; } /* ControlFlow */
78
+ .sourceCode .op { color: #d73a49; } /* Operator */
79
+ .sourceCode .pp { color: #6a737d; } /* Preprocessor */
80
+ .sourceCode .at { color: #005cc5; } /* Attribute */
81
+ .sourceCode .do { color: #6a737d; font-style: italic; } /* Documentation */
82
+ .sourceCode .an { color: #6a737d; font-weight: 600; } /* Annotation */
83
+ .sourceCode .cv { color: #6a737d; font-weight: 600; font-style: italic; } /* CommentVar */
84
+ .sourceCode .in { color: #6a737d; } /* Information */
85
+ .sourceCode .wa { color: #e36209; font-weight: 600; } /* Warning */
86
+ .sourceCode .im { color: #d73a49; } /* Import */
87
+ .sourceCode .bu { color: #005cc5; } /* BuiltIn */
88
+ .sourceCode .ex { color: #6f42c1; } /* Extension */
89
+ .sourceCode .va { color: #e36209; } /* Variable */
90
+ .sourceCode .ss { color: #032f62; } /* SpecialString */
91
+ .sourceCode .sc { color: #032f62; } /* SpecialChar */
92
+ .sourceCode .vs { color: #032f62; } /* VerbatimString */
93
+ .sourceCode .il { color: #005cc5; } /* Special */
94
+ /* Line numbers (Skylighting) */
95
+ .sourceCode.numberSource .sourceCode { counter-reset: line; }
96
+ .sourceCode.numberSource .sourceCode > span { position: relative; left: -4em; counter-increment: line; }
97
+ .sourceCode.numberSource .sourceCode > span > a:first-child::before { content: counter(line); position: relative; left: -1em; text-align: right; vertical-align: baseline; border: none; display: inline-block; min-width: 1em; padding-right: 0.5em; color: #aaa; }
98
+ </style>
10
99
  <style>
11
100
  body {
12
101
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
@@ -35,10 +124,52 @@
35
124
  ins { background: #d4fcbc; text-decoration: none; }
36
125
  del { background: #fbb6c2; text-decoration: line-through; }
37
126
  mark { background: #fff3cd; }
127
+ .smallcaps { font-variant: small-caps; }
128
+ .underline { text-decoration: underline; }
129
+ span.mark { background: #fff3cd; }
130
+ .hidden { display: none; }
131
+ .quarto-xref { font-variant: normal; }
38
132
  .critic.comment { background: #e7e7e7; color: #666; font-style: italic; }
133
+ .mkhashtag { color: #666; }
134
+ .mkstyledtag {
135
+ display: inline-block;
136
+ background: #e0e0e0;
137
+ padding: 3px 9px;
138
+ border-radius: 20px;
139
+ font-size: 0.9em;
140
+ line-height: 1.4;
141
+ color: #333;
142
+ margin: 0 2px;
143
+ }
39
144
  </style>
145
+ <meta name="paginate" content="symbols"/>
146
+ <meta name="highlight-language-only" content="true"/>
147
+ <meta name="code-line-numbers" content="false"/>
148
+ <meta name="code-highlight" content="pygments"/>
149
+ <meta name="sup-sub" content="true"/>
150
+ <meta name="relaxed-tables" content="true"/>
151
+ <meta name="includes" content="true"/>
152
+ <meta name="autolink" content="true"/>
153
+ <meta name="pretty" content="false"/>
154
+ <meta name="standalone" content="false"/>
155
+ <meta name="mode" content="unified"/>
156
+ <meta name="markdown-in-html" content="true"/>
157
+ <meta name="image-captions" content="true"/>
158
+ <meta name="wikilink-extension" content="html"/>
159
+ <meta name="wikilink-space" content="hyphen"/>
160
+ <meta name="wikilinks" content="true"/>
161
+ <meta name="widont" content="true"/>
162
+ <meta name="plugins" content="true"/>
163
+ <meta name="id-format" content="gfm"/>
164
+
40
165
  <style>
41
- /* Base styles */
166
+ :root {
167
+ /* border-box width of the fixed sidebar; body offset includes a small gap */
168
+ --sidebar-width: 250px;
169
+ --sidebar-offset: 270px;
170
+ }
171
+
172
+ /* Base styles — override Apex standalone centering (max-width + margin: auto) */
42
173
  body {
43
174
  -webkit-font-smoothing: antialiased;
44
175
  -moz-osx-font-smoothing: grayscale;
@@ -48,6 +179,11 @@ body {
48
179
  line-height: 1.65;
49
180
  color: #1e293b;
50
181
  background-color: #fff;
182
+ max-width: none;
183
+ width: auto;
184
+ margin: 2rem 2rem 2rem var(--sidebar-offset);
185
+ padding: 0 1rem;
186
+ box-sizing: border-box;
51
187
  }
52
188
 
53
189
  /* Sidebar / Main TOC - wider on larger screens */
@@ -56,9 +192,10 @@ body {
56
192
  position: fixed;
57
193
  left: 0;
58
194
  top: 0;
59
- width: auto;
60
- min-width: 180px;
61
- max-width: 250px;
195
+ box-sizing: border-box;
196
+ width: var(--sidebar-width);
197
+ min-width: var(--sidebar-width);
198
+ max-width: var(--sidebar-width);
62
199
  height: 100vh;
63
200
  overflow-y: auto;
64
201
  background: #1e293b;
@@ -67,7 +204,6 @@ body {
67
204
  padding: 24px 20px 130px;
68
205
  font-size: 14px;
69
206
  z-index: 100;
70
- margin-right: 1rem;
71
207
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.08);
72
208
  transition: transform 0.3s ease;
73
209
  }
@@ -116,11 +252,6 @@ body {
116
252
  font-weight: 500;
117
253
  }
118
254
 
119
- /* Body margin for sidebar */
120
- body {
121
- margin-left: 270px;
122
- }
123
-
124
255
  /* Hamburger menu button */
125
256
  .hamburger-menu {
126
257
  display: none;
@@ -136,6 +267,7 @@ body {
136
267
  color: rgba(255, 255, 255, 0.9);
137
268
  font-size: 20px;
138
269
  line-height: 1;
270
+ box-sizing: border-box;
139
271
  width: 44px;
140
272
  height: 44px;
141
273
  align-items: center;
@@ -153,9 +285,7 @@ body {
153
285
 
154
286
  /* Move hamburger to the right of the sidebar when menu is open */
155
287
  .hamburger-menu.active {
156
- left: calc(
157
- 250px + 12px
158
- ); /* Position just to the right of sidebar (max-width 250px + 12px padding) */
288
+ left: calc(var(--sidebar-width) + 12px);
159
289
  }
160
290
 
161
291
  .hamburger-menu.active {
@@ -251,7 +381,7 @@ body {
251
381
  .floating-toc {
252
382
  position: fixed;
253
383
  top: 0;
254
- left: 270px;
384
+ left: var(--sidebar-offset);
255
385
  right: 0;
256
386
  z-index: 50;
257
387
  opacity: 0;
@@ -677,7 +807,7 @@ ol ul {
677
807
  }
678
808
 
679
809
  body {
680
- margin-left: 0;
810
+ margin: 2rem 1rem;
681
811
  }
682
812
 
683
813
  .floating-toc {
@@ -687,7 +817,7 @@ ol ul {
687
817
 
688
818
  </style></head>
689
819
 
690
- <body>
820
+ <body class="code-highlighted">
691
821
  <div class="floating-toc" id="floating-toc">
692
822
  <div class="floating-toc-container">
693
823
  <div class="floating-toc-header">
@@ -702,31 +832,31 @@ ol ul {
702
832
  <button class="hamburger-menu" id="hamburger-menu" aria-label="Toggle navigation"></button>
703
833
  <div class="mobile-menu-overlay" id="mobile-menu-overlay"></div>
704
834
 
705
- <nav class="main-toc"><ul><li><a href="Home.html">Home</a></li><li><a href="Getting-Started.html">Getting Started</a></li><li><a href="Installation.html">Installation</a></li><li><a href="Usage.html">Usage</a></li><li><a href="Syntax.html">Syntax</a></li><li><a href="Inline-Attribute-Lists.html">Inline Attribute Lists</a></li><li><a href="Modes.html">Modes</a></li><li><a href="Command-Line-Options.html">Command Line Options</a></li><li><a href="Multi-File-Documents.html">Multi-file Documents</a></li><li><a href="Citations.html">Citations</a></li><li><a href="Metadata-Transforms.html">Metadata Transforms</a></li><li><a href="Pandoc-Integration.html">Integrating with Pandoc</a></li><li><a href="Header-IDs.html">Header IDs</a></li><li><a href="C-API.html">C API</a></li><li><a href="Xcode-Integration.html">Xcode Integration</a></li><li><a href="Examples.html">Examples</a></li><li><a href="Plugins.html">Plugins</a></li><li><a href="Troubleshooting.html">Troubleshooting</a></li><li><a href="Credits.html">Credits</a></li></ul></nav>
835
+ <nav class="main-toc"><ul><li><a href="Home.html">Home</a></li><li><a href="Getting-Started.html">Getting Started</a></li><li><a href="Installation.html">Installation</a></li><li><a href="Usage.html">Usage</a></li><li><a href="Syntax.html">Syntax</a></li><li><a href="Callouts.html">Callouts</a></li><li><a href="Tables.html">Tables</a></li><li><a href="Inline-Attribute-Lists.html">Inline Attribute Lists</a></li><li><a href="Modes.html">Modes</a></li><li><a href="Quarto-Mode.html">Quarto Mode</a></li><li><a href="Command-Line-Options.html">Command Line Options</a></li><li><a href="Rendering-Markdown-In-Terminal.html">Rendering Markdown in the Terminal</a></li><li><a href="Generating-Man-Pages.html">Generating Man Pages</a></li><li><a href="Multi-File-Documents.html">Multi-file Documents</a></li><li><a href="Citations.html">Citations</a></li><li><a href="Indices.html">Indices</a></li><li><a href="Metadata-Transforms.html">Metadata Transforms</a></li><li><a href="Pandoc-Integration.html">Integrating with Pandoc</a></li><li><a href="Using-Apex-with-Jekyll.html">Using Apex with Jekyll</a></li><li><a href="Header-IDs.html">Header IDs</a></li><li><a href="C-API.html">C API</a></li><li><a href="Writing-Tests.html">Writing Tests</a></li><li><a href="Xcode-Integration.html">Xcode Integration</a></li><li><a href="Examples.html">Examples</a></li><li><a href="Plugins.html">Plugins</a></li><li><a href="Filters.html">Filters</a></li><li><a href="Troubleshooting.html">Troubleshooting</a></li><li><a href="Credits.html">Credits</a></li></ul></nav>
706
836
 
707
837
  <h1 id="troubleshooting">
708
838
  Troubleshooting
709
839
  </h1>
710
- <nav class="page-toc" id="page-toc-top"><ul><li><a href="#troubleshooting">Troubleshooting</a><ul><li><a href="#build-issues">Build Issues</a><ul><li><a href="#cmake-not-found">CMake Not Found</a></li><li><a href="#compilation-errors">Compilation Errors</a></li><li><a href="#linking-errors">Linking Errors</a></li></ul></li><li><a href="#runtime-issues">Runtime Issues</a><ul><li><a href="#table-not-rendering">Table Not Rendering</a></li><li><a href="#header-ids-not-generated">Header IDs Not Generated</a></li><li><a href="#math-not-rendering">Math Not Rendering</a></li><li><a href="#wiki-links-not-working">Wiki Links Not Working</a></li><li><a href="#file-includes-not-working">File Includes Not Working</a></li></ul></li><li><a href="#output-issues">Output Issues</a><ul><li><a href="#no-output">No Output</a></li><li><a href="#html-not-formatted">HTML Not Formatted</a></li><li><a href="#missing-styles">Missing Styles</a></li></ul></li><li><a href="#mode-specific-issues">Mode-Specific Issues</a><ul><li><a href="#feature-not-available">Feature Not Available</a></li><li><a href="#id-format-wrong">ID Format Wrong</a></li></ul></li><li><a href="#api-issues">API Issues</a><ul><li><a href="#memory-leaks">Memory Leaks</a></li><li><a href="#thread-safety">Thread Safety</a></li><li><a href="#framework-not-found-xcode">Framework Not Found (Xcode)</a></li></ul></li><li><a href="#performance-issues">Performance Issues</a><ul><li><a href="#slow-conversion">Slow Conversion</a></li><li><a href="#high-memory-usage">High Memory Usage</a></li></ul></li><li><a href="#getting-help">Getting Help</a></li><li><a href="#related">Related</a></li></ul></li></ul></nav>
840
+ <nav class="page-toc" id="page-toc-top"><ul><li><a href="#troubleshooting">Troubleshooting</a><ul><li><a href="#build-issues">Build&nbsp;Issues</a><ul><li><a href="#cmake-not-found">CMake&nbsp;Not&nbsp;Found</a></li><li><a href="#compilation-errors">Compilation&nbsp;Errors</a></li><li><a href="#linking-errors">Linking&nbsp;Errors</a></li></ul></li><li><a href="#runtime-issues">Runtime&nbsp;Issues</a><ul><li><a href="#table-not-rendering">Table Not&nbsp;Rendering</a></li><li><a href="#header-ids-not-generated">Header IDs Not&nbsp;Generated</a></li><li><a href="#math-not-rendering">Math Not&nbsp;Rendering</a></li><li><a href="#wiki-links-not-working">Wiki Links Not&nbsp;Working</a></li><li><a href="#file-includes-not-working">File Includes Not&nbsp;Working</a></li></ul></li><li><a href="#output-issues">Output&nbsp;Issues</a><ul><li><a href="#no-output">No&nbsp;Output</a></li><li><a href="#html-not-formatted">HTML Not&nbsp;Formatted</a></li><li><a href="#missing-styles">Missing&nbsp;Styles</a></li></ul></li><li><a href="#mode-specific-issues">Mode-Specific&nbsp;Issues</a><ul><li><a href="#feature-not-available">Feature Not&nbsp;Available</a></li><li><a href="#id-format-wrong">ID Format&nbsp;Wrong</a></li></ul></li><li><a href="#api-issues">API&nbsp;Issues</a><ul><li><a href="#memory-leaks">Memory&nbsp;Leaks</a></li><li><a href="#thread-safety">Thread&nbsp;Safety</a></li><li><a href="#framework-not-found-xcode">Framework Not Found&nbsp;(Xcode)</a></li><li><a href="#terminal-images-show-as-raw-binary-or-garbage">Terminal images show as raw binary&nbsp;or&nbsp;garbage</a></li></ul></li><li><a href="#performance-issues">Performance&nbsp;Issues</a><ul><li><a href="#slow-conversion">Slow&nbsp;Conversion</a></li><li><a href="#high-memory-usage">High Memory&nbsp;Usage</a></li></ul></li><li><a href="#getting-help">Getting&nbsp;Help</a></li><li><a href="#related">Related</a></li></ul></li></ul></nav>
711
841
 
712
842
  <p>
713
843
  Common issues and solutions when using Apex.
714
844
  </p>
715
845
 
716
846
  <h2 id="build-issues">
717
- Build Issues
847
+ Build&nbsp;Issues
718
848
  </h2>
719
849
 
720
850
  <h3 id="cmake-not-found">
721
- CMake Not Found
851
+ CMake&nbsp;Not&nbsp;Found
722
852
  </h3>
723
853
 
724
854
  <p>
725
- <strong> Error:</strong> <code>cmake: command not found</code>
855
+ <strong>Error:</strong> <code>cmake: command not found</code>
726
856
  </p>
727
857
 
728
858
  <p>
729
- <strong> Solution:</strong>
859
+ <strong>Solution:</strong>
730
860
  </p>
731
861
 
732
862
  <ul>
@@ -746,15 +876,15 @@ ol ul {
746
876
  </ul>
747
877
 
748
878
  <h3 id="compilation-errors">
749
- Compilation Errors
879
+ Compilation&nbsp;Errors
750
880
  </h3>
751
881
 
752
882
  <p>
753
- <strong> Error:</strong> Compiler not found or incompatible
883
+ <strong>Error:</strong> Compiler not found or incompatible
754
884
  </p>
755
885
 
756
886
  <p>
757
- <strong> Solution:</strong>
887
+ <strong>Solution:</strong>
758
888
  </p>
759
889
 
760
890
  <ul>
@@ -770,15 +900,15 @@ ol ul {
770
900
  </ul>
771
901
 
772
902
  <h3 id="linking-errors">
773
- Linking Errors
903
+ Linking&nbsp;Errors
774
904
  </h3>
775
905
 
776
906
  <p>
777
- <strong> Error:</strong> <code>undefined reference to apex_*</code>
907
+ <strong>Error:</strong> <code>undefined reference to apex_*</code>
778
908
  </p>
779
909
 
780
910
  <p>
781
- <strong> Solution:</strong>
911
+ <strong>Solution:</strong>
782
912
  </p>
783
913
 
784
914
  <ul>
@@ -798,19 +928,19 @@ ol ul {
798
928
  </ul>
799
929
 
800
930
  <h2 id="runtime-issues">
801
- Runtime Issues
931
+ Runtime&nbsp;Issues
802
932
  </h2>
803
933
 
804
934
  <h3 id="table-not-rendering">
805
- Table Not Rendering
935
+ Table Not&nbsp;Rendering
806
936
  </h3>
807
937
 
808
938
  <p>
809
- <strong> Problem:</strong> Tables appear as code or plain text
939
+ <strong>Problem:</strong> Tables appear as code or plain text
810
940
  </p>
811
941
 
812
942
  <p>
813
- <strong> Solutions:</strong>
943
+ <strong>Solutions:</strong>
814
944
  </p>
815
945
 
816
946
  <ul>
@@ -830,15 +960,15 @@ ol ul {
830
960
  </ul>
831
961
 
832
962
  <h3 id="header-ids-not-generated">
833
- Header IDs Not Generated
963
+ Header IDs Not&nbsp;Generated
834
964
  </h3>
835
965
 
836
966
  <p>
837
- <strong> Problem:</strong> Headers don’t have <code>id</code> attributes
967
+ <strong>Problem:</strong> Headers don’t have <code>id</code> attributes
838
968
  </p>
839
969
 
840
970
  <p>
841
- <strong> Solutions:</strong>
971
+ <strong>Solutions:</strong>
842
972
  </p>
843
973
 
844
974
  <ul>
@@ -858,15 +988,15 @@ ol ul {
858
988
  </ul>
859
989
 
860
990
  <h3 id="math-not-rendering">
861
- Math Not Rendering
991
+ Math Not&nbsp;Rendering
862
992
  </h3>
863
993
 
864
994
  <p>
865
- <strong> Problem:</strong> Math appears as plain text
995
+ <strong>Problem:</strong> Math appears as plain text
866
996
  </p>
867
997
 
868
998
  <p>
869
- <strong> Solutions:</strong>
999
+ <strong>Solutions:</strong>
870
1000
  </p>
871
1001
 
872
1002
  <ul>
@@ -886,15 +1016,15 @@ ol ul {
886
1016
  </ul>
887
1017
 
888
1018
  <h3 id="wiki-links-not-working">
889
- Wiki Links Not Working
1019
+ Wiki Links Not&nbsp;Working
890
1020
  </h3>
891
1021
 
892
1022
  <p>
893
- <strong> Problem:</strong> Wiki links appear as plain text
1023
+ <strong>Problem:</strong> Wiki links appear as plain text
894
1024
  </p>
895
1025
 
896
1026
  <p>
897
- <strong> Solutions:</strong>
1027
+ <strong>Solutions:</strong>
898
1028
  </p>
899
1029
 
900
1030
  <ul>
@@ -914,15 +1044,15 @@ ol ul {
914
1044
  </ul>
915
1045
 
916
1046
  <h3 id="file-includes-not-working">
917
- File Includes Not Working
1047
+ File Includes Not&nbsp;Working
918
1048
  </h3>
919
1049
 
920
1050
  <p>
921
- <strong> Problem:</strong> Include syntax not processed
1051
+ <strong>Problem:</strong> Include syntax not processed
922
1052
  </p>
923
1053
 
924
1054
  <p>
925
- <strong> Solutions:</strong>
1055
+ <strong>Solutions:</strong>
926
1056
  </p>
927
1057
 
928
1058
  <ul>
@@ -936,25 +1066,25 @@ ol ul {
936
1066
  </li>
937
1067
 
938
1068
  <li>
939
- Verify syntax: `` or <code>{{file.md}}</code>
1069
+ Verify syntax: <code>&lt;&lt;[file.md]</code> or <code>{{file.md}}</code>
940
1070
  </li>
941
1071
 
942
1072
  </ul>
943
1073
 
944
1074
  <h2 id="output-issues">
945
- Output Issues
1075
+ Output&nbsp;Issues
946
1076
  </h2>
947
1077
 
948
1078
  <h3 id="no-output">
949
- No Output
1079
+ No&nbsp;Output
950
1080
  </h3>
951
1081
 
952
1082
  <p>
953
- <strong> Problem:</strong> Command produces no output
1083
+ <strong>Problem:</strong> Command produces no output
954
1084
  </p>
955
1085
 
956
1086
  <p>
957
- <strong> Solutions:</strong>
1087
+ <strong>Solutions:</strong>
958
1088
  </p>
959
1089
 
960
1090
  <ul>
@@ -974,15 +1104,15 @@ ol ul {
974
1104
  </ul>
975
1105
 
976
1106
  <h3 id="html-not-formatted">
977
- HTML Not Formatted
1107
+ HTML Not&nbsp;Formatted
978
1108
  </h3>
979
1109
 
980
1110
  <p>
981
- <strong> Problem:</strong> HTML is all on one line
1111
+ <strong>Problem:</strong> HTML is all on one line
982
1112
  </p>
983
1113
 
984
1114
  <p>
985
- <strong> Solutions:</strong>
1115
+ <strong>Solutions:</strong>
986
1116
  </p>
987
1117
 
988
1118
  <ul>
@@ -998,15 +1128,15 @@ ol ul {
998
1128
  </ul>
999
1129
 
1000
1130
  <h3 id="missing-styles">
1001
- Missing Styles
1131
+ Missing&nbsp;Styles
1002
1132
  </h3>
1003
1133
 
1004
1134
  <p>
1005
- <strong> Problem:</strong> Standalone document has no styling
1135
+ <strong>Problem:</strong> Standalone document has no styling
1006
1136
  </p>
1007
1137
 
1008
1138
  <p>
1009
- <strong> Solutions:</strong>
1139
+ <strong>Solutions:</strong>
1010
1140
  </p>
1011
1141
 
1012
1142
  <ul>
@@ -1026,19 +1156,19 @@ ol ul {
1026
1156
  </ul>
1027
1157
 
1028
1158
  <h2 id="mode-specific-issues">
1029
- Mode-Specific Issues
1159
+ Mode-Specific&nbsp;Issues
1030
1160
  </h2>
1031
1161
 
1032
1162
  <h3 id="feature-not-available">
1033
- Feature Not Available
1163
+ Feature Not&nbsp;Available
1034
1164
  </h3>
1035
1165
 
1036
1166
  <p>
1037
- <strong> Problem:</strong> Syntax feature doesn’t work
1167
+ <strong>Problem:</strong> Syntax feature doesn’t work
1038
1168
  </p>
1039
1169
 
1040
1170
  <p>
1041
- <strong> Solutions:</strong>
1171
+ <strong>Solutions:</strong>
1042
1172
  </p>
1043
1173
 
1044
1174
  <ul>
@@ -1058,15 +1188,15 @@ ol ul {
1058
1188
  </ul>
1059
1189
 
1060
1190
  <h3 id="id-format-wrong">
1061
- ID Format Wrong
1191
+ ID Format&nbsp;Wrong
1062
1192
  </h3>
1063
1193
 
1064
1194
  <p>
1065
- <strong> Problem:</strong> Header IDs don’t match expected format
1195
+ <strong>Problem:</strong> Header IDs don’t match expected format
1066
1196
  </p>
1067
1197
 
1068
1198
  <p>
1069
- <strong> Solutions:</strong>
1199
+ <strong>Solutions:</strong>
1070
1200
  </p>
1071
1201
 
1072
1202
  <ul>
@@ -1086,19 +1216,19 @@ ol ul {
1086
1216
  </ul>
1087
1217
 
1088
1218
  <h2 id="api-issues">
1089
- API Issues
1219
+ API&nbsp;Issues
1090
1220
  </h2>
1091
1221
 
1092
1222
  <h3 id="memory-leaks">
1093
- Memory Leaks
1223
+ Memory&nbsp;Leaks
1094
1224
  </h3>
1095
1225
 
1096
1226
  <p>
1097
- <strong> Problem:</strong> Application memory usage grows
1227
+ <strong>Problem:</strong> Application memory usage grows
1098
1228
  </p>
1099
1229
 
1100
1230
  <p>
1101
- <strong> Solutions:</strong>
1231
+ <strong>Solutions:</strong>
1102
1232
  </p>
1103
1233
 
1104
1234
  <ul>
@@ -1118,15 +1248,15 @@ ol ul {
1118
1248
  </ul>
1119
1249
 
1120
1250
  <h3 id="thread-safety">
1121
- Thread Safety
1251
+ Thread&nbsp;Safety
1122
1252
  </h3>
1123
1253
 
1124
1254
  <p>
1125
- <strong> Problem:</strong> Crashes or incorrect output in multi-threaded code
1255
+ <strong>Problem:</strong> Crashes or incorrect output in multi-threaded code
1126
1256
  </p>
1127
1257
 
1128
1258
  <p>
1129
- <strong> Solutions:</strong>
1259
+ <strong>Solutions:</strong>
1130
1260
  </p>
1131
1261
 
1132
1262
  <ul>
@@ -1146,15 +1276,15 @@ ol ul {
1146
1276
  </ul>
1147
1277
 
1148
1278
  <h3 id="framework-not-found-xcode">
1149
- Framework Not Found (Xcode)
1279
+ Framework Not Found&nbsp;(Xcode)
1150
1280
  </h3>
1151
1281
 
1152
1282
  <p>
1153
- <strong> Problem:</strong> <code>Apex.framework</code> not found at runtime
1283
+ <strong>Problem:</strong> <code>Apex.framework</code> not found at runtime
1154
1284
  </p>
1155
1285
 
1156
1286
  <p>
1157
- <strong> Solutions:</strong>
1287
+ <strong>Solutions:</strong>
1158
1288
  </p>
1159
1289
 
1160
1290
  <ul>
@@ -1173,119 +1303,164 @@ ol ul {
1173
1303
 
1174
1304
  </ul>
1175
1305
 
1176
- <h2 id="performance-issues">
1177
- Performance Issues
1178
- </h2>
1179
-
1180
- <h3 id="slow-conversion">
1181
- Slow Conversion
1306
+ <h3 id="terminal-images-show-as-raw-binary-or-garbage">
1307
+ Terminal images show as raw binary&nbsp;or&nbsp;garbage
1182
1308
  </h3>
1183
1309
 
1184
1310
  <p>
1185
- <strong> Problem:</strong> Conversion takes too long
1311
+ <strong>Problem:</strong> <code>-t terminal</code> / <code>-t terminal256</code> prints unreadable escape sequences or binary-looking data for <code>![alt](image.png)</code> images.
1186
1312
  </p>
1187
1313
 
1188
1314
  <p>
1189
- <strong> Solutions:</strong>
1315
+ <strong>Common causes:</strong>
1190
1316
  </p>
1191
1317
 
1192
1318
  <ul>
1193
1319
 
1194
1320
  <li>
1195
- Disable unused features: Turn off extensions you don’t need
1321
+ <strong>Pager incompatibility:</strong> <code>less -R</code> (and most pagers) only support ANSI <strong>color</strong>, not iTerm inline-image (<code>]1337;…</code>) or Kitty graphics protocols. If <code>paginate: true</code> or <code>-p</code> is set, Apex may still embed full graphics in the buffer; use <strong><code>--paginate-symbols</code></strong> or <strong><code>paginate: symbols</code></strong> for pager-friendly chafa ANSI art, or <strong><code>--no-paginate</code></strong> for direct TTY output.
1196
1322
  </li>
1197
1323
 
1198
1324
  <li>
1199
- Check input size: Large documents take longer
1325
+ <strong>Wrong viewer on PATH:</strong> <strong>imgcat</strong> is only used in iTerm2. In other terminals Apex prefers <strong>chafa</strong>. Install chafa: <code>brew install chafa</code>.
1200
1326
  </li>
1201
1327
 
1202
1328
  <li>
1203
- Profile: Use profiling tools to identify bottlenecks
1329
+ <strong>Not a TTY:</strong> Inline images require stdout to be a terminal during rendering. Piping to a file shows link-style fallback.
1204
1330
  </li>
1205
1331
 
1206
1332
  </ul>
1207
1333
 
1208
1334
  <p>
1209
- You can also enable Apex’s built-in profiling output with environment variables: setting <code>APEX_PROFILE=1</code> (or <code>yes</code>/<code>true</code>) will print per-phase timings from the core converter (e.g. metadata, citations, autolinks) to stderr, while <code>APEX_PROFILE_PLUGINS=1</code> enables detailed timing for plugin execution, including a total time for each plugin phase (<code>pre_parse</code> and <code>post_render</code>) and individual timings for every discovered plugin; this is especially useful for tracking down slow external handlers or regex plugins—run commands like <code>APEX_PROFILE_PLUGINS=1 apex --plugins input.md &gt; /dev/null</code> to capture just the timing lines.
1335
+ <strong>Debug:</strong>
1210
1336
  </p>
1211
1337
 
1212
- <h3 id="high-memory-usage">
1213
- High Memory Usage
1214
- </h3>
1338
+ <div class="highlight">
1339
+ <pre><span></span><span class="nv">APEX_DEBUG_TERMINAL</span><span class="o">=</span><span class="m">1</span><span class="w"> </span>apex<span class="w"> </span>doc.md<span class="w"> </span>-t<span class="w"> </span>terminal256<span class="w"> </span>--paginate-symbols
1340
+ </pre>
1341
+ </div>
1215
1342
 
1216
- <p>
1217
- <strong> Problem:</strong> Application uses too much memory
1218
- </p>
1343
+ <p>
1344
+ Check stderr for the selected viewer, command line, and pagination mode.
1345
+ </p>
1219
1346
 
1220
- <p>
1221
- <strong> Solutions:</strong>
1222
- </p>
1347
+ <p>
1348
+ See <a href="Rendering-Markdown-In-Terminal.html">Rendering Markdown in the Terminal</a>.
1349
+ </p>
1223
1350
 
1224
- <ul>
1351
+ <h2 id="performance-issues">
1352
+ Performance&nbsp;Issues
1353
+ </h2>
1225
1354
 
1226
- <li>
1227
- Free strings promptly: Don’t keep HTML strings longer than needed
1228
- </li>
1355
+ <h3 id="slow-conversion">
1356
+ Slow&nbsp;Conversion
1357
+ </h3>
1229
1358
 
1230
- <li>
1231
- Process in chunks: For very large documents, consider splitting
1232
- </li>
1359
+ <p>
1360
+ <strong>Problem:</strong> Conversion takes too long
1361
+ </p>
1233
1362
 
1234
- <li>
1235
- Check for leaks: Use memory profiling tools
1236
- </li>
1363
+ <p>
1364
+ <strong>Solutions:</strong>
1365
+ </p>
1237
1366
 
1238
- </ul>
1367
+ <ul>
1239
1368
 
1240
- <h2 id="getting-help">
1241
- Getting Help
1242
- </h2>
1369
+ <li>
1370
+ Disable unused features: Turn off extensions you don’t need
1371
+ </li>
1243
1372
 
1244
- <p>
1245
- If you encounter issues not covered here:
1246
- </p>
1373
+ <li>
1374
+ Check input size: Large documents take longer
1375
+ </li>
1247
1376
 
1248
- <ol>
1377
+ <li>
1378
+ Profile: Use profiling tools to identify bottlenecks
1379
+ </li>
1249
1380
 
1250
- <li>
1251
- Check the <a href="Syntax.html">Syntax</a> page for correct syntax
1252
- </li>
1381
+ </ul>
1253
1382
 
1254
- <li>
1255
- Review <a href="Modes.html">Modes</a> to ensure feature is available
1256
- </li>
1383
+ <p>
1384
+ You can also enable Apex’s built-in profiling output with environment variables: setting <code>APEX_PROFILE=1</code> (or <code>yes</code>/<code>true</code>) will print per-phase timings from the core converter (e.g. metadata, citations, autolinks) to stderr, while <code>APEX_PROFILE_PLUGINS=1</code> enables detailed timing for plugin execution, including a total time for each plugin phase (<code>pre_parse</code> and <code>post_render</code>) and individual timings for every discovered plugin; this is especially useful for tracking down slow external handlers or regex plugins—run commands like <code>APEX_PROFILE_PLUGINS=1 apex --plugins input.md &gt; /dev/null</code> to capture just the timing lines.
1385
+ </p>
1257
1386
 
1258
- <li>
1259
- See <a href="Command-Line-Options.html">Command Line Options</a> for flag usage
1260
- </li>
1387
+ <h3 id="high-memory-usage">
1388
+ High Memory&nbsp;Usage
1389
+ </h3>
1261
1390
 
1262
- <li>
1263
- Check <a href="C-API.html">C API</a> for programmatic issues
1264
- </li>
1391
+ <p>
1392
+ <strong>Problem:</strong> Application uses too much memory
1393
+ </p>
1265
1394
 
1266
- </ol>
1395
+ <p>
1396
+ <strong>Solutions:</strong>
1397
+ </p>
1267
1398
 
1268
- <h2 id="related">
1269
- Related
1270
- </h2>
1399
+ <ul>
1271
1400
 
1272
- <ul>
1401
+ <li>
1402
+ Free strings promptly: Don’t keep HTML strings longer than needed
1403
+ </li>
1273
1404
 
1274
- <li>
1275
- <a href="Installation.html"> Installation</a> - Build and installation issues
1276
- </li>
1405
+ <li>
1406
+ Process in chunks: For very large documents, consider splitting
1407
+ </li>
1277
1408
 
1278
- <li>
1279
- <a href="Usage.html"> Usage</a> - Usage examples
1280
- </li>
1409
+ <li>
1410
+ Check for leaks: Use memory profiling tools
1411
+ </li>
1281
1412
 
1282
- <li>
1283
- <a href="C-API.html"> C API</a> - API-specific troubleshooting
1284
- </li>
1413
+ </ul>
1285
1414
 
1286
- </ul>
1415
+ <h2 id="getting-help">
1416
+ Getting&nbsp;Help
1417
+ </h2>
1418
+
1419
+ <p>
1420
+ If you encounter issues not covered here:
1421
+ </p>
1422
+
1423
+ <ol>
1424
+
1425
+ <li>
1426
+ Check the <a href="Syntax.html">Syntax</a> page for correct syntax
1427
+ </li>
1428
+
1429
+ <li>
1430
+ Review <a href="Modes.html">Modes</a> to ensure feature is available
1431
+ </li>
1432
+
1433
+ <li>
1434
+ See <a href="Command-Line-Options.html">Command Line Options</a> for flag usage
1435
+ </li>
1436
+
1437
+ <li>
1438
+ Check <a href="C-API.html">C API</a> for programmatic issues
1439
+ </li>
1440
+
1441
+ </ol>
1287
1442
 
1288
- <script>
1443
+ <h2 id="related">
1444
+ Related
1445
+ </h2>
1446
+
1447
+ <ul>
1448
+
1449
+ <li>
1450
+ <a href="Installation.html">Installation</a> - Build and installation issues
1451
+ </li>
1452
+
1453
+ <li>
1454
+ <a href="Usage.html">Usage</a> - Usage examples
1455
+ </li>
1456
+
1457
+ <li>
1458
+ <a href="C-API.html">C API</a> - API-specific troubleshooting
1459
+ </li>
1460
+
1461
+ </ul>
1462
+
1463
+ <script>
1289
1464
  // Hamburger menu functionality
1290
1465
  (function() {
1291
1466
  function initHamburgerMenu() {