apex-ruby 1.0.17 → 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,18 +832,15 @@ 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="inline-attribute-lists-ials-and-attribute-list-definitions-alds">
708
- Inline Attribute Lists (IALs) and Attribute List Definitions (ALDs)
838
+ Inline Attribute Lists (IALs) and Attribute List Definitions&nbsp;(ALDs)
709
839
  </h1>
710
- <nav class="page-toc" id="page-toc-top"><ul><li><a href="#inline-attribute-lists-ials-and-attribute-list-definitions-alds">Inline Attribute Lists (IALs) and Attribute List Definitions (ALDs)</a><ul><li><a href="#overview">Overview</a></li><li><a href="#block-level-ials">Block-Level IALs</a><ul><li><a href="#paragraphs">Paragraphs</a></li><li><a href="#headings">Headings</a></li><li><a href="#lists">Lists</a></li><li><a href="#blockquotes">Blockquotes</a></li><li><a href="#tables">Tables</a></li></ul></li><li><a href="#inline-ials">Inline IALs</a><ul><li><a href="#links">Links</a></li><li><a href="#images">Images</a></li><li><a href="#emphasis-and-strong">Emphasis and Strong</a></li><li><a href="#code-spans">Code Spans</a></li></ul></li><li><a href="#attribute-syntax">Attribute Syntax</a><ul><li><a href="#1-ids">1. IDs</a></li><li><a href="#2-classes">2. Classes</a></li><li><a href="#3-key-value-pairs">3. Key-Value Pairs</a></li><li><a href="#combining-attributes">Combining Attributes</a></li></ul></li><li><a href="#attribute-list-definitions-alds">Attribute List Definitions (ALDs)</a><ul><li><a href="#defining-alds">Defining ALDs</a></li><li><a href="#ald-syntax">ALD Syntax</a></li><li><a href="#referencing-alds">Referencing ALDs</a></li><li><a href="#mixed-usage">Mixed Usage</a></li></ul></li><li><a href="#important-notes">Important Notes</a><ul><li><a href="#block-level-ial-positioning">Block-Level IAL Positioning</a></li><li><a href="#inline-ial-positioning">Inline IAL Positioning</a></li><li><a href="#multiple-elements-with-same-attributes">Multiple Elements with Same Attributes</a></li><li><a href="#nested-elements">Nested Elements</a></li></ul></li><li><a href="#examples">Examples</a><ul><li><a href="#complete-example">Complete Example</a></li><li><a href="#using-alds-for-consistent-styling">Using ALDs for Consistent Styling</a></li></ul></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="#inline-attribute-lists-ials-and-attribute-list-definitions-alds">Inline Attribute Lists (IALs) and Attribute List Definitions&nbsp;(ALDs)</a><ul><li><a href="#overview">Overview</a></li><li><a href="#block-level-ials">Block-Level&nbsp;IALs</a><ul><li><a href="#paragraphs">Paragraphs</a></li><li><a href="#headings">Headings</a></li><li><a href="#lists">Lists</a></li><li><a href="#blockquotes">Blockquotes</a></li><li><a href="#tables">Tables</a></li></ul></li><li><a href="#inline-ials">Inline&nbsp;IALs</a><ul><li><a href="#links">Links</a></li><li><a href="#images">Images</a></li><li><a href="#multimarkdown-style-image-attributes">MultiMarkdown-style image&nbsp;attributes</a><ul><li><a href="#inline-images">Inline&nbsp;images</a></li><li><a href="#reference-style-images">Reference-style&nbsp;images</a></li></ul></li><li><a href="#bear-image-attribute-comments">Bear image attribute&nbsp;comments</a><ul><li><a href="#reference-images">Reference&nbsp;images</a></li><li><a href="#supported-values-and-safety">Supported values&nbsp;and&nbsp;safety</a></li><li><a href="#url-handling-and-attributes">URL handling and&nbsp;attributes</a></li><li><a href="#width-and-height-handling">Width and height&nbsp;handling</a></li></ul></li><li><a href="#emphasis-and-strong">Emphasis&nbsp;and&nbsp;Strong</a></li><li><a href="#code-spans">Code&nbsp;Spans</a></li></ul></li><li><a href="#attribute-syntax">Attribute&nbsp;Syntax</a><ul><li><a href="#1-ids">1.&nbsp;IDs</a></li><li><a href="#2-classes">2.&nbsp;Classes</a></li><li><a href="#3-key-value-pairs">3. Key-Value&nbsp;Pairs</a></li><li><a href="#combining-attributes">Combining&nbsp;Attributes</a></li></ul></li><li><a href="#attribute-list-definitions-alds">Attribute List Definitions&nbsp;(ALDs)</a><ul><li><a href="#defining-alds">Defining&nbsp;ALDs</a></li><li><a href="#ald-syntax">ALD&nbsp;Syntax</a></li><li><a href="#referencing-alds">Referencing&nbsp;ALDs</a></li><li><a href="#mixed-usage">Mixed&nbsp;Usage</a></li></ul></li><li><a href="#important-notes">Important&nbsp;Notes</a><ul><li><a href="#block-level-ial-positioning">Block-Level IAL&nbsp;Positioning</a></li><li><a href="#inline-ial-positioning">Inline IAL&nbsp;Positioning</a></li><li><a href="#multiple-elements-with-same-attributes">Multiple Elements with Same&nbsp;Attributes</a></li><li><a href="#nested-elements">Nested&nbsp;Elements</a></li></ul></li><li><a href="#examples">Examples</a><ul><li><a href="#complete-example">Complete&nbsp;Example</a></li><li><a href="#using-alds-for-consistent-styling">Using ALDs for Consistent&nbsp;Styling</a></li></ul></li><li><a href="#related">Related</a></li></ul></li></ul></nav>
711
841
 
712
842
  <p>
713
843
  Inline Attribute Lists (IALs) allow you to add HTML attributes (IDs, classes, and custom key-value pairs) to Markdown elements. Attribute List Definitions (ALDs) let you define reusable attribute sets that can be referenced multiple times.
714
- </p>
715
-
716
- <p>
717
844
  This feature is available in <strong>Kramdown</strong> and <strong>unified</strong> modes.
718
845
  </p>
719
846
 
@@ -728,41 +855,28 @@ ol ul {
728
855
  <ul>
729
856
 
730
857
  <li>
731
- <strong> Block-level elements</strong>: Headings, paragraphs, lists, blockquotes, code blocks, tables
858
+ <strong>Block-level elements</strong>: Headings, paragraphs, lists, blockquotes, code blocks, tables
732
859
  </li>
733
860
 
734
861
  <li>
735
- <strong> Span-level elements</strong>: Links, images, emphasis (italic), strong (bold), code spans
862
+ <strong>Span-level elements</strong>: Links, images, emphasis (italic), strong (bold), code spans
863
+ Apex supports both formats:
736
864
  </li>
737
865
 
738
- </ul>
739
-
740
- <p>
741
- Apex supports both formats:
742
- </p>
743
-
744
- <ul>
745
-
746
866
  <li>
747
- <strong> Kramdown-style</strong>: <code>{: #id .class key=&quot;value&quot;}</code> - requires a colon after the opening brace
867
+ <strong>Kramdown-style</strong>: <code>{: #id .class key=&quot;value&quot;}</code> - requires a colon after the opening brace
748
868
  </li>
749
869
 
750
870
  <li>
751
- <strong> Pandoc-style</strong>: <code>{#id .class key=&quot;value&quot;}</code> - no colon required
871
+ <strong>Pandoc-style</strong>: <code>{#id .class key=&quot;value&quot;}</code> - no colon required
872
+ Both formats work identically. For example, <code>{#my-id .my-class}</code> is equivalent to <code>{:#my-id .my-class}</code>.
873
+ ALDs define reusable attribute sets with the syntax <code>{<span class=\"emoji\">:ref-name:</span> attributes}</code> and can be referenced in IALs using <code>{:ref-name}</code>.
752
874
  </li>
753
875
 
754
876
  </ul>
755
877
 
756
- <p>
757
- Both formats work identically. For example, <code>{#my-id .my-class}</code> is equivalent to <code>{:#my-id .my-class}</code>.
758
- </p>
759
-
760
- <p>
761
- ALDs define reusable attribute sets with the syntax <code>{🚗 attributes}</code> and can be referenced in IALs using <code>{:ref-name}</code>.
762
- </p>
763
-
764
878
  <h2 id="block-level-ials">
765
- Block-Level IALs
879
+ Block-Level&nbsp;IALs
766
880
  </h2>
767
881
 
768
882
  <p>
@@ -773,9 +887,10 @@ ol ul {
773
887
  Paragraphs
774
888
  </h3>
775
889
 
776
- <pre><code class="highlight language-markdown">This is a paragraph with an ID and classes.
890
+ <div class="highlight">
891
+ <pre><span></span>This is a paragraph with an ID and classes.
777
892
 
778
- {: #para-id .important .note}
893
+ {: <span class="ni">#para</span>-id .important .note}
779
894
 
780
895
  This is a paragraph using Pandoc-style IAL.
781
896
 
@@ -783,17 +898,20 @@ This is a paragraph using Pandoc-style IAL.
783
898
 
784
899
  Another paragraph with custom attributes.
785
900
 
786
- {: title="Important Note" lang="en"}
787
- </code></pre>
901
+ {: title=&quot;Important Note&quot; lang=&quot;en&quot;}
902
+ </pre>
903
+ </div>
788
904
 
789
905
  <p>
790
906
  Output:
791
907
  </p>
792
908
 
793
- <pre><code class="highlight language-html"><span class="nt">&lt;p</span> <span class="na">id=</span><span class="s">"para-id"</span> <span class="na">class=</span><span class="s">"important note"</span><span class="nt">&gt;</span>This is a paragraph with an ID and classes.<span class="nt">&lt;/p&gt;</span>
794
- <span class="nt">&lt;p</span> <span class="na">id=</span><span class="s">"para-id-2"</span> <span class="na">class=</span><span class="s">"important note"</span><span class="nt">&gt;</span>This is a paragraph using Pandoc-style IAL.<span class="nt">&lt;/p&gt;</span>
795
- <span class="nt">&lt;p</span> <span class="na">title=</span><span class="s">"Important Note"</span> <span class="na">lang=</span><span class="s">"en"</span><span class="nt">&gt;</span>Another paragraph with custom attributes.<span class="nt">&lt;/p&gt;</span>
796
- </code></pre>
909
+ <div class="highlight">
910
+ <pre><span></span><span class="p">&lt;</span><span class="nt">p</span> <span class="na">id</span><span class="o">=</span><span class="s">&quot;para-id&quot;</span> <span class="na">class</span><span class="o">=</span><span class="s">&quot;important note&quot;</span><span class="p">&gt;</span>This is a paragraph with an ID and classes.<span class="p">&lt;/</span><span class="nt">p</span><span class="p">&gt;</span>
911
+ <span class="p">&lt;</span><span class="nt">p</span> <span class="na">id</span><span class="o">=</span><span class="s">&quot;para-id-2&quot;</span> <span class="na">class</span><span class="o">=</span><span class="s">&quot;important note&quot;</span><span class="p">&gt;</span>This is a paragraph using Pandoc-style IAL.<span class="p">&lt;/</span><span class="nt">p</span><span class="p">&gt;</span>
912
+ <span class="p">&lt;</span><span class="nt">p</span> <span class="na">title</span><span class="o">=</span><span class="s">&quot;Important Note&quot;</span> <span class="na">lang</span><span class="o">=</span><span class="s">&quot;en&quot;</span><span class="p">&gt;</span>Another paragraph with custom attributes.<span class="p">&lt;/</span><span class="nt">p</span><span class="p">&gt;</span>
913
+ </pre>
914
+ </div>
797
915
 
798
916
  <h3 id="headings">
799
917
  Headings
@@ -801,24 +919,24 @@ Another paragraph with custom attributes.
801
919
 
802
920
  <p>
803
921
  Headings can have IALs on the same line or the next line:
922
+ <strong>Same line:</strong>
804
923
  </p>
805
924
 
806
- <p>
807
- <strong> Same line:</strong>
808
- </p>
809
-
810
- <pre><code class="highlight language-markdown"><span class="gh"># Heading {: #custom-id}</span>
925
+ <div class="highlight">
926
+ <pre><span></span><span class="gh"># Heading {: #custom-id}</span>
811
927
  <span class="gu">## Another Heading {: .highlight .large}</span>
812
928
  <span class="gu">## Pandoc-style Heading {#pandoc-id .highlight}</span>
813
- </code></pre>
929
+ </pre>
930
+ </div>
814
931
 
815
932
  <p>
816
- <strong> Next line:</strong>
933
+ <strong>Next line:</strong>
817
934
  </p>
818
935
 
819
- <pre><code class="highlight language-markdown"><span class="gh"># Heading</span>
936
+ <div class="highlight">
937
+ <pre><span></span><span class="gh"># Heading</span>
820
938
 
821
- {: #custom-id .highlight}
939
+ {: <span class="ni">#custom</span>-id .highlight}
822
940
 
823
941
  <span class="gh"># Pandoc-style Heading</span>
824
942
 
@@ -826,76 +944,87 @@ Another paragraph with custom attributes.
826
944
 
827
945
  <span class="gu">## Another Heading</span>
828
946
 
829
- {: .section-title lang="en"}
830
- </code></pre>
947
+ {: .section-title lang=&quot;en&quot;}
948
+ </pre>
949
+ </div>
831
950
 
832
951
  <p>
833
952
  Output:
834
953
  </p>
835
954
 
836
- <pre><code class="highlight language-html"><span class="nt">&lt;h1</span> <span class="na">id=</span><span class="s">"custom-id"</span><span class="nt">&gt;</span>Heading<span class="nt">&lt;/h1&gt;</span>
837
- <span class="nt">&lt;h2</span> <span class="na">class=</span><span class="s">"highlight large"</span><span class="nt">&gt;</span>Another Heading<span class="nt">&lt;/h2&gt;</span>
838
- <span class="nt">&lt;h2</span> <span class="na">id=</span><span class="s">"pandoc-id"</span> <span class="na">class=</span><span class="s">"highlight"</span><span class="nt">&gt;</span>Pandoc-style Heading<span class="nt">&lt;/h2&gt;</span>
839
- <span class="nt">&lt;h1</span> <span class="na">id=</span><span class="s">"custom-id"</span> <span class="na">class=</span><span class="s">"highlight"</span><span class="nt">&gt;</span>Heading<span class="nt">&lt;/h1&gt;</span>
840
- <span class="nt">&lt;h1</span> <span class="na">id=</span><span class="s">"pandoc-id-2"</span> <span class="na">class=</span><span class="s">"highlight"</span><span class="nt">&gt;</span>Pandoc-style Heading<span class="nt">&lt;/h1&gt;</span>
841
- <span class="nt">&lt;h2</span> <span class="na">class=</span><span class="s">"section-title"</span> <span class="na">lang=</span><span class="s">"en"</span><span class="nt">&gt;</span>Another Heading<span class="nt">&lt;/h2&gt;</span>
842
- </code></pre>
955
+ <div class="highlight">
956
+ <pre><span></span><span class="p">&lt;</span><span class="nt">h1</span> <span class="na">id</span><span class="o">=</span><span class="s">&quot;custom-id&quot;</span><span class="p">&gt;</span>Heading<span class="p">&lt;/</span><span class="nt">h1</span><span class="p">&gt;</span>
957
+ <span class="p">&lt;</span><span class="nt">h2</span> <span class="na">class</span><span class="o">=</span><span class="s">&quot;highlight large&quot;</span><span class="p">&gt;</span>Another Heading<span class="p">&lt;/</span><span class="nt">h2</span><span class="p">&gt;</span>
958
+ <span class="p">&lt;</span><span class="nt">h2</span> <span class="na">id</span><span class="o">=</span><span class="s">&quot;pandoc-id&quot;</span> <span class="na">class</span><span class="o">=</span><span class="s">&quot;highlight&quot;</span><span class="p">&gt;</span>Pandoc-style Heading<span class="p">&lt;/</span><span class="nt">h2</span><span class="p">&gt;</span>
959
+ <span class="p">&lt;</span><span class="nt">h1</span> <span class="na">id</span><span class="o">=</span><span class="s">&quot;custom-id&quot;</span> <span class="na">class</span><span class="o">=</span><span class="s">&quot;highlight&quot;</span><span class="p">&gt;</span>Heading<span class="p">&lt;/</span><span class="nt">h1</span><span class="p">&gt;</span>
960
+ <span class="p">&lt;</span><span class="nt">h1</span> <span class="na">id</span><span class="o">=</span><span class="s">&quot;pandoc-id-2&quot;</span> <span class="na">class</span><span class="o">=</span><span class="s">&quot;highlight&quot;</span><span class="p">&gt;</span>Pandoc-style Heading<span class="p">&lt;/</span><span class="nt">h1</span><span class="p">&gt;</span>
961
+ <span class="p">&lt;</span><span class="nt">h2</span> <span class="na">class</span><span class="o">=</span><span class="s">&quot;section-title&quot;</span> <span class="na">lang</span><span class="o">=</span><span class="s">&quot;en&quot;</span><span class="p">&gt;</span>Another Heading<span class="p">&lt;/</span><span class="nt">h2</span><span class="p">&gt;</span>
962
+ </pre>
963
+ </div>
843
964
 
844
965
  <h3 id="lists">
845
966
  Lists
846
967
  </h3>
847
968
 
848
- <pre><code class="highlight language-markdown"><span class="p">-</span> Item 1
849
- <span class="p">-</span> Item 2
850
- <span class="p">-</span> Item 3
969
+ <div class="highlight">
970
+ <pre><span></span><span class="k">-</span><span class="w"> </span>Item 1
971
+ <span class="k">-</span><span class="w"> </span>Item 2
972
+ <span class="k">-</span><span class="w"> </span>Item 3
851
973
 
852
974
  {: .unordered-list .compact}
853
- <span class="p">
854
- 1.</span> First
855
- <span class="p">2.</span> Second
856
- <span class="p">3.</span> Third
857
975
 
858
- {: #ordered-list .numbered}
859
- </code></pre>
976
+ <span class="k">1.</span> First
977
+ <span class="k">2.</span> Second
978
+ <span class="k">3.</span> Third
979
+
980
+ {: <span class="ni">#ordered</span>-list .numbered}
981
+ </pre>
982
+ </div>
860
983
 
861
984
  <p>
862
985
  Output:
863
986
  </p>
864
987
 
865
- <pre><code class="highlight language-html"><span class="nt">&lt;ul</span> <span class="na">class=</span><span class="s">"unordered-list compact"</span><span class="nt">&gt;</span>
866
- <span class="nt">&lt;li&gt;</span>Item 1<span class="nt">&lt;/li&gt;</span>
867
- <span class="nt">&lt;li&gt;</span>Item 2<span class="nt">&lt;/li&gt;</span>
868
- <span class="nt">&lt;li&gt;</span>Item 3<span class="nt">&lt;/li&gt;</span>
869
- <span class="nt">&lt;/ul&gt;</span>
870
- <span class="nt">&lt;ol</span> <span class="na">id=</span><span class="s">"ordered-list"</span> <span class="na">class=</span><span class="s">"numbered"</span><span class="nt">&gt;</span>
871
- <span class="nt">&lt;li&gt;</span>First<span class="nt">&lt;/li&gt;</span>
872
- <span class="nt">&lt;li&gt;</span>Second<span class="nt">&lt;/li&gt;</span>
873
- <span class="nt">&lt;li&gt;</span>Third<span class="nt">&lt;/li&gt;</span>
874
- <span class="nt">&lt;/ol&gt;</span>
875
- </code></pre>
988
+ <div class="highlight">
989
+ <pre><span></span><span class="p">&lt;</span><span class="nt">ul</span> <span class="na">class</span><span class="o">=</span><span class="s">&quot;unordered-list compact&quot;</span><span class="p">&gt;</span>
990
+ <span class="p">&lt;</span><span class="nt">li</span><span class="p">&gt;</span>Item 1<span class="p">&lt;/</span><span class="nt">li</span><span class="p">&gt;</span>
991
+ <span class="p">&lt;</span><span class="nt">li</span><span class="p">&gt;</span>Item 2<span class="p">&lt;/</span><span class="nt">li</span><span class="p">&gt;</span>
992
+ <span class="p">&lt;</span><span class="nt">li</span><span class="p">&gt;</span>Item 3<span class="p">&lt;/</span><span class="nt">li</span><span class="p">&gt;</span>
993
+ <span class="p">&lt;/</span><span class="nt">ul</span><span class="p">&gt;</span>
994
+ <span class="p">&lt;</span><span class="nt">ol</span> <span class="na">id</span><span class="o">=</span><span class="s">&quot;ordered-list&quot;</span> <span class="na">class</span><span class="o">=</span><span class="s">&quot;numbered&quot;</span><span class="p">&gt;</span>
995
+ <span class="p">&lt;</span><span class="nt">li</span><span class="p">&gt;</span>First<span class="p">&lt;/</span><span class="nt">li</span><span class="p">&gt;</span>
996
+ <span class="p">&lt;</span><span class="nt">li</span><span class="p">&gt;</span>Second<span class="p">&lt;/</span><span class="nt">li</span><span class="p">&gt;</span>
997
+ <span class="p">&lt;</span><span class="nt">li</span><span class="p">&gt;</span>Third<span class="p">&lt;/</span><span class="nt">li</span><span class="p">&gt;</span>
998
+ <span class="p">&lt;/</span><span class="nt">ol</span><span class="p">&gt;</span>
999
+ </pre>
1000
+ </div>
876
1001
 
877
1002
  <h3 id="blockquotes">
878
1003
  Blockquotes
879
1004
  </h3>
880
1005
 
881
- <pre><code class="highlight language-markdown"><span class="gt">&gt; This is a quote.</span>
1006
+ <div class="highlight">
1007
+ <pre><span></span><span class="k">&gt; </span><span class="ge">This is a quote.</span>
882
1008
 
883
1009
  {: .quote .inspirational}
884
- <span class="gt">
885
- &gt; Another quote with attribution.</span>
886
- </code></pre>
1010
+
1011
+ <span class="k">&gt; </span><span class="ge">Another quote with attribution.</span>
1012
+ </pre>
1013
+ </div>
887
1014
 
888
1015
  <p>
889
1016
  Output:
890
1017
  </p>
891
1018
 
892
- <pre><code class="highlight language-html"><span class="nt">&lt;blockquote</span> <span class="na">class=</span><span class="s">"quote inspirational"</span><span class="nt">&gt;</span>
893
- <span class="nt">&lt;p&gt;</span>This is a quote.<span class="nt">&lt;/p&gt;</span>
894
- <span class="nt">&lt;/blockquote&gt;</span>
895
- <span class="nt">&lt;blockquote</span> <span class="na">cite=</span><span class="s">"https://example.com"</span><span class="nt">&gt;</span>
896
- <span class="nt">&lt;p&gt;</span>Another quote with attribution.<span class="nt">&lt;/p&gt;</span>
897
- <span class="nt">&lt;/blockquote&gt;</span>
898
- </code></pre>
1019
+ <div class="highlight">
1020
+ <pre><span></span><span class="p">&lt;</span><span class="nt">blockquote</span> <span class="na">class</span><span class="o">=</span><span class="s">&quot;quote inspirational&quot;</span><span class="p">&gt;</span>
1021
+ <span class="p">&lt;</span><span class="nt">p</span><span class="p">&gt;</span>This is a quote.<span class="p">&lt;/</span><span class="nt">p</span><span class="p">&gt;</span>
1022
+ <span class="p">&lt;/</span><span class="nt">blockquote</span><span class="p">&gt;</span>
1023
+ <span class="p">&lt;</span><span class="nt">blockquote</span> <span class="na">cite</span><span class="o">=</span><span class="s">&quot;https://example.com&quot;</span><span class="p">&gt;</span>
1024
+ <span class="p">&lt;</span><span class="nt">p</span><span class="p">&gt;</span>Another quote with attribution.<span class="p">&lt;/</span><span class="nt">p</span><span class="p">&gt;</span>
1025
+ <span class="p">&lt;/</span><span class="nt">blockquote</span><span class="p">&gt;</span>
1026
+ </pre>
1027
+ </div>
899
1028
 
900
1029
  <h3 id="tables">
901
1030
  Tables
@@ -905,64 +1034,63 @@ Another paragraph with custom attributes.
905
1034
  Tables can have IALs applied on a separate line after the table:
906
1035
  </p>
907
1036
 
908
- <pre><code class="highlight language-markdown">| Key | Value |
909
- | --- | :---: |
1037
+ <div class="highlight">
1038
+ <pre><span></span>| Key | Value |
1039
+ | --- | <span class=\"emoji\">:---:</span> |
910
1040
  | one | 1 |
911
- | --- | --- |
912
1041
  | two | 2 |
913
1042
 
914
- {: #data-table .striped .bordered}
915
- </code></pre>
1043
+ {: <span class="ni">#data</span>-table .striped .bordered}
1044
+ </pre>
1045
+ </div>
916
1046
 
917
1047
  <p>
918
1048
  Output:
919
1049
  </p>
920
1050
 
921
- <pre><code class="highlight language-html"><span class="nt">&lt;table</span> <span class="na">id=</span><span class="s">"data-table"</span> <span class="na">class=</span><span class="s">"striped bordered"</span><span class="nt">&gt;</span>
922
- <span class="c">&lt;!-- table content --&gt;</span>
923
- <span class="nt">&lt;/table&gt;</span>
924
- </code></pre>
925
-
926
- <p>
927
- <strong> Pandoc table_attributes extension:</strong>
928
- </p>
1051
+ <div class="highlight">
1052
+ <pre><span></span><span class="p">&lt;</span><span class="nt">table</span> <span class="na">id</span><span class="o">=</span><span class="s">&quot;data-table&quot;</span> <span class="na">class</span><span class="o">=</span><span class="s">&quot;striped bordered&quot;</span><span class="p">&gt;</span>
1053
+ <span class="cm">&lt;!-- table content --&gt;</span>
1054
+ <span class="p">&lt;/</span><span class="nt">table</span><span class="p">&gt;</span>
1055
+ </pre>
1056
+ </div>
929
1057
 
930
1058
  <p>
1059
+ <strong>Pandoc table_attributes extension:</strong>
931
1060
  Apex also supports Pandoc’s <code>table_attributes</code> extension, which allows IAL attributes to be specified in table captions. When using Pandoc-style captions with the <code>: Caption</code> syntax, IAL attributes in the caption are extracted and applied to the table:
932
1061
  </p>
933
1062
 
934
- <pre><code class="highlight language-markdown">| Key | Value |
935
- | --- | :---: |
1063
+ <div class="highlight">
1064
+ <pre><span></span>| Key | Value |
1065
+ | --- | <span class=\"emoji\">:---:</span> |
936
1066
  | one | 1 |
937
- | --- | --- |
938
1067
  | two | 2 |
939
1068
 
940
- : Key value table {#table-id .testing key="value"}
941
- </code></pre>
1069
+ : Key value table {#table-id .testing key=&quot;value&quot;}
1070
+ </pre>
1071
+ </div>
942
1072
 
943
1073
  <p>
944
1074
  This is equivalent to:
945
1075
  </p>
946
1076
 
947
- <pre><code class="highlight language-markdown">| Key | Value |
948
- | --- | :---: |
1077
+ <div class="highlight">
1078
+ <pre><span></span>| Key | Value |
1079
+ | --- | <span class=\"emoji\">:---:</span> |
949
1080
  | one | 1 |
950
- | --- | --- |
951
1081
  | two | 2 |
952
1082
 
953
- {: #table-id .testing key="value"}
954
- </code></pre>
1083
+ {: <span class="ni">#table</span>-id .testing key=&quot;value&quot;}
1084
+ </pre>
1085
+ </div>
955
1086
 
956
1087
  <p>
957
1088
  Both Kramdown-style IALs (<code>{: #id .class}</code>) and Pandoc-style IALs without the colon (<code>{#id .class}</code>) are supported in table captions.
958
- </p>
959
-
960
- <p>
961
- <strong> Note:</strong> The <code>: Caption</code> syntax only works when adjacent to a table to avoid conflicts with definition list syntax. See <a href="Syntax.html">Syntax</a> for more details on table captions.
1089
+ <strong>Note:</strong> The <code>: Caption</code> syntax only works when adjacent to a table to avoid conflicts with definition list syntax. See <a href="Syntax.html">Syntax</a> for more details on table captions.
962
1090
  </p>
963
1091
 
964
1092
  <h2 id="inline-ials">
965
- Inline IALs
1093
+ Inline&nbsp;IALs
966
1094
  </h2>
967
1095
 
968
1096
  <p>
@@ -973,90 +1101,349 @@ Another paragraph with custom attributes.
973
1101
  Links
974
1102
  </h3>
975
1103
 
976
- <pre><code class="highlight language-markdown">This is a <span class="p">[</span><span class="nv">regular link</span><span class="p">](</span><span class="sx">https://example.com</span><span class="p">)</span> without attributes.
1104
+ <div class="highlight">
1105
+ <pre><span></span>This is a [<span class="nt">regular link</span>](<span class="na">https://example.com</span>) without attributes.
977
1106
 
978
- Here's a <span class="p">[</span><span class="nv">styled link</span><span class="p">](</span><span class="sx">https://example.com</span><span class="p">)</span>{:.button} with a button class.
1107
+ Here&#39;s a [<span class="nt">styled link</span>](<span class="na">https://example.com</span>){:.button} with a button class.
979
1108
 
980
- Here's a <span class="p">[</span><span class="nv">Pandoc-style link</span><span class="p">](</span><span class="sx">https://example.com</span><span class="p">)</span>{#link-id .button} with attributes.
1109
+ Here&#39;s a [<span class="nt">Pandoc-style link</span>](<span class="na">https://example.com</span>){#link-id .button} with attributes.
981
1110
 
982
- You can have <span class="p">[</span><span class="nv">multiple links</span><span class="p">](</span><span class="sx">https://example.com</span><span class="p">)</span>{:.link-primary} with <span class="p">[</span><span class="nv">different classes</span><span class="p">](</span><span class="sx">https://example.com</span><span class="p">)</span>{:.link-secondary} in the same paragraph.
1111
+ You can have [<span class="nt">multiple links</span>](<span class="na">https://example.com</span>){:.link-primary} with [<span class="nt">different classes</span>](<span class="na">https://example.com</span>){:.link-secondary} in the same paragraph.
983
1112
 
984
- A link with <span class="p">[</span><span class="nv">custom attributes</span><span class="p">](</span><span class="sx">https://example.com</span><span class="p">)</span>{:rel="nofollow" title="External Link"}.
985
- </code></pre>
1113
+ A link with [<span class="nt">custom attributes</span>](<span class="na">https://example.com</span>){:rel=&quot;nofollow&quot; title=&quot;External Link&quot;}.
1114
+ </pre>
1115
+ </div>
986
1116
 
987
1117
  <p>
988
1118
  Output:
989
1119
  </p>
990
1120
 
991
- <pre><code class="highlight language-html"><span class="nt">&lt;p&gt;</span>This is a <span class="nt">&lt;a</span> <span class="na">href=</span><span class="s">"https://example.com"</span><span class="nt">&gt;</span>regular link<span class="nt">&lt;/a&gt;</span> without attributes.<span class="nt">&lt;/p&gt;</span>
992
- <span class="nt">&lt;p&gt;</span>Here's a <span class="nt">&lt;a</span> <span class="na">href=</span><span class="s">"https://example.com"</span> <span class="na">class=</span><span class="s">"button"</span><span class="nt">&gt;</span>styled link<span class="nt">&lt;/a&gt;</span> with a button class.<span class="nt">&lt;/p&gt;</span>
993
- <span class="nt">&lt;p&gt;</span>Here's a <span class="nt">&lt;a</span> <span class="na">href=</span><span class="s">"https://example.com"</span> <span class="na">id=</span><span class="s">"link-id"</span> <span class="na">class=</span><span class="s">"button"</span><span class="nt">&gt;</span>Pandoc-style link<span class="nt">&lt;/a&gt;</span> with attributes.<span class="nt">&lt;/p&gt;</span>
994
- <span class="nt">&lt;p&gt;</span>You can have <span class="nt">&lt;a</span> <span class="na">href=</span><span class="s">"https://example.com"</span> <span class="na">class=</span><span class="s">"link-primary"</span><span class="nt">&gt;</span>multiple links<span class="nt">&lt;/a&gt;</span> with <span class="nt">&lt;a</span> <span class="na">href=</span><span class="s">"https://example.com"</span> <span class="na">class=</span><span class="s">"link-secondary"</span><span class="nt">&gt;</span>different classes<span class="nt">&lt;/a&gt;</span> in the same paragraph.<span class="nt">&lt;/p&gt;</span>
995
- <span class="nt">&lt;p&gt;</span>A link with <span class="nt">&lt;a</span> <span class="na">href=</span><span class="s">"https://example.com"</span> <span class="na">rel=</span><span class="s">"nofollow"</span> <span class="na">title=</span><span class="s">"External Link"</span><span class="nt">&gt;</span>custom attributes<span class="nt">&lt;/a&gt;</span>.<span class="nt">&lt;/p&gt;</span>
996
- </code></pre>
1121
+ <div class="highlight">
1122
+ <pre><span></span><span class="p">&lt;</span><span class="nt">p</span><span class="p">&gt;</span>This is a <span class="p">&lt;</span><span class="nt">a</span> <span class="na">href</span><span class="o">=</span><span class="s">&quot;https://example.com&quot;</span><span class="p">&gt;</span>regular link<span class="p">&lt;/</span><span class="nt">a</span><span class="p">&gt;</span> without attributes.<span class="p">&lt;/</span><span class="nt">p</span><span class="p">&gt;</span>
1123
+ <span class="p">&lt;</span><span class="nt">p</span><span class="p">&gt;</span>Here&#39;s a <span class="p">&lt;</span><span class="nt">a</span> <span class="na">href</span><span class="o">=</span><span class="s">&quot;https://example.com&quot;</span> <span class="na">class</span><span class="o">=</span><span class="s">&quot;button&quot;</span><span class="p">&gt;</span>styled link<span class="p">&lt;/</span><span class="nt">a</span><span class="p">&gt;</span> with a button class.<span class="p">&lt;/</span><span class="nt">p</span><span class="p">&gt;</span>
1124
+ <span class="p">&lt;</span><span class="nt">p</span><span class="p">&gt;</span>Here&#39;s a <span class="p">&lt;</span><span class="nt">a</span> <span class="na">href</span><span class="o">=</span><span class="s">&quot;https://example.com&quot;</span> <span class="na">id</span><span class="o">=</span><span class="s">&quot;link-id&quot;</span> <span class="na">class</span><span class="o">=</span><span class="s">&quot;button&quot;</span><span class="p">&gt;</span>Pandoc-style link<span class="p">&lt;/</span><span class="nt">a</span><span class="p">&gt;</span> with attributes.<span class="p">&lt;/</span><span class="nt">p</span><span class="p">&gt;</span>
1125
+ <span class="p">&lt;</span><span class="nt">p</span><span class="p">&gt;</span>You can have <span class="p">&lt;</span><span class="nt">a</span> <span class="na">href</span><span class="o">=</span><span class="s">&quot;https://example.com&quot;</span> <span class="na">class</span><span class="o">=</span><span class="s">&quot;link-primary&quot;</span><span class="p">&gt;</span>multiple links<span class="p">&lt;/</span><span class="nt">a</span><span class="p">&gt;</span> with <span class="p">&lt;</span><span class="nt">a</span> <span class="na">href</span><span class="o">=</span><span class="s">&quot;https://example.com&quot;</span> <span class="na">class</span><span class="o">=</span><span class="s">&quot;link-secondary&quot;</span><span class="p">&gt;</span>different classes<span class="p">&lt;/</span><span class="nt">a</span><span class="p">&gt;</span> in the same paragraph.<span class="p">&lt;/</span><span class="nt">p</span><span class="p">&gt;</span>
1126
+ <span class="p">&lt;</span><span class="nt">p</span><span class="p">&gt;</span>A link with <span class="p">&lt;</span><span class="nt">a</span> <span class="na">href</span><span class="o">=</span><span class="s">&quot;https://example.com&quot;</span> <span class="na">rel</span><span class="o">=</span><span class="s">&quot;nofollow&quot;</span> <span class="na">title</span><span class="o">=</span><span class="s">&quot;External Link&quot;</span><span class="p">&gt;</span>custom attributes<span class="p">&lt;/</span><span class="nt">a</span><span class="p">&gt;</span>.<span class="p">&lt;/</span><span class="nt">p</span><span class="p">&gt;</span>
1127
+ </pre>
1128
+ </div>
997
1129
 
998
1130
  <h3 id="images">
999
1131
  Images
1000
1132
  </h3>
1001
1133
 
1002
- <pre><code class="highlight language-markdown"><span class="p">![</span><span class="nv">Regular image</span><span class="p">](</span><span class="sx">image.png</span><span class="p">)</span>
1134
+ <div class="highlight">
1135
+ <pre><span></span>![<span class="nt">Regular image</span>](<span class="na">image.png</span>)
1003
1136
 
1004
- <span class="p">![</span><span class="nv">Styled image</span><span class="p">](</span><span class="sx">logo.png</span><span class="p">)</span>
1137
+ ![<span class="nt">Styled image</span>](<span class="na">logo.png</span>)
1005
1138
 
1006
- <span class="p">![</span><span class="nv">Image with ID</span><span class="p">](</span><span class="sx">icon.png</span><span class="p">)</span>
1139
+ ![<span class="nt">Image with ID</span>](<span class="na">icon.png</span>)
1007
1140
 
1008
- <span class="p">![</span><span class="nv">Image with title</span><span class="p">](</span><span class="sx">photo.jpg</span><span class="p">)</span>
1009
- </code></pre>
1141
+ ![<span class="nt">Image with title</span>](<span class="na">photo.jpg</span>)
1142
+ </pre>
1143
+ </div>
1010
1144
 
1011
1145
  <p>
1012
1146
  Output:
1013
1147
  </p>
1014
1148
 
1015
- <pre><code class="highlight language-html"><span class="nt">&lt;p&gt;&lt;img</span> <span class="na">src=</span><span class="s">"image.png"</span> <span class="na">alt=</span><span class="s">"Regular image"</span> <span class="nt">/&gt;&lt;/p&gt;</span>
1016
- <span class="nt">&lt;p&gt;&lt;img</span> <span class="na">src=</span><span class="s">"logo.png"</span> <span class="na">alt=</span><span class="s">"Styled image"</span> <span class="na">class=</span><span class="s">"logo centered"</span> <span class="nt">/&gt;&lt;/p&gt;</span>
1017
- <span class="nt">&lt;p&gt;&lt;img</span> <span class="na">src=</span><span class="s">"icon.png"</span> <span class="na">alt=</span><span class="s">"Image with ID"</span> <span class="na">id=</span><span class="s">"site-icon"</span> <span class="na">class=</span><span class="s">"icon"</span> <span class="nt">/&gt;&lt;/p&gt;</span>
1018
- <span class="nt">&lt;p&gt;&lt;img</span> <span class="na">src=</span><span class="s">"photo.jpg"</span> <span class="na">alt=</span><span class="s">"Image with title"</span> <span class="na">title=</span><span class="s">"Photo Title"</span> <span class="na">alt=</span><span class="s">"Photo description"</span> <span class="nt">/&gt;&lt;/p&gt;</span>
1019
- </code></pre>
1149
+ <div class="highlight">
1150
+ <pre><span></span><span class="p">&lt;</span><span class="nt">p</span><span class="p">&gt;&lt;</span><span class="nt">img</span> <span class="na">src</span><span class="o">=</span><span class="s">&quot;image.png&quot;</span> <span class="na">alt</span><span class="o">=</span><span class="s">&quot;Regular image&quot;</span> <span class="p">/&gt;&lt;/</span><span class="nt">p</span><span class="p">&gt;</span>
1151
+ <span class="p">&lt;</span><span class="nt">p</span><span class="p">&gt;&lt;</span><span class="nt">img</span> <span class="na">src</span><span class="o">=</span><span class="s">&quot;logo.png&quot;</span> <span class="na">alt</span><span class="o">=</span><span class="s">&quot;Styled image&quot;</span> <span class="na">class</span><span class="o">=</span><span class="s">&quot;logo centered&quot;</span> <span class="p">/&gt;&lt;/</span><span class="nt">p</span><span class="p">&gt;</span>
1152
+ <span class="p">&lt;</span><span class="nt">p</span><span class="p">&gt;&lt;</span><span class="nt">img</span> <span class="na">src</span><span class="o">=</span><span class="s">&quot;icon.png&quot;</span> <span class="na">alt</span><span class="o">=</span><span class="s">&quot;Image with ID&quot;</span> <span class="na">id</span><span class="o">=</span><span class="s">&quot;site-icon&quot;</span> <span class="na">class</span><span class="o">=</span><span class="s">&quot;icon&quot;</span> <span class="p">/&gt;&lt;/</span><span class="nt">p</span><span class="p">&gt;</span>
1153
+ <span class="p">&lt;</span><span class="nt">p</span><span class="p">&gt;&lt;</span><span class="nt">img</span> <span class="na">src</span><span class="o">=</span><span class="s">&quot;photo.jpg&quot;</span> <span class="na">alt</span><span class="o">=</span><span class="s">&quot;Image with title&quot;</span> <span class="na">title</span><span class="o">=</span><span class="s">&quot;Photo Title&quot;</span> <span class="na">alt</span><span class="o">=</span><span class="s">&quot;Photo description&quot;</span> <span class="p">/&gt;&lt;/</span><span class="nt">p</span><span class="p">&gt;</span>
1154
+ </pre>
1155
+ </div>
1156
+
1157
+ <h3 id="multimarkdown-style-image-attributes">
1158
+ MultiMarkdown-style image&nbsp;attributes
1159
+ </h3>
1160
+
1161
+ <p>
1162
+ In <strong>MultiMarkdown</strong> and <strong>unified</strong> modes, Apex also understands
1163
+ MultiMarkdown-style attributes on images, both inline and reference-style.
1164
+ These attributes are parsed before the Markdown is sent to the core parser and
1165
+ are applied to the resulting <code>&lt;img&gt;</code> element in the same way as IALs.
1166
+ </p>
1167
+
1168
+ <h4 id="inline-images">
1169
+ Inline&nbsp;images
1170
+ </h4>
1171
+
1172
+ <p>
1173
+ You can place attributes directly inside the image parentheses:
1174
+ </p>
1175
+
1176
+ <div class="highlight">
1177
+ <pre><span></span>![<span class="nt">Inline no title</span>](<span class="na">/images/test-inline-1.jpg </span>)
1178
+
1179
+ ![<span class="nt">Inline with title</span>](<span class="na">/images/test-inline-2.jpg </span>)
1180
+
1181
+ ![<span class="nt">Inline percent</span>](<span class="na">/images/test-inline-3.jpg </span>)
1182
+
1183
+ ![<span class="nt">Inline classes</span>](<span class="na">/images/test-inline-4.jpg </span>)
1184
+ </pre>
1185
+ </div>
1186
+
1187
+ <p>
1188
+ Produces HTML equivalent to:
1189
+ </p>
1190
+
1191
+ <div class="highlight">
1192
+ <pre><span></span><span class="p">&lt;</span><span class="nt">img</span> <span class="na">src</span><span class="o">=</span><span class="s">&quot;/images/test-inline-1.jpg&quot;</span> <span class="na">alt</span><span class="o">=</span><span class="s">&quot;Inline no title&quot;</span> <span class="na">width</span><span class="o">=</span><span class="s">&quot;200&quot;</span><span class="p">&gt;</span>
1193
+ <span class="p">&lt;</span><span class="nt">img</span> <span class="na">src</span><span class="o">=</span><span class="s">&quot;/images/test-inline-2.jpg&quot;</span> <span class="na">alt</span><span class="o">=</span><span class="s">&quot;Inline with title&quot;</span> <span class="na">title</span><span class="o">=</span><span class="s">&quot;Falafel&quot;</span> <span class="na">width</span><span class="o">=</span><span class="s">&quot;300&quot;</span><span class="p">&gt;</span>
1194
+ <span class="p">&lt;</span><span class="nt">img</span> <span class="na">src</span><span class="o">=</span><span class="s">&quot;/images/test-inline-3.jpg&quot;</span> <span class="na">alt</span><span class="o">=</span><span class="s">&quot;Inline percent&quot;</span> <span class="na">style</span><span class="o">=</span><span class="s">&quot;width: 50%&quot;</span><span class="p">&gt;</span>
1195
+ <span class="p">&lt;</span><span class="nt">img</span> <span class="na">src</span><span class="o">=</span><span class="s">&quot;/images/test-inline-4.jpg&quot;</span> <span class="na">alt</span><span class="o">=</span><span class="s">&quot;Inline classes&quot;</span> <span class="na">class</span><span class="o">=</span><span class="s">&quot;center shadow&quot;</span> <span class="na">width</span><span class="o">=</span><span class="s">&quot;250&quot;</span> <span class="na">style</span><span class="o">=</span><span class="s">&quot;height: 60%&quot;</span> <span class="na">title</span><span class="o">=</span><span class="s">&quot;Caption&quot;</span><span class="p">&gt;</span>
1196
+ </pre>
1197
+ </div>
1198
+
1199
+ <h4 id="reference-style-images">
1200
+ Reference-style&nbsp;images
1201
+ </h4>
1202
+
1203
+ <p>
1204
+ The same attribute syntax works on reference definitions:
1205
+ </p>
1206
+
1207
+ <div class="highlight">
1208
+ <pre><span></span>![<span class="nt">Ref with attrs</span>](<span class="na">/images/test-ref-1.jpg</span>)
1209
+
1210
+ ![<span class="nt">Ref with title</span>](<span class="na">/images/test-ref-2.jpg</span>)
1211
+
1212
+ ![<span class="nt">Ref percent</span>](<span class="na">/images/test-ref-3.jpg</span>)
1213
+
1214
+ ![<span class="nt">Ref classes</span>](<span class="na">/images/test-ref-4.jpg</span>)
1215
+ </pre>
1216
+ </div>
1217
+
1218
+ <p>
1219
+ Here Apex stores the attributes on the reference definition and applies them to
1220
+ every image that uses that reference, including images inside fenced divs
1221
+ (::: … :::) and other HTML elements with markdown=“1”.
1222
+ </p>
1223
+
1224
+ <h3 id="bear-image-attribute-comments">
1225
+ Bear image attribute&nbsp;comments
1226
+ </h3>
1227
+
1228
+ <p>
1229
+ Bear stores image metadata in a JSON comment immediately after the image.
1230
+ Apex reads supported values from the comment while preserving the comment in
1231
+ the rendered output:
1232
+ </p>
1233
+
1234
+ <div class="highlight">
1235
+ <pre><span></span>![](emperor-1.jpg)&lt;!-- {&quot;width&quot;:259} --&gt;
1236
+ </pre>
1237
+ </div>
1238
+
1239
+ <p>
1240
+ With raw HTML enabled:
1241
+ </p>
1242
+
1243
+ <div class="highlight">
1244
+ <pre><span></span><span class="p">&lt;</span><span class="nt">img</span> <span class="na">src</span><span class="o">=</span><span class="s">&quot;emperor-1.jpg&quot;</span> <span class="na">alt</span><span class="o">=</span><span class="s">&quot;&quot;</span> <span class="na">width</span><span class="o">=</span><span class="s">&quot;259&quot;</span><span class="p">&gt;</span><span class="cm">&lt;!-- {&quot;width&quot;:259} --&gt;</span>
1245
+ </pre>
1246
+ </div>
1247
+
1248
+ <p>
1249
+ The comment must appear on the same line and immediately follow the image,
1250
+ apart from optional spaces or tabs:
1251
+ </p>
1252
+
1253
+ <div class="highlight">
1254
+ <pre><span></span>![](emperor-1.jpg) &lt;!-- {&quot;width&quot;:259,&quot;class&quot;:&quot;portrait&quot;} --&gt;
1255
+ </pre>
1256
+ </div>
1257
+
1258
+ <p>
1259
+ The syntax is recognized in CommonMark, GFM, MultiMarkdown, and unified
1260
+ modes. Kramdown mode does not interpret Bear comments as image attributes.
1261
+ </p>
1262
+
1263
+ <h4 id="reference-images">
1264
+ Reference&nbsp;images
1265
+ </h4>
1266
+
1267
+ <p>
1268
+ A Bear comment on an explicit reference image applies only to that use:
1269
+ </p>
1270
+
1271
+ <div class="highlight">
1272
+ <pre><span></span>![<span class="nt">Small portrait</span>](<span class="na">emperor-1.jpg</span>)
1273
+ ![<span class="nt">Large portrait</span>](<span class="na">emperor-1.jpg</span>)&lt;!-- {&quot;width&quot;:520} --&gt;
1274
+
1275
+ [<span class="nl">emperor</span>]: <span class="na">emperor-1.jpg</span>
1276
+ </pre>
1277
+ </div>
1278
+
1279
+ <p>
1280
+ A comment on the reference definition supplies attributes to every image
1281
+ that uses the reference:
1282
+ </p>
1283
+
1284
+ <div class="highlight">
1285
+ <pre><span></span>![<span class="nt">Portrait</span>](<span class="na">emperor-1.jpg</span>)
1286
+ ![<span class="nt">Portrait again</span>](<span class="na">emperor-1.jpg</span>)
1287
+
1288
+ &lt;!-- {&quot;width&quot;:259,&quot;height&quot;:194} --&gt;
1289
+ </pre>
1290
+ </div>
1291
+
1292
+ <p>
1293
+ Definition attributes are the baseline. When an explicit
1294
+ <code>![alt][reference]</code> use has its own Bear comment, its values override
1295
+ conflicting definition attributes for that image only. Existing image
1296
+ attribute syntaxes are merged first, so an adjacent Bear comment wins when
1297
+ the same key is specified more than once.
1298
+ </p>
1299
+
1300
+ <h4 id="supported-values-and-safety">
1301
+ Supported values&nbsp;and&nbsp;safety
1302
+ </h4>
1303
+
1304
+ <p>
1305
+ Apex allows the same image attributes accepted by its existing IAL and
1306
+ MultiMarkdown handling:
1307
+ </p>
1308
+
1309
+ <ul>
1310
+
1311
+ <li>
1312
+ <code>width</code>
1313
+ </li>
1314
+
1315
+ <li>
1316
+ <code>height</code>
1317
+ </li>
1318
+
1319
+ <li>
1320
+ <code>style</code>
1321
+ </li>
1322
+
1323
+ <li>
1324
+ <code>class</code>
1325
+ </li>
1326
+
1327
+ <li>
1328
+ <code>id</code>
1329
+ </li>
1330
+
1331
+ <li>
1332
+ <code>rel</code>
1333
+ </li>
1334
+
1335
+ <li>
1336
+ <code>title</code>
1337
+ Unknown keys and object or array values are ignored. <code>width</code> and <code>height</code>
1338
+ accept strings or numbers; the other allowed keys accept strings only.
1339
+ Boolean and <code>null</code> values do not add attributes. Invalid JSON does not add
1340
+ any Bear attributes.
1341
+ With raw HTML enabled, the source comment remains in the output. A comment on
1342
+ a reference definition is rendered once, not once per image use. In safe
1343
+ CommonMark output, Apex still applies the supported attributes, but cmark’s
1344
+ normal safe-HTML behavior replaces the comment with
1345
+ <code>&lt;!-- raw HTML omitted --&gt;</code>.
1346
+ </li>
1347
+
1348
+ </ul>
1349
+
1350
+ <h4 id="url-handling-and-attributes">
1351
+ URL handling and&nbsp;attributes
1352
+ </h4>
1353
+
1354
+ <p>
1355
+ In both inline and reference-style image syntax, a <strong>space after the URL</strong>
1356
+ separates the URL from attributes. The URL is everything before that space (or
1357
+ before the first <code>key=value</code> or <code>@2x</code>). URLs that contain a protocol
1358
+ (http://, https://) are not URL-encoded by Apex, so query parameters
1359
+ (e.g. <code>?size=250x83</code>) and ampersands in the URL are preserved in the output.
1360
+ You can safely use long or parameterized image URLs and add attributes
1361
+ after a space:
1362
+ </p>
1363
+
1364
+ <div class="highlight">
1365
+ <pre><span></span>
1366
+ </pre>
1367
+ </div>
1368
+
1369
+ <h4 id="width-and-height-handling">
1370
+ Width and height&nbsp;handling
1371
+ </h4>
1372
+
1373
+ <p>
1374
+ When MultiMarkdown-style attributes or IALs specify <code>width</code> or <code>height</code>, Apex
1375
+ normalizes them as follows (in all modes that support image attributes):
1376
+ </p>
1377
+
1378
+ <ul>
1379
+
1380
+ <li>
1381
+ Percentages such as <code>width=50%</code> become <code>style=&quot;width: 50%&quot;</code>.
1382
+ </li>
1383
+
1384
+ <li>
1385
+ Integer pixel values such as <code>width=300px</code> become <code>width=&quot;300&quot;</code>.
1386
+ </li>
1387
+
1388
+ <li>
1389
+ Bare integers such as <code>width=300</code> become <code>width=&quot;300&quot;</code>.
1390
+ </li>
1391
+
1392
+ <li>
1393
+ Other units (em, rem, vw, vh, etc.) are added to the <code>style</code> attribute
1394
+ (for example <code>width=5em height=10rem</code> becomes
1395
+ <code>style=&quot;width: 5em; height: 10rem&quot;</code>).
1396
+ </li>
1397
+
1398
+ </ul>
1020
1399
 
1021
1400
  <h3 id="emphasis-and-strong">
1022
- Emphasis and Strong
1401
+ Emphasis&nbsp;and&nbsp;Strong
1023
1402
  </h3>
1024
1403
 
1025
- <pre><code class="highlight language-markdown">This paragraph has <span class="gs">**bold text**</span>{:.bold-style} with a custom class and <span class="ge">*italic text*</span>{:.italic-style} with another class.
1404
+ <div class="highlight">
1405
+ <pre><span></span>This paragraph has <span class="gs">**bold text**</span>{:.bold-style} with a custom class and <span class="ge">*italic text*</span>{:.italic-style} with another class.
1026
1406
 
1027
1407
  You can combine <span class="gs">**bold**</span>{:.bold} and <span class="ge">*italic*</span>{:.italic} in the same paragraph with different styles.
1028
1408
 
1029
- Nested <span class="ge">**</span>bold with <span class="ge">*italic*</span>{:.nested-italic} inside<span class="ge">**</span>{:.bold-wrapper} works too.
1030
- </code></pre>
1409
+ Nested **bold with <span class="ge">*italic*</span>{:.nested-italic} inside**{:.bold-wrapper} works too.
1410
+ </pre>
1411
+ </div>
1031
1412
 
1032
1413
  <p>
1033
1414
  Output:
1034
1415
  </p>
1035
1416
 
1036
- <pre><code class="highlight language-html"><span class="nt">&lt;p&gt;</span>This paragraph has <span class="nt">&lt;strong</span> <span class="na">class=</span><span class="s">"bold-style"</span><span class="nt">&gt;</span>bold text<span class="nt">&lt;/strong&gt;</span> with a custom class and <span class="nt">&lt;em</span> <span class="na">class=</span><span class="s">"italic-style"</span><span class="nt">&gt;</span>italic text<span class="nt">&lt;/em&gt;</span> with another class.<span class="nt">&lt;/p&gt;</span>
1037
- <span class="nt">&lt;p&gt;</span>You can combine <span class="nt">&lt;strong</span> <span class="na">class=</span><span class="s">"bold"</span><span class="nt">&gt;</span>bold<span class="nt">&lt;/strong&gt;</span> and <span class="nt">&lt;em</span> <span class="na">class=</span><span class="s">"italic"</span><span class="nt">&gt;</span>italic<span class="nt">&lt;/em&gt;</span> in the same paragraph with different styles.<span class="nt">&lt;/p&gt;</span>
1038
- <span class="nt">&lt;p&gt;</span>Nested <span class="nt">&lt;strong</span> <span class="na">class=</span><span class="s">"bold-wrapper"</span><span class="nt">&gt;</span>bold with <span class="nt">&lt;em</span> <span class="na">class=</span><span class="s">"nested-italic"</span><span class="nt">&gt;</span>italic<span class="nt">&lt;/em&gt;</span> inside<span class="nt">&lt;/strong&gt;</span> works too.<span class="nt">&lt;/p&gt;</span>
1039
- </code></pre>
1417
+ <div class="highlight">
1418
+ <pre><span></span><span class="p">&lt;</span><span class="nt">p</span><span class="p">&gt;</span>This paragraph has <span class="p">&lt;</span><span class="nt">strong</span> <span class="na">class</span><span class="o">=</span><span class="s">&quot;bold-style&quot;</span><span class="p">&gt;</span>bold text<span class="p">&lt;/</span><span class="nt">strong</span><span class="p">&gt;</span> with a custom class and <span class="p">&lt;</span><span class="nt">em</span> <span class="na">class</span><span class="o">=</span><span class="s">&quot;italic-style&quot;</span><span class="p">&gt;</span>italic text<span class="p">&lt;/</span><span class="nt">em</span><span class="p">&gt;</span> with another class.<span class="p">&lt;/</span><span class="nt">p</span><span class="p">&gt;</span>
1419
+ <span class="p">&lt;</span><span class="nt">p</span><span class="p">&gt;</span>You can combine <span class="p">&lt;</span><span class="nt">strong</span> <span class="na">class</span><span class="o">=</span><span class="s">&quot;bold&quot;</span><span class="p">&gt;</span>bold<span class="p">&lt;/</span><span class="nt">strong</span><span class="p">&gt;</span> and <span class="p">&lt;</span><span class="nt">em</span> <span class="na">class</span><span class="o">=</span><span class="s">&quot;italic&quot;</span><span class="p">&gt;</span>italic<span class="p">&lt;/</span><span class="nt">em</span><span class="p">&gt;</span> in the same paragraph with different styles.<span class="p">&lt;/</span><span class="nt">p</span><span class="p">&gt;</span>
1420
+ <span class="p">&lt;</span><span class="nt">p</span><span class="p">&gt;</span>Nested <span class="p">&lt;</span><span class="nt">strong</span> <span class="na">class</span><span class="o">=</span><span class="s">&quot;bold-wrapper&quot;</span><span class="p">&gt;</span>bold with <span class="p">&lt;</span><span class="nt">em</span> <span class="na">class</span><span class="o">=</span><span class="s">&quot;nested-italic&quot;</span><span class="p">&gt;</span>italic<span class="p">&lt;/</span><span class="nt">em</span><span class="p">&gt;</span> inside<span class="p">&lt;/</span><span class="nt">strong</span><span class="p">&gt;</span> works too.<span class="p">&lt;/</span><span class="nt">p</span><span class="p">&gt;</span>
1421
+ </pre>
1422
+ </div>
1040
1423
 
1041
1424
  <h3 id="code-spans">
1042
- Code Spans
1425
+ Code&nbsp;Spans
1043
1426
  </h3>
1044
1427
 
1045
- <pre><code class="highlight language-markdown">Use <span class="sb">`inline code`</span>{:.code-inline} for code snippets with styling.
1428
+ <div class="highlight">
1429
+ <pre><span></span>Use <span class="sb">`inline code`</span>{:.code-inline} for code snippets with styling.
1046
1430
 
1047
1431
  You can have multiple <span class="sb">`code spans`</span>{:.code-1} and <span class="sb">`more code`</span>{:.code-2} with different classes.
1048
- </code></pre>
1432
+ </pre>
1433
+ </div>
1049
1434
 
1050
1435
  <p>
1051
1436
  Output:
1052
1437
  </p>
1053
1438
 
1054
- <pre><code class="highlight language-html"><span class="nt">&lt;p&gt;</span>Use <span class="nt">&lt;code</span> <span class="na">class=</span><span class="s">"code-inline"</span><span class="nt">&gt;</span>inline code<span class="nt">&lt;/code&gt;</span> for code snippets with styling.<span class="nt">&lt;/p&gt;</span>
1055
- <span class="nt">&lt;p&gt;</span>You can have multiple <span class="nt">&lt;code</span> <span class="na">class=</span><span class="s">"code-1"</span><span class="nt">&gt;</span>code spans<span class="nt">&lt;/code&gt;</span> and <span class="nt">&lt;code</span> <span class="na">class=</span><span class="s">"code-2"</span><span class="nt">&gt;</span>more code<span class="nt">&lt;/code&gt;</span> with different classes.<span class="nt">&lt;/p&gt;</span>
1056
- </code></pre>
1439
+ <div class="highlight">
1440
+ <pre><span></span><span class="p">&lt;</span><span class="nt">p</span><span class="p">&gt;</span>Use <span class="p">&lt;</span><span class="nt">code</span> <span class="na">class</span><span class="o">=</span><span class="s">&quot;code-inline&quot;</span><span class="p">&gt;</span>inline code<span class="p">&lt;/</span><span class="nt">code</span><span class="p">&gt;</span> for code snippets with styling.<span class="p">&lt;/</span><span class="nt">p</span><span class="p">&gt;</span>
1441
+ <span class="p">&lt;</span><span class="nt">p</span><span class="p">&gt;</span>You can have multiple <span class="p">&lt;</span><span class="nt">code</span> <span class="na">class</span><span class="o">=</span><span class="s">&quot;code-1&quot;</span><span class="p">&gt;</span>code spans<span class="p">&lt;/</span><span class="nt">code</span><span class="p">&gt;</span> and <span class="p">&lt;</span><span class="nt">code</span> <span class="na">class</span><span class="o">=</span><span class="s">&quot;code-2&quot;</span><span class="p">&gt;</span>more code<span class="p">&lt;/</span><span class="nt">code</span><span class="p">&gt;</span> with different classes.<span class="p">&lt;/</span><span class="nt">p</span><span class="p">&gt;</span>
1442
+ </pre>
1443
+ </div>
1057
1444
 
1058
1445
  <h2 id="attribute-syntax">
1059
- Attribute Syntax
1446
+ Attribute&nbsp;Syntax
1060
1447
  </h2>
1061
1448
 
1062
1449
  <p>
@@ -1064,109 +1451,119 @@ You can have multiple <span class="sb">`code spans`</span>{:.code-1} and <span c
1064
1451
  </p>
1065
1452
 
1066
1453
  <h3 id="1-ids">
1067
- 1. IDs
1454
+ 1.&nbsp;IDs
1068
1455
  </h3>
1069
1456
 
1070
1457
  <p>
1071
1458
  Use <code>#</code> followed by the ID name:
1072
1459
  </p>
1073
1460
 
1074
- <pre><code class="highlight language-markdown"><span class="gh"># Heading {: #section-1}</span>
1075
- </code></pre>
1461
+ <div class="highlight">
1462
+ <pre><span></span><span class="gh"># Heading {: #section-1}</span>
1463
+ </pre>
1464
+ </div>
1076
1465
 
1077
1466
  <p>
1078
1467
  Output: <code>&lt;h1 id=&quot;section-1&quot;&gt;Heading&lt;/h1&gt;</code>
1079
1468
  </p>
1080
1469
 
1081
1470
  <h3 id="2-classes">
1082
- 2. Classes
1471
+ 2.&nbsp;Classes
1083
1472
  </h3>
1084
1473
 
1085
1474
  <p>
1086
1475
  Use <code>.</code> followed by the class name. Multiple classes can be specified:
1087
1476
  </p>
1088
1477
 
1089
- <pre><code class="highlight language-markdown">Paragraph.
1478
+ <div class="highlight">
1479
+ <pre><span></span>Paragraph.
1090
1480
 
1091
1481
  {: .important .note .highlight}
1092
- </code></pre>
1482
+ </pre>
1483
+ </div>
1093
1484
 
1094
1485
  <p>
1095
1486
  Output: <code>&lt;p class=&quot;important note highlight&quot;&gt;Paragraph.&lt;/p&gt;</code>
1096
- </p>
1097
-
1098
- <p>
1099
- <strong> Note:</strong> Multiple <code>.class</code> specifiers are equivalent to a single <code>class</code> attribute with space-separated values.
1487
+ <strong>Note:</strong> Multiple <code>.class</code> specifiers are equivalent to a single <code>class</code> attribute with space-separated values.
1100
1488
  </p>
1101
1489
 
1102
1490
  <h3 id="3-key-value-pairs">
1103
- 3. Key-Value Pairs
1491
+ 3. Key-Value&nbsp;Pairs
1104
1492
  </h3>
1105
1493
 
1106
1494
  <p>
1107
1495
  Use <code>key=&quot;value&quot;</code> or <code>key='value'</code> for custom attributes. Values can be quoted (single or double quotes) or unquoted:
1108
1496
  </p>
1109
1497
 
1110
- <pre><code class="highlight language-markdown">Paragraph.
1498
+ <div class="highlight">
1499
+ <pre><span></span>Paragraph.
1111
1500
 
1112
- {: title="Important Note" lang="en" data-id="123"}
1501
+ {: title=&quot;Important Note&quot; lang=&quot;en&quot; data-id=&quot;123&quot;}
1113
1502
 
1114
1503
  Link with attributes.
1115
- <span class="p">[</span><span class="nv">Click here</span><span class="p">](</span><span class="sx">url</span><span class="p">)</span>{:rel="nofollow" target="_blank"}
1116
- </code></pre>
1504
+ [<span class="nt">Click here</span>](<span class="na">url</span>){:rel=&quot;nofollow&quot; target=&quot;_blank&quot;}
1505
+ </pre>
1506
+ </div>
1117
1507
 
1118
1508
  <p>
1119
1509
  Output:
1120
1510
  </p>
1121
1511
 
1122
- <pre><code class="highlight language-html"><span class="nt">&lt;p</span> <span class="na">title=</span><span class="s">"Important Note"</span> <span class="na">lang=</span><span class="s">"en"</span> <span class="na">data-id=</span><span class="s">"123"</span><span class="nt">&gt;</span>Paragraph.<span class="nt">&lt;/p&gt;</span>
1123
- <span class="nt">&lt;p&gt;</span>Link with attributes.
1124
- <span class="nt">&lt;a</span> <span class="na">href=</span><span class="s">"url"</span> <span class="na">rel=</span><span class="s">"nofollow"</span> <span class="na">target=</span><span class="s">"_blank"</span><span class="nt">&gt;</span>Click here<span class="nt">&lt;/a&gt;&lt;/p&gt;</span>
1125
- </code></pre>
1512
+ <div class="highlight">
1513
+ <pre><span></span><span class="p">&lt;</span><span class="nt">p</span> <span class="na">title</span><span class="o">=</span><span class="s">&quot;Important Note&quot;</span> <span class="na">lang</span><span class="o">=</span><span class="s">&quot;en&quot;</span> <span class="na">data-id</span><span class="o">=</span><span class="s">&quot;123&quot;</span><span class="p">&gt;</span>Paragraph.<span class="p">&lt;/</span><span class="nt">p</span><span class="p">&gt;</span>
1514
+ <span class="p">&lt;</span><span class="nt">p</span><span class="p">&gt;</span>Link with attributes.
1515
+ <span class="p">&lt;</span><span class="nt">a</span> <span class="na">href</span><span class="o">=</span><span class="s">&quot;url&quot;</span> <span class="na">rel</span><span class="o">=</span><span class="s">&quot;nofollow&quot;</span> <span class="na">target</span><span class="o">=</span><span class="s">&quot;_blank&quot;</span><span class="p">&gt;</span>Click here<span class="p">&lt;/</span><span class="nt">a</span><span class="p">&gt;&lt;/</span><span class="nt">p</span><span class="p">&gt;</span>
1516
+ </pre>
1517
+ </div>
1126
1518
 
1127
1519
  <p>
1128
- <strong> Quoted values:</strong> Use quotes when values contain spaces or special characters:
1520
+ <strong>Quoted values:</strong> Use quotes when values contain spaces or special characters:
1129
1521
  </p>
1130
1522
 
1131
- <pre><code class="highlight language-markdown">
1132
- {: title="This is a title with spaces" lang="en-US"}
1133
- </code></pre>
1523
+ <div class="highlight">
1524
+ <pre><span></span>{: title=&quot;This is a title with spaces&quot; lang=&quot;en-US&quot;}
1525
+ </pre>
1526
+ </div>
1134
1527
 
1135
1528
  <p>
1136
- <strong> Unquoted values:</strong> Simple values without spaces can be unquoted:
1529
+ <strong>Unquoted values:</strong> Simple values without spaces can be unquoted:
1137
1530
  </p>
1138
1531
 
1139
- <pre><code class="highlight language-markdown">
1140
- {: lang=en data-visible=true}
1141
- </code></pre>
1532
+ <div class="highlight">
1533
+ <pre><span></span>{: lang=en data-visible=true}
1534
+ </pre>
1535
+ </div>
1142
1536
 
1143
1537
  <p>
1144
- <strong> Escaping quotes:</strong> Inside quoted values, escape quotes with backslash:
1538
+ <strong>Escaping quotes:</strong> Inside quoted values, escape quotes with backslash:
1145
1539
  </p>
1146
1540
 
1147
- <pre><code class="highlight language-markdown">
1148
- {: title="He said <span class="se">\"</span>Hello<span class="se">\"</span>"}
1149
- </code></pre>
1541
+ <div class="highlight">
1542
+ <pre><span></span>{: title=&quot;He said \&quot;Hello\&quot;&quot;}
1543
+ </pre>
1544
+ </div>
1150
1545
 
1151
1546
  <h3 id="combining-attributes">
1152
- Combining Attributes
1547
+ Combining&nbsp;Attributes
1153
1548
  </h3>
1154
1549
 
1155
1550
  <p>
1156
1551
  All three types can be combined in a single IAL:
1157
1552
  </p>
1158
1553
 
1159
- <pre><code class="highlight language-markdown"><span class="gh"># Heading</span>
1554
+ <div class="highlight">
1555
+ <pre><span></span><span class="gh"># Heading</span>
1160
1556
 
1161
- {: #section-1 .important .highlight title="Section Title" lang="en"}
1162
- </code></pre>
1557
+ {: <span class="ni">#section</span>-1 .important .highlight title=&quot;Section Title&quot; lang=&quot;en&quot;}
1558
+ </pre>
1559
+ </div>
1163
1560
 
1164
1561
  <p>
1165
1562
  Output: <code>&lt;h1 id=&quot;section-1&quot; class=&quot;important highlight&quot; title=&quot;Section Title&quot; lang=&quot;en&quot;&gt;Heading&lt;/h1&gt;</code>
1166
1563
  </p>
1167
1564
 
1168
1565
  <h2 id="attribute-list-definitions-alds">
1169
- Attribute List Definitions (ALDs)
1566
+ Attribute List Definitions&nbsp;(ALDs)
1170
1567
  </h2>
1171
1568
 
1172
1569
  <p>
@@ -1174,14 +1571,15 @@ Link with attributes.
1174
1571
  </p>
1175
1572
 
1176
1573
  <h3 id="defining-alds">
1177
- Defining ALDs
1574
+ Defining&nbsp;ALDs
1178
1575
  </h3>
1179
1576
 
1180
1577
  <p>
1181
- ALDs use the syntax <code>{🚗 attributes}</code> and can appear anywhere in your document (though typically at the end for organization):
1578
+ ALDs use the syntax <code>{<span class=\"emoji\">:ref-name:</span> attributes}</code> and can appear anywhere in your document (though typically at the end for organization):
1182
1579
  </p>
1183
1580
 
1184
- <pre><code class="highlight language-markdown"><span class="gh"># Header 1</span>
1581
+ <div class="highlight">
1582
+ <pre><span></span><span class="gh"># Header 1</span>
1185
1583
 
1186
1584
  {:header-style}
1187
1585
 
@@ -1192,59 +1590,66 @@ Link with attributes.
1192
1590
  <span class="gh"># Header 3</span>
1193
1591
 
1194
1592
  {:header-style}
1195
-
1196
- </code></pre>
1593
+ </pre>
1594
+ </div>
1197
1595
 
1198
1596
  <p>
1199
1597
  Output:
1200
1598
  </p>
1201
1599
 
1202
- <pre><code class="highlight language-html"><span class="nt">&lt;h1</span> <span class="na">id=</span><span class="s">"section-title"</span> <span class="na">class=</span><span class="s">"large bold"</span> <span class="na">lang=</span><span class="s">"en"</span><span class="nt">&gt;</span>Header 1<span class="nt">&lt;/h1&gt;</span>
1203
- <span class="nt">&lt;h1</span> <span class="na">id=</span><span class="s">"section-title"</span> <span class="na">class=</span><span class="s">"large bold"</span> <span class="na">lang=</span><span class="s">"en"</span><span class="nt">&gt;</span>Header 2<span class="nt">&lt;/h1&gt;</span>
1204
- <span class="nt">&lt;h1</span> <span class="na">id=</span><span class="s">"section-title"</span> <span class="na">class=</span><span class="s">"large bold"</span> <span class="na">lang=</span><span class="s">"en"</span><span class="nt">&gt;</span>Header 3<span class="nt">&lt;/h1&gt;</span>
1205
- </code></pre>
1600
+ <div class="highlight">
1601
+ <pre><span></span><span class="p">&lt;</span><span class="nt">h1</span> <span class="na">id</span><span class="o">=</span><span class="s">&quot;section-title&quot;</span> <span class="na">class</span><span class="o">=</span><span class="s">&quot;large bold&quot;</span> <span class="na">lang</span><span class="o">=</span><span class="s">&quot;en&quot;</span><span class="p">&gt;</span>Header 1<span class="p">&lt;/</span><span class="nt">h1</span><span class="p">&gt;</span>
1602
+ <span class="p">&lt;</span><span class="nt">h1</span> <span class="na">id</span><span class="o">=</span><span class="s">&quot;section-title&quot;</span> <span class="na">class</span><span class="o">=</span><span class="s">&quot;large bold&quot;</span> <span class="na">lang</span><span class="o">=</span><span class="s">&quot;en&quot;</span><span class="p">&gt;</span>Header 2<span class="p">&lt;/</span><span class="nt">h1</span><span class="p">&gt;</span>
1603
+ <span class="p">&lt;</span><span class="nt">h1</span> <span class="na">id</span><span class="o">=</span><span class="s">&quot;section-title&quot;</span> <span class="na">class</span><span class="o">=</span><span class="s">&quot;large bold&quot;</span> <span class="na">lang</span><span class="o">=</span><span class="s">&quot;en&quot;</span><span class="p">&gt;</span>Header 3<span class="p">&lt;/</span><span class="nt">h1</span><span class="p">&gt;</span>
1604
+ </pre>
1605
+ </div>
1206
1606
 
1207
1607
  <h3 id="ald-syntax">
1208
- ALD Syntax
1608
+ ALD&nbsp;Syntax
1209
1609
  </h3>
1210
1610
 
1211
1611
  <p>
1212
1612
  ALD definitions follow the same attribute syntax as IALs:
1213
1613
  </p>
1214
1614
 
1215
- <pre lang="markdown"><code></code></pre>
1615
+ <div class="highlight">
1616
+ <pre><span></span>
1617
+ </pre>
1618
+ </div>
1216
1619
 
1217
1620
  <h3 id="referencing-alds">
1218
- Referencing ALDs
1621
+ Referencing&nbsp;ALDs
1219
1622
  </h3>
1220
1623
 
1221
1624
  <p>
1222
1625
  Reference an ALD in an IAL using just the reference name:
1223
1626
  </p>
1224
1627
 
1225
- <pre><code class="highlight language-markdown"><span class="gh"># Heading</span>
1628
+ <div class="highlight">
1629
+ <pre><span></span><span class="gh"># Heading</span>
1226
1630
 
1227
1631
  {:my-style}
1228
1632
 
1229
1633
  Paragraph.
1230
1634
 
1231
1635
  {:my-style}
1232
- </code></pre>
1636
+ </pre>
1637
+ </div>
1233
1638
 
1234
1639
  <p>
1235
- If the ALD <code>{💪 ...}</code> is defined, both elements will receive those attributes.
1640
+ If the ALD <code>{<span class=\"emoji\">:my-style:</span> ...}</code> is defined, both elements will receive those attributes.
1236
1641
  </p>
1237
1642
 
1238
1643
  <h3 id="mixed-usage">
1239
- Mixed Usage
1644
+ Mixed&nbsp;Usage
1240
1645
  </h3>
1241
1646
 
1242
1647
  <p>
1243
1648
  You can mix ALD references with additional attributes in the same IAL. The additional attributes override or extend the ALD:
1244
1649
  </p>
1245
1650
 
1246
- <pre><code class="highlight language-markdown">
1247
- <span class="gh"># Heading 1</span>
1651
+ <div class="highlight">
1652
+ <pre><span></span><span class="gh"># Heading 1</span>
1248
1653
 
1249
1654
  {:base-style}
1250
1655
 
@@ -1254,114 +1659,124 @@ Paragraph.
1254
1659
 
1255
1660
  <span class="gh"># Heading 3</span>
1256
1661
 
1257
- {:base-style #override-id}
1662
+ {:base-style <span class="ni">#override</span>-id}
1258
1663
 
1259
1664
  <span class="gh"># Heading 4</span>
1260
1665
 
1261
- {:base-style .class3 rel="nofollow"}
1262
- </code></pre>
1666
+ {:base-style .class3 rel=&quot;nofollow&quot;}
1667
+ </pre>
1668
+ </div>
1263
1669
 
1264
1670
  <p>
1265
1671
  Output:
1266
1672
  </p>
1267
1673
 
1268
- <pre><code class="highlight language-html"><span class="nt">&lt;h1</span> <span class="na">id=</span><span class="s">"main"</span> <span class="na">class=</span><span class="s">"class1 class2"</span><span class="nt">&gt;</span>Heading 1<span class="nt">&lt;/h1&gt;</span>
1269
- <span class="nt">&lt;h1</span> <span class="na">id=</span><span class="s">"main"</span> <span class="na">class=</span><span class="s">"class1 class2 class3"</span><span class="nt">&gt;</span>Heading 2<span class="nt">&lt;/h1&gt;</span>
1270
- <span class="nt">&lt;h1</span> <span class="na">id=</span><span class="s">"override-id"</span> <span class="na">class=</span><span class="s">"class1 class2"</span><span class="nt">&gt;</span>Heading 3<span class="nt">&lt;/h1&gt;</span>
1271
- <span class="nt">&lt;h1</span> <span class="na">id=</span><span class="s">"main"</span> <span class="na">class=</span><span class="s">"class1 class2 class3"</span> <span class="na">rel=</span><span class="s">"nofollow"</span><span class="nt">&gt;</span>Heading 4<span class="nt">&lt;/h1&gt;</span>
1272
- </code></pre>
1674
+ <div class="highlight">
1675
+ <pre><span></span><span class="p">&lt;</span><span class="nt">h1</span> <span class="na">id</span><span class="o">=</span><span class="s">&quot;main&quot;</span> <span class="na">class</span><span class="o">=</span><span class="s">&quot;class1 class2&quot;</span><span class="p">&gt;</span>Heading 1<span class="p">&lt;/</span><span class="nt">h1</span><span class="p">&gt;</span>
1676
+ <span class="p">&lt;</span><span class="nt">h1</span> <span class="na">id</span><span class="o">=</span><span class="s">&quot;main&quot;</span> <span class="na">class</span><span class="o">=</span><span class="s">&quot;class1 class2 class3&quot;</span><span class="p">&gt;</span>Heading 2<span class="p">&lt;/</span><span class="nt">h1</span><span class="p">&gt;</span>
1677
+ <span class="p">&lt;</span><span class="nt">h1</span> <span class="na">id</span><span class="o">=</span><span class="s">&quot;override-id&quot;</span> <span class="na">class</span><span class="o">=</span><span class="s">&quot;class1 class2&quot;</span><span class="p">&gt;</span>Heading 3<span class="p">&lt;/</span><span class="nt">h1</span><span class="p">&gt;</span>
1678
+ <span class="p">&lt;</span><span class="nt">h1</span> <span class="na">id</span><span class="o">=</span><span class="s">&quot;main&quot;</span> <span class="na">class</span><span class="o">=</span><span class="s">&quot;class1 class2 class3&quot;</span> <span class="na">rel</span><span class="o">=</span><span class="s">&quot;nofollow&quot;</span><span class="p">&gt;</span>Heading 4<span class="p">&lt;/</span><span class="nt">h1</span><span class="p">&gt;</span>
1679
+ </pre>
1680
+ </div>
1273
1681
 
1274
1682
  <p>
1275
- <strong> Behavior:</strong>
1683
+ <strong>Behavior:</strong>
1276
1684
  </p>
1277
1685
 
1278
1686
  <ul>
1279
1687
 
1280
1688
  <li>
1281
- <strong> Classes</strong>: Additional classes are appended to the ALD classes
1689
+ <strong>Classes</strong>: Additional classes are appended to the ALD classes
1282
1690
  </li>
1283
1691
 
1284
1692
  <li>
1285
- <strong> IDs</strong>: If an ID is specified in the IAL, it overrides the ALD’s ID
1693
+ <strong>IDs</strong>: If an ID is specified in the IAL, it overrides the ALD’s ID
1286
1694
  </li>
1287
1695
 
1288
1696
  <li>
1289
- <strong> Key-value attributes</strong>: If a key exists in both ALD and IAL, the IAL value overrides the ALD value
1697
+ <strong>Key-value attributes</strong>: If a key exists in both ALD and IAL, the IAL value overrides the ALD value
1290
1698
  </li>
1291
1699
 
1292
1700
  </ul>
1293
1701
 
1294
1702
  <h2 id="important-notes">
1295
- Important Notes
1703
+ Important&nbsp;Notes
1296
1704
  </h2>
1297
1705
 
1298
1706
  <h3 id="block-level-ial-positioning">
1299
- Block-Level IAL Positioning
1707
+ Block-Level IAL&nbsp;Positioning
1300
1708
  </h3>
1301
1709
 
1302
1710
  <p>
1303
1711
  For block-level elements, the IAL <strong>must</strong> appear immediately after the element with <strong>no blank line</strong> between them:
1712
+ <strong>Correct:</strong>
1304
1713
  </p>
1305
1714
 
1306
- <p>
1307
- <strong> Correct:</strong>
1308
- </p>
1309
-
1310
- <pre><code class="highlight language-markdown">Paragraph text.
1715
+ <div class="highlight">
1716
+ <pre><span></span>Paragraph text.
1311
1717
 
1312
1718
  {: .class}
1313
- </code></pre>
1719
+ </pre>
1720
+ </div>
1314
1721
 
1315
1722
  <p>
1316
- <strong> Incorrect:</strong>
1723
+ <strong>Incorrect:</strong>
1317
1724
  </p>
1318
1725
 
1319
- <pre><code class="highlight language-markdown">Paragraph text.
1726
+ <div class="highlight">
1727
+ <pre><span></span>Paragraph text.
1320
1728
 
1321
1729
  {: .class}
1322
- </code></pre>
1730
+ </pre>
1731
+ </div>
1323
1732
 
1324
1733
  <p>
1325
1734
  The blank line will cause the IAL to be treated as a separate paragraph.
1326
1735
  </p>
1327
1736
 
1328
1737
  <h3 id="inline-ial-positioning">
1329
- Inline IAL Positioning
1738
+ Inline IAL&nbsp;Positioning
1330
1739
  </h3>
1331
1740
 
1332
1741
  <p>
1333
1742
  For inline elements, the IAL must appear immediately after the element, with optional whitespace:
1334
1743
  </p>
1335
1744
 
1336
- <pre><code class="highlight language-markdown"><span class="p">[</span><span class="nv">link</span><span class="p">](</span><span class="sx">url</span><span class="p">)</span>{:.class} text after
1745
+ <div class="highlight">
1746
+ <pre><span></span>[<span class="nt">link</span>](<span class="na">url</span>){:.class} text after
1337
1747
  <span class="gs">**bold**</span>{:.bold-style} more text
1338
- </code></pre>
1748
+ </pre>
1749
+ </div>
1339
1750
 
1340
1751
  <h3 id="multiple-elements-with-same-attributes">
1341
- Multiple Elements with Same Attributes
1752
+ Multiple Elements with Same&nbsp;Attributes
1342
1753
  </h3>
1343
1754
 
1344
1755
  <p>
1345
1756
  When multiple links share the same URL, IALs are correctly matched using element indexing:
1346
1757
  </p>
1347
1758
 
1348
- <pre><code class="highlight language-markdown">Here's a <span class="p">[</span><span class="nv">regular link</span><span class="p">](</span><span class="sx">https://example.com</span><span class="p">)</span> and <span class="p">[</span><span class="nv">another link</span><span class="p">](</span><span class="sx">https://example.com</span><span class="p">)</span>{:.button}.
1349
- </code></pre>
1759
+ <div class="highlight">
1760
+ <pre><span></span>Here&#39;s a [<span class="nt">regular link</span>](<span class="na">https://example.com</span>) and [<span class="nt">another link</span>](<span class="na">https://example.com</span>){:.button}.
1761
+ </pre>
1762
+ </div>
1350
1763
 
1351
1764
  <p>
1352
1765
  Both links point to the same URL, but only the second one receives the <code>button</code> class.
1353
1766
  </p>
1354
1767
 
1355
1768
  <h3 id="nested-elements">
1356
- Nested Elements
1769
+ Nested&nbsp;Elements
1357
1770
  </h3>
1358
1771
 
1359
1772
  <p>
1360
1773
  IALs work with nested inline elements:
1361
1774
  </p>
1362
1775
 
1363
- <pre><code class="highlight language-markdown"><span class="ge">**</span>Bold text with <span class="ge">*italic*</span>{:.nested} inside<span class="ge">**</span>{:.wrapper}
1364
- </code></pre>
1776
+ <div class="highlight">
1777
+ <pre><span></span>**Bold text with <span class="ge">*italic*</span>{:.nested} inside**{:.wrapper}
1778
+ </pre>
1779
+ </div>
1365
1780
 
1366
1781
  <p>
1367
1782
  The italic element gets the <code>nested</code> class, and the bold element gets the <code>wrapper</code> class.
@@ -1372,18 +1787,19 @@ Paragraph.
1372
1787
  </h2>
1373
1788
 
1374
1789
  <h3 id="complete-example">
1375
- Complete Example
1790
+ Complete&nbsp;Example
1376
1791
  </h3>
1377
1792
 
1378
- <pre><code class="highlight language-markdown"><span class="gh"># Main Title</span>
1793
+ <div class="highlight">
1794
+ <pre><span></span><span class="gh"># Main Title</span>
1379
1795
 
1380
- {: #main-title .page-title}
1796
+ {: <span class="ni">#main</span>-title .page-title}
1381
1797
 
1382
1798
  <span class="gu">## Section 1</span>
1383
1799
 
1384
1800
  {:section-heading}
1385
1801
 
1386
- This paragraph has <span class="p">[</span><span class="nv">a link</span><span class="p">](</span><span class="sx">https://example.com</span><span class="p">)</span>{:.external-link} with styling.
1802
+ This paragraph has [<span class="nt">a link</span>](<span class="na">https://example.com</span>){:.external-link} with styling.
1387
1803
 
1388
1804
  Another paragraph with <span class="gs">**bold text**</span>{:.highlight}.
1389
1805
 
@@ -1392,26 +1808,29 @@ Another paragraph with <span class="gs">**bold text**</span>{:.highlight}.
1392
1808
  {:section-heading}
1393
1809
 
1394
1810
  More content here.
1395
-
1396
- </code></pre>
1811
+ </pre>
1812
+ </div>
1397
1813
 
1398
1814
  <p>
1399
1815
  Output:
1400
1816
  </p>
1401
1817
 
1402
- <pre><code class="highlight language-html"><span class="nt">&lt;h1</span> <span class="na">id=</span><span class="s">"main-title"</span> <span class="na">class=</span><span class="s">"page-title"</span><span class="nt">&gt;</span>Main Title<span class="nt">&lt;/h1&gt;</span>
1403
- <span class="nt">&lt;h2</span> <span class="na">class=</span><span class="s">"section important"</span> <span class="na">lang=</span><span class="s">"en"</span><span class="nt">&gt;</span>Section 1<span class="nt">&lt;/h2&gt;</span>
1404
- <span class="nt">&lt;p&gt;</span>This paragraph has <span class="nt">&lt;a</span> <span class="na">href=</span><span class="s">"https://example.com"</span> <span class="na">class=</span><span class="s">"external-link"</span><span class="nt">&gt;</span>a link<span class="nt">&lt;/a&gt;</span> with styling.<span class="nt">&lt;/p&gt;</span>
1405
- <span class="nt">&lt;p&gt;</span>Another paragraph with <span class="nt">&lt;strong</span> <span class="na">class=</span><span class="s">"highlight"</span><span class="nt">&gt;</span>bold text<span class="nt">&lt;/strong&gt;</span>.<span class="nt">&lt;/p&gt;</span>
1406
- <span class="nt">&lt;h2</span> <span class="na">class=</span><span class="s">"section important"</span> <span class="na">lang=</span><span class="s">"en"</span><span class="nt">&gt;</span>Section 2<span class="nt">&lt;/h2&gt;</span>
1407
- <span class="nt">&lt;p&gt;</span>More content here.<span class="nt">&lt;/p&gt;</span>
1408
- </code></pre>
1818
+ <div class="highlight">
1819
+ <pre><span></span><span class="p">&lt;</span><span class="nt">h1</span> <span class="na">id</span><span class="o">=</span><span class="s">&quot;main-title&quot;</span> <span class="na">class</span><span class="o">=</span><span class="s">&quot;page-title&quot;</span><span class="p">&gt;</span>Main Title<span class="p">&lt;/</span><span class="nt">h1</span><span class="p">&gt;</span>
1820
+ <span class="p">&lt;</span><span class="nt">h2</span> <span class="na">class</span><span class="o">=</span><span class="s">&quot;section important&quot;</span> <span class="na">lang</span><span class="o">=</span><span class="s">&quot;en&quot;</span><span class="p">&gt;</span>Section 1<span class="p">&lt;/</span><span class="nt">h2</span><span class="p">&gt;</span>
1821
+ <span class="p">&lt;</span><span class="nt">p</span><span class="p">&gt;</span>This paragraph has <span class="p">&lt;</span><span class="nt">a</span> <span class="na">href</span><span class="o">=</span><span class="s">&quot;https://example.com&quot;</span> <span class="na">class</span><span class="o">=</span><span class="s">&quot;external-link&quot;</span><span class="p">&gt;</span>a link<span class="p">&lt;/</span><span class="nt">a</span><span class="p">&gt;</span> with styling.<span class="p">&lt;/</span><span class="nt">p</span><span class="p">&gt;</span>
1822
+ <span class="p">&lt;</span><span class="nt">p</span><span class="p">&gt;</span>Another paragraph with <span class="p">&lt;</span><span class="nt">strong</span> <span class="na">class</span><span class="o">=</span><span class="s">&quot;highlight&quot;</span><span class="p">&gt;</span>bold text<span class="p">&lt;/</span><span class="nt">strong</span><span class="p">&gt;</span>.<span class="p">&lt;/</span><span class="nt">p</span><span class="p">&gt;</span>
1823
+ <span class="p">&lt;</span><span class="nt">h2</span> <span class="na">class</span><span class="o">=</span><span class="s">&quot;section important&quot;</span> <span class="na">lang</span><span class="o">=</span><span class="s">&quot;en&quot;</span><span class="p">&gt;</span>Section 2<span class="p">&lt;/</span><span class="nt">h2</span><span class="p">&gt;</span>
1824
+ <span class="p">&lt;</span><span class="nt">p</span><span class="p">&gt;</span>More content here.<span class="p">&lt;/</span><span class="nt">p</span><span class="p">&gt;</span>
1825
+ </pre>
1826
+ </div>
1409
1827
 
1410
1828
  <h3 id="using-alds-for-consistent-styling">
1411
- Using ALDs for Consistent Styling
1829
+ Using ALDs for Consistent&nbsp;Styling
1412
1830
  </h3>
1413
1831
 
1414
- <pre><code class="highlight language-markdown"><span class="gh"># Introduction</span>
1832
+ <div class="highlight">
1833
+ <pre><span></span><span class="gh"># Introduction</span>
1415
1834
 
1416
1835
  {:intro}
1417
1836
 
@@ -1430,8 +1849,8 @@ More content here.
1430
1849
  <span class="gu">## Summary</span>
1431
1850
 
1432
1851
  {:conclusion}
1433
-
1434
- </code></pre>
1852
+ </pre>
1853
+ </div>
1435
1854
 
1436
1855
  <p>
1437
1856
  This allows you to maintain consistent styling across multiple elements by defining the attributes once and referencing them multiple times.
@@ -1444,11 +1863,11 @@ More content here.
1444
1863
  <ul>
1445
1864
 
1446
1865
  <li>
1447
- <a href="Syntax.html"> Syntax</a> - Complete syntax reference
1866
+ <a href="Syntax.html">Syntax</a> - Complete syntax reference
1448
1867
  </li>
1449
1868
 
1450
1869
  <li>
1451
- <a href="Modes.html"> Modes</a> - Understanding processor modes (IALs available in Kramdown and unified modes)
1870
+ <a href="Modes.html">Modes</a> - Understanding processor modes (IALs available in Kramdown and unified modes)
1452
1871
  </li>
1453
1872
 
1454
1873
  </ul>