@kamod-ch/preactpress 1.0.0

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 (546) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +165 -0
  3. package/assets/favicon-32.png +0 -0
  4. package/assets/favicon.png +0 -0
  5. package/assets/favicon.svg +28 -0
  6. package/assets/logo-dark.svg +5 -0
  7. package/assets/logo-light.svg +5 -0
  8. package/assets/logo.svg +5 -0
  9. package/bin/preactpress.mjs +13 -0
  10. package/dist/client/app.d.ts +6 -0
  11. package/dist/client/app.d.ts.map +1 -0
  12. package/dist/client/app.js +168 -0
  13. package/dist/client/app.js.map +1 -0
  14. package/dist/client/entry-client.d.ts +2 -0
  15. package/dist/client/entry-client.d.ts.map +1 -0
  16. package/dist/client/entry-client.js +27 -0
  17. package/dist/client/entry-client.js.map +1 -0
  18. package/dist/client/entry-ssr.d.ts +14 -0
  19. package/dist/client/entry-ssr.d.ts.map +1 -0
  20. package/dist/client/entry-ssr.js +59 -0
  21. package/dist/client/entry-ssr.js.map +1 -0
  22. package/dist/client/index.d.ts +3 -0
  23. package/dist/client/index.d.ts.map +1 -0
  24. package/dist/client/index.js +2 -0
  25. package/dist/client/index.js.map +1 -0
  26. package/dist/client/loadPage.d.ts +5 -0
  27. package/dist/client/loadPage.d.ts.map +1 -0
  28. package/dist/client/loadPage.js +62 -0
  29. package/dist/client/loadPage.js.map +1 -0
  30. package/dist/client/prefetchLinks.d.ts +2 -0
  31. package/dist/client/prefetchLinks.d.ts.map +1 -0
  32. package/dist/client/prefetchLinks.js +55 -0
  33. package/dist/client/prefetchLinks.js.map +1 -0
  34. package/dist/client/theme-default/AlgoliaSearch.d.ts +12 -0
  35. package/dist/client/theme-default/AlgoliaSearch.d.ts.map +1 -0
  36. package/dist/client/theme-default/AlgoliaSearch.js +66 -0
  37. package/dist/client/theme-default/AlgoliaSearch.js.map +1 -0
  38. package/dist/client/theme-default/Features.d.ts +9 -0
  39. package/dist/client/theme-default/Features.d.ts.map +1 -0
  40. package/dist/client/theme-default/Features.js +25 -0
  41. package/dist/client/theme-default/Features.js.map +1 -0
  42. package/dist/client/theme-default/Hero.d.ts +9 -0
  43. package/dist/client/theme-default/Hero.d.ts.map +1 -0
  44. package/dist/client/theme-default/Hero.js +23 -0
  45. package/dist/client/theme-default/Hero.js.map +1 -0
  46. package/dist/client/theme-default/Layout.d.ts +6 -0
  47. package/dist/client/theme-default/Layout.d.ts.map +1 -0
  48. package/dist/client/theme-default/Layout.js +224 -0
  49. package/dist/client/theme-default/Layout.js.map +1 -0
  50. package/dist/client/theme-default/Logo.d.ts +16 -0
  51. package/dist/client/theme-default/Logo.d.ts.map +1 -0
  52. package/dist/client/theme-default/Logo.js +30 -0
  53. package/dist/client/theme-default/Logo.js.map +1 -0
  54. package/dist/client/theme-default/NavLinks.d.ts +12 -0
  55. package/dist/client/theme-default/NavLinks.d.ts.map +1 -0
  56. package/dist/client/theme-default/NavLinks.js +18 -0
  57. package/dist/client/theme-default/NavLinks.js.map +1 -0
  58. package/dist/client/theme-default/SidebarNav.d.ts +12 -0
  59. package/dist/client/theme-default/SidebarNav.d.ts.map +1 -0
  60. package/dist/client/theme-default/SidebarNav.js +21 -0
  61. package/dist/client/theme-default/SidebarNav.js.map +1 -0
  62. package/dist/client/theme-default/SocialLinks.d.ts +8 -0
  63. package/dist/client/theme-default/SocialLinks.d.ts.map +1 -0
  64. package/dist/client/theme-default/SocialLinks.js +13 -0
  65. package/dist/client/theme-default/SocialLinks.js.map +1 -0
  66. package/dist/client/theme-default/ThemeToggle.d.ts +4 -0
  67. package/dist/client/theme-default/ThemeToggle.d.ts.map +1 -0
  68. package/dist/client/theme-default/ThemeToggle.js +31 -0
  69. package/dist/client/theme-default/ThemeToggle.js.map +1 -0
  70. package/dist/client/theme-default/index.d.ts +2 -0
  71. package/dist/client/theme-default/index.d.ts.map +1 -0
  72. package/dist/client/theme-default/index.js +2 -0
  73. package/dist/client/theme-default/index.js.map +1 -0
  74. package/dist/client/types.d.ts +36 -0
  75. package/dist/client/types.d.ts.map +1 -0
  76. package/dist/client/types.js +2 -0
  77. package/dist/client/types.js.map +1 -0
  78. package/dist/client/usePageHead.d.ts +10 -0
  79. package/dist/client/usePageHead.d.ts.map +1 -0
  80. package/dist/client/usePageHead.js +182 -0
  81. package/dist/client/usePageHead.js.map +1 -0
  82. package/dist/client/useSiteSearch.d.ts +10 -0
  83. package/dist/client/useSiteSearch.d.ts.map +1 -0
  84. package/dist/client/useSiteSearch.js +54 -0
  85. package/dist/client/useSiteSearch.js.map +1 -0
  86. package/dist/node/build.d.ts +15 -0
  87. package/dist/node/build.d.ts.map +1 -0
  88. package/dist/node/build.js +310 -0
  89. package/dist/node/build.js.map +1 -0
  90. package/dist/node/buildCache.d.ts +15 -0
  91. package/dist/node/buildCache.d.ts.map +1 -0
  92. package/dist/node/buildCache.js +41 -0
  93. package/dist/node/buildCache.js.map +1 -0
  94. package/dist/node/check.d.ts +11 -0
  95. package/dist/node/check.d.ts.map +1 -0
  96. package/dist/node/check.js +228 -0
  97. package/dist/node/check.js.map +1 -0
  98. package/dist/node/cli.d.ts +2 -0
  99. package/dist/node/cli.d.ts.map +1 -0
  100. package/dist/node/cli.js +157 -0
  101. package/dist/node/cli.js.map +1 -0
  102. package/dist/node/config-helpers.d.ts +8 -0
  103. package/dist/node/config-helpers.d.ts.map +1 -0
  104. package/dist/node/config-helpers.js +5 -0
  105. package/dist/node/config-helpers.js.map +1 -0
  106. package/dist/node/config.d.ts +13 -0
  107. package/dist/node/config.d.ts.map +1 -0
  108. package/dist/node/config.js +167 -0
  109. package/dist/node/config.js.map +1 -0
  110. package/dist/node/content.d.ts +16 -0
  111. package/dist/node/content.d.ts.map +1 -0
  112. package/dist/node/content.js +72 -0
  113. package/dist/node/content.js.map +1 -0
  114. package/dist/node/createContentLoader.d.ts +19 -0
  115. package/dist/node/createContentLoader.d.ts.map +1 -0
  116. package/dist/node/createContentLoader.js +11 -0
  117. package/dist/node/createContentLoader.js.map +1 -0
  118. package/dist/node/devCss.d.ts +7 -0
  119. package/dist/node/devCss.d.ts.map +1 -0
  120. package/dist/node/devCss.js +70 -0
  121. package/dist/node/devCss.js.map +1 -0
  122. package/dist/node/devSsr.d.ts +6 -0
  123. package/dist/node/devSsr.d.ts.map +1 -0
  124. package/dist/node/devSsr.js +112 -0
  125. package/dist/node/devSsr.js.map +1 -0
  126. package/dist/node/dynamicRoutes.d.ts +21 -0
  127. package/dist/node/dynamicRoutes.d.ts.map +1 -0
  128. package/dist/node/dynamicRoutes.js +120 -0
  129. package/dist/node/dynamicRoutes.js.map +1 -0
  130. package/dist/node/favicon.d.ts +9 -0
  131. package/dist/node/favicon.d.ts.map +1 -0
  132. package/dist/node/favicon.js +71 -0
  133. package/dist/node/favicon.js.map +1 -0
  134. package/dist/node/feed.d.ts +7 -0
  135. package/dist/node/feed.d.ts.map +1 -0
  136. package/dist/node/feed.js +37 -0
  137. package/dist/node/feed.js.map +1 -0
  138. package/dist/node/hooks.d.ts +9 -0
  139. package/dist/node/hooks.d.ts.map +1 -0
  140. package/dist/node/hooks.js +20 -0
  141. package/dist/node/hooks.js.map +1 -0
  142. package/dist/node/html.d.ts +56 -0
  143. package/dist/node/html.d.ts.map +1 -0
  144. package/dist/node/html.js +222 -0
  145. package/dist/node/html.js.map +1 -0
  146. package/dist/node/index.d.ts +12 -0
  147. package/dist/node/index.d.ts.map +1 -0
  148. package/dist/node/index.js +9 -0
  149. package/dist/node/index.js.map +1 -0
  150. package/dist/node/init.d.ts +12 -0
  151. package/dist/node/init.d.ts.map +1 -0
  152. package/dist/node/init.js +93 -0
  153. package/dist/node/init.js.map +1 -0
  154. package/dist/node/lastUpdated.d.ts +3 -0
  155. package/dist/node/lastUpdated.d.ts.map +1 -0
  156. package/dist/node/lastUpdated.js +24 -0
  157. package/dist/node/lastUpdated.js.map +1 -0
  158. package/dist/node/loadSiteModule.d.ts +2 -0
  159. package/dist/node/loadSiteModule.d.ts.map +1 -0
  160. package/dist/node/loadSiteModule.js +10 -0
  161. package/dist/node/loadSiteModule.js.map +1 -0
  162. package/dist/node/markdown.d.ts +31 -0
  163. package/dist/node/markdown.d.ts.map +1 -0
  164. package/dist/node/markdown.js +508 -0
  165. package/dist/node/markdown.js.map +1 -0
  166. package/dist/node/markdownHeadings.d.ts +12 -0
  167. package/dist/node/markdownHeadings.d.ts.map +1 -0
  168. package/dist/node/markdownHeadings.js +70 -0
  169. package/dist/node/markdownHeadings.js.map +1 -0
  170. package/dist/node/markdownInclude.d.ts +6 -0
  171. package/dist/node/markdownInclude.d.ts.map +1 -0
  172. package/dist/node/markdownInclude.js +74 -0
  173. package/dist/node/markdownInclude.js.map +1 -0
  174. package/dist/node/markdownSnippets.d.ts +32 -0
  175. package/dist/node/markdownSnippets.d.ts.map +1 -0
  176. package/dist/node/markdownSnippets.js +172 -0
  177. package/dist/node/markdownSnippets.js.map +1 -0
  178. package/dist/node/mdx.d.ts +3 -0
  179. package/dist/node/mdx.d.ts.map +1 -0
  180. package/dist/node/mdx.js +9 -0
  181. package/dist/node/mdx.js.map +1 -0
  182. package/dist/node/packageRoot.d.ts +4 -0
  183. package/dist/node/packageRoot.d.ts.map +1 -0
  184. package/dist/node/packageRoot.js +7 -0
  185. package/dist/node/packageRoot.js.map +1 -0
  186. package/dist/node/pageDataLoaders.d.ts +6 -0
  187. package/dist/node/pageDataLoaders.d.ts.map +1 -0
  188. package/dist/node/pageDataLoaders.js +68 -0
  189. package/dist/node/pageDataLoaders.js.map +1 -0
  190. package/dist/node/paths.d.ts +5 -0
  191. package/dist/node/paths.d.ts.map +1 -0
  192. package/dist/node/paths.js +12 -0
  193. package/dist/node/paths.js.map +1 -0
  194. package/dist/node/plugin.d.ts +7 -0
  195. package/dist/node/plugin.d.ts.map +1 -0
  196. package/dist/node/plugin.js +282 -0
  197. package/dist/node/plugin.js.map +1 -0
  198. package/dist/node/resolveDeps.d.ts +5 -0
  199. package/dist/node/resolveDeps.d.ts.map +1 -0
  200. package/dist/node/resolveDeps.js +25 -0
  201. package/dist/node/resolveDeps.js.map +1 -0
  202. package/dist/node/serve.d.ts +6 -0
  203. package/dist/node/serve.d.ts.map +1 -0
  204. package/dist/node/serve.js +41 -0
  205. package/dist/node/serve.js.map +1 -0
  206. package/dist/node/server.d.ts +7 -0
  207. package/dist/node/server.d.ts.map +1 -0
  208. package/dist/node/server.js +55 -0
  209. package/dist/node/server.js.map +1 -0
  210. package/dist/node/siteConfig.d.ts +206 -0
  211. package/dist/node/siteConfig.d.ts.map +1 -0
  212. package/dist/node/siteConfig.js +2 -0
  213. package/dist/node/siteConfig.js.map +1 -0
  214. package/dist/node/tagIndex.d.ts +27 -0
  215. package/dist/node/tagIndex.d.ts.map +1 -0
  216. package/dist/node/tagIndex.js +84 -0
  217. package/dist/node/tagIndex.js.map +1 -0
  218. package/dist/shared/contentChunk.d.ts +4 -0
  219. package/dist/shared/contentChunk.d.ts.map +1 -0
  220. package/dist/shared/contentChunk.js +14 -0
  221. package/dist/shared/contentChunk.js.map +1 -0
  222. package/dist/shared/contentSchema.d.ts +43 -0
  223. package/dist/shared/contentSchema.d.ts.map +1 -0
  224. package/dist/shared/contentSchema.js +44 -0
  225. package/dist/shared/contentSchema.js.map +1 -0
  226. package/dist/shared/deadLinks.d.ts +9 -0
  227. package/dist/shared/deadLinks.d.ts.map +1 -0
  228. package/dist/shared/deadLinks.js +27 -0
  229. package/dist/shared/deadLinks.js.map +1 -0
  230. package/dist/shared/escapeHtml.d.ts +3 -0
  231. package/dist/shared/escapeHtml.d.ts.map +1 -0
  232. package/dist/shared/escapeHtml.js +11 -0
  233. package/dist/shared/escapeHtml.js.map +1 -0
  234. package/dist/shared/index.d.ts +15 -0
  235. package/dist/shared/index.d.ts.map +1 -0
  236. package/dist/shared/index.js +15 -0
  237. package/dist/shared/index.js.map +1 -0
  238. package/dist/shared/locale.d.ts +11 -0
  239. package/dist/shared/locale.d.ts.map +1 -0
  240. package/dist/shared/locale.js +84 -0
  241. package/dist/shared/locale.js.map +1 -0
  242. package/dist/shared/pageChrome.d.ts +80 -0
  243. package/dist/shared/pageChrome.d.ts.map +1 -0
  244. package/dist/shared/pageChrome.js +160 -0
  245. package/dist/shared/pageChrome.js.map +1 -0
  246. package/dist/shared/pageHead.d.ts +3 -0
  247. package/dist/shared/pageHead.d.ts.map +1 -0
  248. package/dist/shared/pageHead.js +28 -0
  249. package/dist/shared/pageHead.js.map +1 -0
  250. package/dist/shared/pageMeta.d.ts +60 -0
  251. package/dist/shared/pageMeta.d.ts.map +1 -0
  252. package/dist/shared/pageMeta.js +72 -0
  253. package/dist/shared/pageMeta.js.map +1 -0
  254. package/dist/shared/rewrites.d.ts +5 -0
  255. package/dist/shared/rewrites.d.ts.map +1 -0
  256. package/dist/shared/rewrites.js +23 -0
  257. package/dist/shared/rewrites.js.map +1 -0
  258. package/dist/shared/route.d.ts +5 -0
  259. package/dist/shared/route.d.ts.map +1 -0
  260. package/dist/shared/route.js +15 -0
  261. package/dist/shared/route.js.map +1 -0
  262. package/dist/shared/search.d.ts +39 -0
  263. package/dist/shared/search.d.ts.map +1 -0
  264. package/dist/shared/search.js +63 -0
  265. package/dist/shared/search.js.map +1 -0
  266. package/dist/shared/sidebar.d.ts +18 -0
  267. package/dist/shared/sidebar.d.ts.map +1 -0
  268. package/dist/shared/sidebar.js +51 -0
  269. package/dist/shared/sidebar.js.map +1 -0
  270. package/dist/shared/slug.d.ts +4 -0
  271. package/dist/shared/slug.d.ts.map +1 -0
  272. package/dist/shared/slug.js +21 -0
  273. package/dist/shared/slug.js.map +1 -0
  274. package/dist/shared/socialIcons.d.ts +13 -0
  275. package/dist/shared/socialIcons.d.ts.map +1 -0
  276. package/dist/shared/socialIcons.js +27 -0
  277. package/dist/shared/socialIcons.js.map +1 -0
  278. package/dist/shared/tags.d.ts +6 -0
  279. package/dist/shared/tags.d.ts.map +1 -0
  280. package/dist/shared/tags.js +39 -0
  281. package/dist/shared/tags.js.map +1 -0
  282. package/dist/shared/theme.d.ts +8 -0
  283. package/dist/shared/theme.d.ts.map +1 -0
  284. package/dist/shared/theme.js +25 -0
  285. package/dist/shared/theme.js.map +1 -0
  286. package/dist/shared/themeLabels.d.ts +18 -0
  287. package/dist/shared/themeLabels.d.ts.map +1 -0
  288. package/dist/shared/themeLabels.js +51 -0
  289. package/dist/shared/themeLabels.js.map +1 -0
  290. package/dist/shared/url.d.ts +7 -0
  291. package/dist/shared/url.d.ts.map +1 -0
  292. package/dist/shared/url.js +10 -0
  293. package/dist/shared/url.js.map +1 -0
  294. package/package.json +108 -0
  295. package/src/client/app.tsx +194 -0
  296. package/src/client/entry-client.tsx +27 -0
  297. package/src/client/entry-ssr.tsx +77 -0
  298. package/src/client/index.ts +2 -0
  299. package/src/client/loadPage.ts +68 -0
  300. package/src/client/prefetchLinks.ts +60 -0
  301. package/src/client/theme-default/AlgoliaSearch.tsx +89 -0
  302. package/src/client/theme-default/Features.tsx +75 -0
  303. package/src/client/theme-default/Hero.tsx +60 -0
  304. package/src/client/theme-default/Layout.tsx +525 -0
  305. package/src/client/theme-default/Logo.tsx +104 -0
  306. package/src/client/theme-default/NavLinks.tsx +65 -0
  307. package/src/client/theme-default/SidebarNav.tsx +103 -0
  308. package/src/client/theme-default/SocialLinks.tsx +41 -0
  309. package/src/client/theme-default/ThemeToggle.tsx +79 -0
  310. package/src/client/theme-default/index.ts +1 -0
  311. package/src/client/theme-default/styles.css +1450 -0
  312. package/src/client/types.ts +37 -0
  313. package/src/client/usePageHead.ts +212 -0
  314. package/src/client/useSiteSearch.ts +57 -0
  315. package/src/client/virtual.d.ts +103 -0
  316. package/src/shared/contentChunk.ts +14 -0
  317. package/src/shared/contentSchema.ts +85 -0
  318. package/src/shared/deadLinks.ts +33 -0
  319. package/src/shared/escapeHtml.ts +11 -0
  320. package/src/shared/index.ts +83 -0
  321. package/src/shared/locale.ts +116 -0
  322. package/src/shared/pageChrome.ts +244 -0
  323. package/src/shared/pageHead.ts +26 -0
  324. package/src/shared/pageMeta.ts +136 -0
  325. package/src/shared/rewrites.ts +35 -0
  326. package/src/shared/route.ts +14 -0
  327. package/src/shared/search.ts +105 -0
  328. package/src/shared/sidebar.ts +67 -0
  329. package/src/shared/slug.ts +23 -0
  330. package/src/shared/socialIcons.ts +44 -0
  331. package/src/shared/tags.ts +36 -0
  332. package/src/shared/theme.ts +26 -0
  333. package/src/shared/themeLabels.ts +72 -0
  334. package/src/shared/url.ts +14 -0
  335. package/templates/default/.preactpress/config.ts +31 -0
  336. package/templates/default/README.md +45 -0
  337. package/templates/default/about.md +11 -0
  338. package/templates/default/guide/first-five-minutes.md +83 -0
  339. package/templates/default/index.html +18 -0
  340. package/templates/default/index.md +55 -0
  341. package/templates/default/package.json +15 -0
  342. package/templates/default/pnpm-lock.yaml +2917 -0
  343. package/templates/docs/.preactpress/config.ts +94 -0
  344. package/templates/docs/README.md +21 -0
  345. package/templates/docs/about.md +10 -0
  346. package/templates/docs/components/Counter.tsx +25 -0
  347. package/templates/docs/de/guide/getting-started.md +19 -0
  348. package/templates/docs/de/guide/what-is-preactpress.md +15 -0
  349. package/templates/docs/de/index.md +23 -0
  350. package/templates/docs/dist/404.html +29 -0
  351. package/templates/docs/dist/about/index.html +32 -0
  352. package/templates/docs/dist/assets/esm-DzlBxN5p.js +110 -0
  353. package/templates/docs/dist/assets/interactive-64o6YwrR.js +9 -0
  354. package/templates/docs/dist/assets/interactive-BedCloEw.js +9 -0
  355. package/templates/docs/dist/assets/main-BVLeh8GO.js +1 -0
  356. package/templates/docs/dist/assets/main-CreUBb3N.js +1 -0
  357. package/templates/docs/dist/assets/main-oodK-zZy.css +2 -0
  358. package/templates/docs/dist/de/guide/getting-started/index.html +36 -0
  359. package/templates/docs/dist/de/guide/what-is-preactpress/index.html +38 -0
  360. package/templates/docs/dist/de/index.html +29 -0
  361. package/templates/docs/dist/favicon-32.png +0 -0
  362. package/templates/docs/dist/favicon.png +0 -0
  363. package/templates/docs/dist/favicon.svg +28 -0
  364. package/templates/docs/dist/guide/advanced/index.html +53 -0
  365. package/templates/docs/dist/guide/commands/index.html +89 -0
  366. package/templates/docs/dist/guide/configuration/index.html +196 -0
  367. package/templates/docs/dist/guide/creating-pages/index.html +234 -0
  368. package/templates/docs/dist/guide/custom-themes/index.html +52 -0
  369. package/templates/docs/dist/guide/default-theme/index.html +53 -0
  370. package/templates/docs/dist/guide/deploy/index.html +195 -0
  371. package/templates/docs/dist/guide/first-five-minutes/index.html +99 -0
  372. package/templates/docs/dist/guide/getting-started/index.html +173 -0
  373. package/templates/docs/dist/guide/markdown-and-mdx/index.html +59 -0
  374. package/templates/docs/dist/guide/routing/index.html +192 -0
  375. package/templates/docs/dist/guide/what-is-preactpress/index.html +141 -0
  376. package/templates/docs/dist/index.html +30 -0
  377. package/templates/docs/dist/interactive/index.html +37 -0
  378. package/templates/docs/dist/markdown-examples/index.html +231 -0
  379. package/templates/docs/dist/preactpress-content/404.json +8 -0
  380. package/templates/docs/dist/preactpress-content/_index.json +50 -0
  381. package/templates/docs/dist/preactpress-content/about.json +15 -0
  382. package/templates/docs/dist/preactpress-content/de.json +45 -0
  383. package/templates/docs/dist/preactpress-content/de__guide__getting-started.json +26 -0
  384. package/templates/docs/dist/preactpress-content/de__guide__what-is-preactpress.json +21 -0
  385. package/templates/docs/dist/preactpress-content/guide__advanced.json +46 -0
  386. package/templates/docs/dist/preactpress-content/guide__commands.json +26 -0
  387. package/templates/docs/dist/preactpress-content/guide__configuration.json +51 -0
  388. package/templates/docs/dist/preactpress-content/guide__creating-pages.json +71 -0
  389. package/templates/docs/dist/preactpress-content/guide__custom-themes.json +15 -0
  390. package/templates/docs/dist/preactpress-content/guide__default-theme.json +36 -0
  391. package/templates/docs/dist/preactpress-content/guide__deploy.json +56 -0
  392. package/templates/docs/dist/preactpress-content/guide__first-five-minutes.json +36 -0
  393. package/templates/docs/dist/preactpress-content/guide__getting-started.json +51 -0
  394. package/templates/docs/dist/preactpress-content/guide__markdown-and-mdx.json +31 -0
  395. package/templates/docs/dist/preactpress-content/guide__routing.json +71 -0
  396. package/templates/docs/dist/preactpress-content/guide__what-is-preactpress.json +51 -0
  397. package/templates/docs/dist/preactpress-content/markdown-examples.json +71 -0
  398. package/templates/docs/dist/preactpress-content/tags__markdown.json +16 -0
  399. package/templates/docs/dist/preactpress-search.json +166 -0
  400. package/templates/docs/dist/preactpress-theme.js +1 -0
  401. package/templates/docs/dist/tags/markdown/index.html +32 -0
  402. package/templates/docs/guide/advanced.md +44 -0
  403. package/templates/docs/guide/commands.md +41 -0
  404. package/templates/docs/guide/configuration.md +130 -0
  405. package/templates/docs/guide/creating-pages.md +171 -0
  406. package/templates/docs/guide/custom-themes.md +39 -0
  407. package/templates/docs/guide/default-theme.md +41 -0
  408. package/templates/docs/guide/deploy.md +197 -0
  409. package/templates/docs/guide/first-five-minutes.md +82 -0
  410. package/templates/docs/guide/getting-started.md +146 -0
  411. package/templates/docs/guide/markdown-and-mdx.md +59 -0
  412. package/templates/docs/guide/routing.md +263 -0
  413. package/templates/docs/guide/what-is-preactpress.md +87 -0
  414. package/templates/docs/index.html +18 -0
  415. package/templates/docs/index.md +28 -0
  416. package/templates/docs/interactive.mdx +32 -0
  417. package/templates/docs/markdown-examples.md +72 -0
  418. package/templates/docs/package.json +15 -0
  419. package/templates/docs/partials/shared-note.md +3 -0
  420. package/templates/docs/parts/include-body.md +9 -0
  421. package/templates/docs/pnpm-lock.yaml +2917 -0
  422. package/templates/docs/snippets/greet.ts +3 -0
  423. package/templates/hono/.preactpress/config.ts +100 -0
  424. package/templates/hono/.preactpress/theme/CodeSnippet.tsx +41 -0
  425. package/templates/hono/.preactpress/theme/FeatureGrid.tsx +27 -0
  426. package/templates/hono/.preactpress/theme/Hero.tsx +45 -0
  427. package/templates/hono/.preactpress/theme/Layout.tsx +388 -0
  428. package/templates/hono/.preactpress/theme/Logo.tsx +26 -0
  429. package/templates/hono/.preactpress/theme/ThemeToggle.tsx +72 -0
  430. package/templates/hono/.preactpress/theme/hono.css +1058 -0
  431. package/templates/hono/README.md +41 -0
  432. package/templates/hono/about.md +10 -0
  433. package/templates/hono/components/Counter.tsx +25 -0
  434. package/templates/hono/de/about.md +10 -0
  435. package/templates/hono/de/guide/commands.md +44 -0
  436. package/templates/hono/de/guide/configuration.md +64 -0
  437. package/templates/hono/de/guide/deploy.md +197 -0
  438. package/templates/hono/de/guide/first-five-minutes.md +82 -0
  439. package/templates/hono/de/guide/getting-started.md +146 -0
  440. package/templates/hono/de/guide/routing.md +220 -0
  441. package/templates/hono/de/guide/seiten-erstellen.md +171 -0
  442. package/templates/hono/de/guide/what-is-preactpress.md +87 -0
  443. package/templates/hono/de/index.mdx +51 -0
  444. package/templates/hono/de/interactive.mdx +32 -0
  445. package/templates/hono/de/markdown-examples.md +142 -0
  446. package/templates/hono/de/parts/include-body.md +9 -0
  447. package/templates/hono/de/snippets/greet.ts +3 -0
  448. package/templates/hono/dist/404.html +29 -0
  449. package/templates/hono/dist/README/index.html +104 -0
  450. package/templates/hono/dist/about/index.html +32 -0
  451. package/templates/hono/dist/assets/Counter-CCEByS-J.js +1 -0
  452. package/templates/hono/dist/assets/Hero--o6WMNvm.js +2 -0
  453. package/templates/hono/dist/assets/de-D5r6Ye70.js +10 -0
  454. package/templates/hono/dist/assets/hono-BXWYYdyv.js +10 -0
  455. package/templates/hono/dist/assets/interactive-Bxo-WBpC.js +9 -0
  456. package/templates/hono/dist/assets/interactive-BznI4IQ3.js +9 -0
  457. package/templates/hono/dist/assets/main-Bqi-VFEk.js +2 -0
  458. package/templates/hono/dist/assets/main-DIIN7FO0.css +1 -0
  459. package/templates/hono/dist/de/about/index.html +32 -0
  460. package/templates/hono/dist/de/guide/commands/index.html +41 -0
  461. package/templates/hono/dist/de/guide/configuration/index.html +105 -0
  462. package/templates/hono/dist/de/guide/deploy/index.html +195 -0
  463. package/templates/hono/dist/de/guide/first-five-minutes/index.html +99 -0
  464. package/templates/hono/dist/de/guide/getting-started/index.html +173 -0
  465. package/templates/hono/dist/de/guide/routing/index.html +165 -0
  466. package/templates/hono/dist/de/guide/seiten-erstellen/index.html +234 -0
  467. package/templates/hono/dist/de/guide/what-is-preactpress/index.html +141 -0
  468. package/templates/hono/dist/de/index.html +30 -0
  469. package/templates/hono/dist/de/interactive/index.html +37 -0
  470. package/templates/hono/dist/de/markdown-examples/index.html +97 -0
  471. package/templates/hono/dist/de/parts/include-body/index.html +36 -0
  472. package/templates/hono/dist/de/tags/markdown/index.html +32 -0
  473. package/templates/hono/dist/favicon-32.png +0 -0
  474. package/templates/hono/dist/favicon.png +0 -0
  475. package/templates/hono/dist/favicon.svg +28 -0
  476. package/templates/hono/dist/guide/commands/index.html +41 -0
  477. package/templates/hono/dist/guide/configuration/index.html +158 -0
  478. package/templates/hono/dist/guide/creating-pages/index.html +234 -0
  479. package/templates/hono/dist/guide/deploy/index.html +195 -0
  480. package/templates/hono/dist/guide/first-five-minutes/index.html +99 -0
  481. package/templates/hono/dist/guide/getting-started/index.html +173 -0
  482. package/templates/hono/dist/guide/routing/index.html +165 -0
  483. package/templates/hono/dist/guide/what-is-preactpress/index.html +141 -0
  484. package/templates/hono/dist/index.html +30 -0
  485. package/templates/hono/dist/interactive/index.html +37 -0
  486. package/templates/hono/dist/markdown-examples/index.html +105 -0
  487. package/templates/hono/dist/partials/shared-note/index.html +30 -0
  488. package/templates/hono/dist/parts/include-body/index.html +36 -0
  489. package/templates/hono/dist/preactpress-content/404.json +8 -0
  490. package/templates/hono/dist/preactpress-content/README.json +26 -0
  491. package/templates/hono/dist/preactpress-content/about.json +15 -0
  492. package/templates/hono/dist/preactpress-content/de__about.json +15 -0
  493. package/templates/hono/dist/preactpress-content/de__guide__commands.json +36 -0
  494. package/templates/hono/dist/preactpress-content/de__guide__configuration.json +41 -0
  495. package/templates/hono/dist/preactpress-content/de__guide__deploy.json +56 -0
  496. package/templates/hono/dist/preactpress-content/de__guide__first-five-minutes.json +36 -0
  497. package/templates/hono/dist/preactpress-content/de__guide__getting-started.json +51 -0
  498. package/templates/hono/dist/preactpress-content/de__guide__routing.json +61 -0
  499. package/templates/hono/dist/preactpress-content/de__guide__seiten-erstellen.json +71 -0
  500. package/templates/hono/dist/preactpress-content/de__guide__what-is-preactpress.json +51 -0
  501. package/templates/hono/dist/preactpress-content/de__markdown-examples.json +131 -0
  502. package/templates/hono/dist/preactpress-content/de__parts__include-body.json +16 -0
  503. package/templates/hono/dist/preactpress-content/de__tags__markdown.json +16 -0
  504. package/templates/hono/dist/preactpress-content/guide__commands.json +36 -0
  505. package/templates/hono/dist/preactpress-content/guide__configuration.json +51 -0
  506. package/templates/hono/dist/preactpress-content/guide__creating-pages.json +71 -0
  507. package/templates/hono/dist/preactpress-content/guide__deploy.json +56 -0
  508. package/templates/hono/dist/preactpress-content/guide__first-five-minutes.json +36 -0
  509. package/templates/hono/dist/preactpress-content/guide__getting-started.json +51 -0
  510. package/templates/hono/dist/preactpress-content/guide__routing.json +61 -0
  511. package/templates/hono/dist/preactpress-content/guide__what-is-preactpress.json +51 -0
  512. package/templates/hono/dist/preactpress-content/markdown-examples.json +141 -0
  513. package/templates/hono/dist/preactpress-content/partials__shared-note.json +10 -0
  514. package/templates/hono/dist/preactpress-content/parts__include-body.json +16 -0
  515. package/templates/hono/dist/preactpress-content/tags__markdown.json +16 -0
  516. package/templates/hono/dist/preactpress-search.json +242 -0
  517. package/templates/hono/dist/preactpress-theme.js +1 -0
  518. package/templates/hono/dist/tags/markdown/index.html +32 -0
  519. package/templates/hono/guide/commands.md +44 -0
  520. package/templates/hono/guide/configuration.md +177 -0
  521. package/templates/hono/guide/creating-pages.md +171 -0
  522. package/templates/hono/guide/deploy.md +197 -0
  523. package/templates/hono/guide/first-five-minutes.md +82 -0
  524. package/templates/hono/guide/getting-started.md +146 -0
  525. package/templates/hono/guide/routing.md +263 -0
  526. package/templates/hono/guide/what-is-preactpress.md +87 -0
  527. package/templates/hono/index.html +18 -0
  528. package/templates/hono/index.mdx +51 -0
  529. package/templates/hono/interactive.mdx +32 -0
  530. package/templates/hono/markdown-examples.md +160 -0
  531. package/templates/hono/package.json +15 -0
  532. package/templates/hono/partials/shared-note.md +3 -0
  533. package/templates/hono/parts/include-body.md +9 -0
  534. package/templates/hono/pnpm-lock.yaml +2917 -0
  535. package/templates/hono/snippets/greet.ts +3 -0
  536. package/templates/magazine/.preactpress/config.ts +36 -0
  537. package/templates/magazine/.preactpress/theme/Layout.tsx +319 -0
  538. package/templates/magazine/.preactpress/theme/TeaserGrid.tsx +39 -0
  539. package/templates/magazine/.preactpress/theme/ThemeToggle.tsx +73 -0
  540. package/templates/magazine/.preactpress/theme/magazine.css +587 -0
  541. package/templates/magazine/article-markets.md +24 -0
  542. package/templates/magazine/article-tech.mdx +35 -0
  543. package/templates/magazine/index.data.ts +19 -0
  544. package/templates/magazine/index.html +14 -0
  545. package/templates/magazine/index.mdx +13 -0
  546. package/templates/magazine/package.json +15 -0
@@ -0,0 +1,231 @@
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="UTF-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <title>Markdown examples | PreactPress</title>
7
+ <script src="/preactpress/preactpress-theme.js"></script>
8
+ <meta name="description" content="Rendered examples of PreactPress Markdown extensions.">
9
+ <meta property="article:tag" content="markdown">
10
+ <meta property="og:title" content="Markdown examples | PreactPress">
11
+ <meta property="og:description" content="Rendered examples of PreactPress Markdown extensions.">
12
+ <meta property="og:type" content="website">
13
+ <meta property="og:url" content="/preactpress/markdown-examples/">
14
+ <meta name="twitter:card" content="summary">
15
+ <meta name="twitter:title" content="Markdown examples | PreactPress">
16
+ <meta name="twitter:description" content="Rendered examples of PreactPress Markdown extensions.">
17
+ <link rel="canonical" href="/preactpress/markdown-examples/">
18
+ <script type="application/ld+json">{"@context":"https://schema.org","@type":"WebPage","headline":"Markdown examples | PreactPress","name":"Markdown examples | PreactPress","description":"Rendered examples of PreactPress Markdown extensions.","url":"/preactpress/markdown-examples/","dateModified":"2026-06-08T15:16:59.431Z"}</script>
19
+ <link rel="icon" href="/favicon.svg" type="image/svg+xml">
20
+ <link rel="icon" href="/favicon-32.png" type="image/png" sizes="32x32">
21
+ <link rel="icon" href="/favicon.png" type="image/png" sizes="any">
22
+ <link rel="apple-touch-icon" href="/favicon.png">
23
+ <link rel="stylesheet" crossorigin href="/preactpress/assets/main-oodK-zZy.css">
24
+ </head>
25
+ <body>
26
+ <template id="__PREACTPRESS_PAGE_DATA__">{&quot;kind&quot;:&quot;markdown&quot;,&quot;meta&quot;:{&quot;title&quot;:&quot;Markdown examples&quot;,&quot;description&quot;:&quot;Rendered examples of PreactPress Markdown extensions.&quot;,&quot;tags&quot;:[&quot;markdown&quot;]},&quot;html&quot;:&quot;\u003ch2 id=\&quot;code-highlighting\&quot; class=\&quot;pp-heading\&quot;&gt;Code highlighting\u003ca class=\&quot;pp-heading-anchor\&quot; href=\&quot;#code-highlighting\&quot; aria-label=\&quot;Link to this section\&quot;&gt;#\u003c/a&gt;\u003c/h2&gt;\n\u003cpre class=\&quot;shiki shiki-themes github-light github-dark\&quot; style=\&quot;background-color:#fff;--shiki-dark-bg:#24292e;color:#24292e;--shiki-dark:#e1e4e8\&quot; tabindex=\&quot;0\&quot;&gt;\u003ccode&gt;\u003cspan class=\&quot;line\&quot;&gt;\u003cspan style=\&quot;color:#D73A49;--shiki-dark:#F97583\&quot;&gt;export\u003c/span&gt;\u003cspan style=\&quot;color:#D73A49;--shiki-dark:#F97583\&quot;&gt; function\u003c/span&gt;\u003cspan style=\&quot;color:#6F42C1;--shiki-dark:#B392F0\&quot;&gt; greet\u003c/span&gt;\u003cspan style=\&quot;color:#24292E;--shiki-dark:#E1E4E8\&quot;&gt;(\u003c/span&gt;\u003cspan style=\&quot;color:#E36209;--shiki-dark:#FFAB70\&quot;&gt;name\u003c/span&gt;\u003cspan style=\&quot;color:#D73A49;--shiki-dark:#F97583\&quot;&gt;:\u003c/span&gt;\u003cspan style=\&quot;color:#005CC5;--shiki-dark:#79B8FF\&quot;&gt; string\u003c/span&gt;\u003cspan style=\&quot;color:#24292E;--shiki-dark:#E1E4E8\&quot;&gt;) {\u003c/span&gt;\u003c/span&gt;\n\u003cspan class=\&quot;line highlighted\&quot;&gt;\u003cspan style=\&quot;color:#D73A49;--shiki-dark:#F97583\&quot;&gt; return\u003c/span&gt;\u003cspan style=\&quot;color:#032F62;--shiki-dark:#9ECBFF\&quot;&gt; `Hello, ${\u003c/span&gt;\u003cspan style=\&quot;color:#24292E;--shiki-dark:#E1E4E8\&quot;&gt;name\u003c/span&gt;\u003cspan style=\&quot;color:#032F62;--shiki-dark:#9ECBFF\&quot;&gt;}!`\u003c/span&gt;\u003c/span&gt;\n\u003cspan class=\&quot;line\&quot;&gt;\u003cspan style=\&quot;color:#24292E;--shiki-dark:#E1E4E8\&quot;&gt;}\u003c/span&gt;\u003c/span&gt;\u003c/code&gt;\u003c/pre&gt;\u003cp&gt;Inline code such as \u003ccode&gt;themeConfig.outline\u003c/code&gt; uses the theme’s code tokens.\u003c/p&gt;\n\u003ch2 id=\&quot;snippet-import\&quot; class=\&quot;pp-heading\&quot;&gt;Snippet import\u003ca class=\&quot;pp-heading-anchor\&quot; href=\&quot;#snippet-import\&quot; aria-label=\&quot;Link to this section\&quot;&gt;#\u003c/a&gt;\u003c/h2&gt;\n\u003cpre class=\&quot;shiki shiki-themes github-light github-dark\&quot; style=\&quot;background-color:#fff;--shiki-dark-bg:#24292e;color:#24292e;--shiki-dark:#e1e4e8\&quot; tabindex=\&quot;0\&quot;&gt;\u003ccode&gt;\u003cspan class=\&quot;line\&quot;&gt;\u003cspan style=\&quot;color:#D73A49;--shiki-dark:#F97583\&quot;&gt;export\u003c/span&gt;\u003cspan style=\&quot;color:#D73A49;--shiki-dark:#F97583\&quot;&gt; function\u003c/span&gt;\u003cspan style=\&quot;color:#6F42C1;--shiki-dark:#B392F0\&quot;&gt; greet\u003c/span&gt;\u003cspan style=\&quot;color:#24292E;--shiki-dark:#E1E4E8\&quot;&gt;(\u003c/span&gt;\u003cspan style=\&quot;color:#E36209;--shiki-dark:#FFAB70\&quot;&gt;name\u003c/span&gt;\u003cspan style=\&quot;color:#D73A49;--shiki-dark:#F97583\&quot;&gt;:\u003c/span&gt;\u003cspan style=\&quot;color:#005CC5;--shiki-dark:#79B8FF\&quot;&gt; string\u003c/span&gt;\u003cspan style=\&quot;color:#24292E;--shiki-dark:#E1E4E8\&quot;&gt;) {\u003c/span&gt;\u003c/span&gt;\n\u003cspan class=\&quot;line highlighted\&quot;&gt;\u003cspan style=\&quot;color:#D73A49;--shiki-dark:#F97583\&quot;&gt; return\u003c/span&gt;\u003cspan style=\&quot;color:#032F62;--shiki-dark:#9ECBFF\&quot;&gt; `Hello, ${\u003c/span&gt;\u003cspan style=\&quot;color:#24292E;--shiki-dark:#E1E4E8\&quot;&gt;name\u003c/span&gt;\u003cspan style=\&quot;color:#032F62;--shiki-dark:#9ECBFF\&quot;&gt;}!`\u003c/span&gt;\u003c/span&gt;\n\u003cspan class=\&quot;line\&quot;&gt;\u003cspan style=\&quot;color:#24292E;--shiki-dark:#E1E4E8\&quot;&gt;}\u003c/span&gt;\u003c/span&gt;\u003c/code&gt;\u003c/pre&gt;\u003ch2 id=\&quot;containers-and-alerts\&quot; class=\&quot;pp-heading\&quot;&gt;Containers and alerts\u003ca class=\&quot;pp-heading-anchor\&quot; href=\&quot;#containers-and-alerts\&quot; aria-label=\&quot;Link to this section\&quot;&gt;#\u003c/a&gt;\u003c/h2&gt;\n\u003cdiv class=\&quot;pp-container pp-container-tip\&quot;&gt;\u003cp class=\&quot;pp-container-title\&quot;&gt;TIP\u003c/p&gt;\u003cdiv class=\&quot;pp-container-body\&quot;&gt;\u003cp&gt;Custom containers support \u003ccode&gt;tip\u003c/code&gt;, \u003ccode&gt;warning\u003c/code&gt;, \u003ccode&gt;danger\u003c/code&gt;, \u003ccode&gt;info\u003c/code&gt;, and \u003ccode&gt;details\u003c/code&gt;.\u003c/p&gt;\n\u003c/div&gt;\u003c/div&gt;\u003cdiv class=\&quot;pp-container pp-container-note\&quot;&gt;\u003cp class=\&quot;pp-container-title\&quot;&gt;NOTE\u003c/p&gt;\u003cdiv class=\&quot;pp-container-body\&quot;&gt;\u003cp&gt;GFM alert syntax is supported too.\u003c/p&gt;\n\u003c/div&gt;\u003c/div&gt;\u003ch2 id=\&quot;table\&quot; class=\&quot;pp-heading\&quot;&gt;Table\u003ca class=\&quot;pp-heading-anchor\&quot; href=\&quot;#table\&quot; aria-label=\&quot;Link to this section\&quot;&gt;#\u003c/a&gt;\u003c/h2&gt;\n\u003ctable&gt;\n\u003cthead&gt;\n\u003ctr&gt;\n\u003cth&gt;Source\u003c/th&gt;\n\u003cth&gt;Result\u003c/th&gt;\n\u003c/tr&gt;\n\u003c/thead&gt;\n\u003ctbody&gt;\n\u003ctr&gt;\n\u003ctd&gt;\u003ccode&gt;# Title\u003c/code&gt;\u003c/td&gt;\n\u003ctd&gt;Heading\u003c/td&gt;\n\u003c/tr&gt;\n\u003ctr&gt;\n\u003ctd&gt;YAML frontmatter\u003c/td&gt;\n\u003ctd&gt;Page metadata\u003c/td&gt;\n\u003c/tr&gt;\n\u003c/tbody&gt;\n\u003c/table&gt;\n\u003ch2 id=\&quot;stable-heading\&quot; class=\&quot;pp-heading\&quot;&gt;Stable heading\u003ca class=\&quot;pp-heading-anchor\&quot; href=\&quot;#stable-heading\&quot; aria-label=\&quot;Link to this section\&quot;&gt;#\u003c/a&gt;\u003c/h2&gt;\n\u003cp&gt;Use \u003ccode&gt;{#id}\u003c/code&gt; to control a heading fragment.\u003c/p&gt;\n\u003ch2 id=\&quot;inline-table-of-contents\&quot; class=\&quot;pp-heading\&quot;&gt;Inline table of contents\u003ca class=\&quot;pp-heading-anchor\&quot; href=\&quot;#inline-table-of-contents\&quot; aria-label=\&quot;Link to this section\&quot;&gt;#\u003c/a&gt;\u003c/h2&gt;\n\u003cnav class=\&quot;pp-inline-toc\&quot; aria-label=\&quot;Table of contents\&quot;&gt;\u003ca class=\&quot;pp-inline-toc-link level-2\&quot; href=\&quot;#code-highlighting\&quot;&gt;Code highlighting\u003c/a&gt;\u003ca class=\&quot;pp-inline-toc-link level-2\&quot; href=\&quot;#snippet-import\&quot;&gt;Snippet import\u003c/a&gt;\u003ca class=\&quot;pp-inline-toc-link level-2\&quot; href=\&quot;#containers-and-alerts\&quot;&gt;Containers and alerts\u003c/a&gt;\u003ca class=\&quot;pp-inline-toc-link level-2\&quot; href=\&quot;#table\&quot;&gt;Table\u003c/a&gt;\u003ca class=\&quot;pp-inline-toc-link level-2\&quot; href=\&quot;#stable-heading\&quot;&gt;Stable heading\u003c/a&gt;\u003ca class=\&quot;pp-inline-toc-link level-2\&quot; href=\&quot;#inline-table-of-contents\&quot;&gt;Inline table of contents\u003c/a&gt;\u003ca class=\&quot;pp-inline-toc-link level-3\&quot; href=\&quot;#nested-section\&quot;&gt;Nested section\u003c/a&gt;\u003ca class=\&quot;pp-inline-toc-link level-2\&quot; href=\&quot;#code-group\&quot;&gt;Code group\u003c/a&gt;\u003ca class=\&quot;pp-inline-toc-link level-2\&quot; href=\&quot;#included-content\&quot;&gt;Included content\u003c/a&gt;\u003ca class=\&quot;pp-inline-toc-link level-2\&quot; href=\&quot;#emoji-and-math\&quot;&gt;Emoji and math\u003c/a&gt;\u003c/nav&gt;\u003ch3 id=\&quot;nested-section\&quot; class=\&quot;pp-heading\&quot;&gt;Nested section\u003ca class=\&quot;pp-heading-anchor\&quot; href=\&quot;#nested-section\&quot; aria-label=\&quot;Link to this section\&quot;&gt;#\u003c/a&gt;\u003c/h3&gt;\n\u003cp&gt;The generated table of contents includes level-three headings.\u003c/p&gt;\n\u003ch2 id=\&quot;code-group\&quot; class=\&quot;pp-heading\&quot;&gt;Code group\u003ca class=\&quot;pp-heading-anchor\&quot; href=\&quot;#code-group\&quot; aria-label=\&quot;Link to this section\&quot;&gt;#\u003c/a&gt;\u003c/h2&gt;\n\u003cdiv class=\&quot;pp-code-group\&quot;&gt;\u003cinput type=\&quot;radio\&quot; name=\&quot;pp-cg-1\&quot; id=\&quot;pp-cg-1-0\&quot; class=\&quot;pp-code-group-input\&quot; checked&gt;\u003clabel for=\&quot;pp-cg-1-0\&quot; class=\&quot;pp-code-group-tab\&quot;&gt;pnpm\u003c/label&gt;\u003cinput type=\&quot;radio\&quot; name=\&quot;pp-cg-1\&quot; id=\&quot;pp-cg-1-1\&quot; class=\&quot;pp-code-group-input\&quot;&gt;\u003clabel for=\&quot;pp-cg-1-1\&quot; class=\&quot;pp-code-group-tab\&quot;&gt;npm\u003c/label&gt;\u003cdiv class=\&quot;pp-code-group-blocks\&quot;&gt;\u003cdiv class=\&quot;pp-code-group-block\&quot;&gt;\u003cpre class=\&quot;shiki shiki-themes github-light github-dark\&quot; style=\&quot;background-color:#fff;--shiki-dark-bg:#24292e;color:#24292e;--shiki-dark:#e1e4e8\&quot; tabindex=\&quot;0\&quot;&gt;\u003ccode&gt;\u003cspan class=\&quot;line\&quot;&gt;\u003cspan style=\&quot;color:#6F42C1;--shiki-dark:#B392F0\&quot;&gt;pnpm\u003c/span&gt;\u003cspan style=\&quot;color:#032F62;--shiki-dark:#9ECBFF\&quot;&gt; add\u003c/span&gt;\u003cspan style=\&quot;color:#005CC5;--shiki-dark:#79B8FF\&quot;&gt; -D\u003c/span&gt;\u003cspan style=\&quot;color:#032F62;--shiki-dark:#9ECBFF\&quot;&gt; preactpress\u003c/span&gt;\u003c/span&gt;\u003c/code&gt;\u003c/pre&gt;\u003c/div&gt;\u003cdiv class=\&quot;pp-code-group-block\&quot;&gt;\u003cpre class=\&quot;shiki shiki-themes github-light github-dark\&quot; style=\&quot;background-color:#fff;--shiki-dark-bg:#24292e;color:#24292e;--shiki-dark:#e1e4e8\&quot; tabindex=\&quot;0\&quot;&gt;\u003ccode&gt;\u003cspan class=\&quot;line\&quot;&gt;\u003cspan style=\&quot;color:#6F42C1;--shiki-dark:#B392F0\&quot;&gt;npm\u003c/span&gt;\u003cspan style=\&quot;color:#032F62;--shiki-dark:#9ECBFF\&quot;&gt; install\u003c/span&gt;\u003cspan style=\&quot;color:#005CC5;--shiki-dark:#79B8FF\&quot;&gt; --save-dev\u003c/span&gt;\u003cspan style=\&quot;color:#032F62;--shiki-dark:#9ECBFF\&quot;&gt; preactpress\u003c/span&gt;\u003c/span&gt;\u003c/code&gt;\u003c/pre&gt;\u003c/div&gt;\u003c/div&gt;\u003c/div&gt;\u003ch2 id=\&quot;included-content\&quot; class=\&quot;pp-heading\&quot;&gt;Included content\u003ca class=\&quot;pp-heading-anchor\&quot; href=\&quot;#included-content\&quot; aria-label=\&quot;Link to this section\&quot;&gt;#\u003c/a&gt;\u003c/h2&gt;\n\u003cdiv class=\&quot;pp-container pp-container-tip\&quot;&gt;\u003cp class=\&quot;pp-container-title\&quot;&gt;Shared fragment\u003c/p&gt;\u003cdiv class=\&quot;pp-container-body\&quot;&gt;\u003cp&gt;This note is pulled in via \u003ccode&gt;&amp;lt;!-- include cycle detected: /home/watzak/master/kamod/preactpress/templates/docs/partials/shared-note.md --&amp;gt;\u003c/code&gt;.\u003c/p&gt;\n\u003c/div&gt;\u003c/div&gt;\u003ch2 id=\&quot;emoji-and-math\&quot; class=\&quot;pp-heading\&quot;&gt;Emoji and math\u003ca class=\&quot;pp-heading-anchor\&quot; href=\&quot;#emoji-and-math\&quot; aria-label=\&quot;Link to this section\&quot;&gt;#\u003c/a&gt;\u003c/h2&gt;\n\u003cp&gt;This starter enables both options: 🚀\u003c/p&gt;\n\u003cp&gt;Inline math: \n \u003cspan id=\&quot;mjx-a543d31\&quot;&gt;\n \u003cstyle&gt;\n #mjx-a543d31{\n display:contents;\n mjx-assistive-mml {\n user-select: text !important;\n clip: auto !important;\n color: rgba(0,0,0,0);\n }\n \nmjx-container[jax=\&quot;SVG\&quot;] {\n direction: ltr;\n}\n\nmjx-container[jax=\&quot;SVG\&quot;] &gt; svg {\n overflow: visible;\n min-height: 1px;\n min-width: 1px;\n}\n\nmjx-container[jax=\&quot;SVG\&quot;] &gt; svg a {\n fill: blue;\n stroke: blue;\n}\n\nmjx-assistive-mml {\n position: absolute !important;\n top: 0px;\n left: 0px;\n clip: rect(1px, 1px, 1px, 1px);\n padding: 1px 0px 0px 0px !important;\n border: 0px !important;\n display: block !important;\n width: auto !important;\n overflow: hidden !important;\n -webkit-touch-callout: none;\n -webkit-user-select: none;\n -khtml-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n}\n\nmjx-assistive-mml[display=\&quot;block\&quot;] {\n width: 100% !important;\n}\n\nmjx-container[jax=\&quot;SVG\&quot;][display=\&quot;true\&quot;] {\n display: block;\n text-align: center;\n margin: 1em 0;\n}\n\nmjx-container[jax=\&quot;SVG\&quot;][display=\&quot;true\&quot;][width=\&quot;full\&quot;] {\n display: flex;\n}\n\nmjx-container[jax=\&quot;SVG\&quot;][justify=\&quot;left\&quot;] {\n text-align: left;\n}\n\nmjx-container[jax=\&quot;SVG\&quot;][justify=\&quot;right\&quot;] {\n text-align: right;\n}\n\ng[data-mml-node=\&quot;merror\&quot;] &gt; g {\n fill: red;\n stroke: red;\n}\n\ng[data-mml-node=\&quot;merror\&quot;] &gt; rect[data-background] {\n fill: yellow;\n stroke: none;\n}\n\ng[data-mml-node=\&quot;mtable\&quot;] &gt; line[data-line], svg[data-table] &gt; g &gt; line[data-line] {\n stroke-width: 70px;\n fill: none;\n}\n\ng[data-mml-node=\&quot;mtable\&quot;] &gt; rect[data-frame], svg[data-table] &gt; g &gt; rect[data-frame] {\n stroke-width: 70px;\n fill: none;\n}\n\ng[data-mml-node=\&quot;mtable\&quot;] &gt; .mjx-dashed, svg[data-table] &gt; g &gt; .mjx-dashed {\n stroke-dasharray: 140;\n}\n\ng[data-mml-node=\&quot;mtable\&quot;] &gt; .mjx-dotted, svg[data-table] &gt; g &gt; .mjx-dotted {\n stroke-linecap: round;\n stroke-dasharray: 0,140;\n}\n\ng[data-mml-node=\&quot;mtable\&quot;] &gt; g &gt; svg {\n overflow: visible;\n}\n\n[jax=\&quot;SVG\&quot;] mjx-tool {\n display: inline-block;\n position: relative;\n width: 0;\n height: 0;\n}\n\n[jax=\&quot;SVG\&quot;] mjx-tool &gt; mjx-tip {\n position: absolute;\n top: 0;\n left: 0;\n}\n\nmjx-tool &gt; mjx-tip {\n display: inline-block;\n padding: .2em;\n border: 1px solid #888;\n font-size: 70%;\n background-color: #F8F8F8;\n color: black;\n box-shadow: 2px 2px 5px #AAAAAA;\n}\n\ng[data-mml-node=\&quot;maction\&quot;][data-toggle] {\n cursor: pointer;\n}\n\nmjx-status {\n display: block;\n position: fixed;\n left: 1em;\n bottom: 1em;\n min-width: 25%;\n padding: .2em .4em;\n border: 1px solid #888;\n font-size: 90%;\n background-color: #F8F8F8;\n color: black;\n}\n\nforeignObject[data-mjx-xml] {\n font-family: initial;\n line-height: normal;\n overflow: visible;\n}\n\nmjx-container[jax=\&quot;SVG\&quot;] path[data-c], mjx-container[jax=\&quot;SVG\&quot;] use[data-c] {\n stroke-width: 3;\n}\n\ng[data-mml-node=\&quot;xypic\&quot;] path {\n stroke-width: inherit;\n}\n\n.MathJax g[data-mml-node=\&quot;xypic\&quot;] path {\n stroke-width: inherit;\n}\n\n }\n \u003c/style&gt;\n \u003cmjx-container class=\&quot;MathJax\&quot; jax=\&quot;SVG\&quot; style=\&quot;position: relative;\&quot;&gt;\u003csvg style=\&quot;vertical-align: -0.186ex;\&quot; xmlns=\&quot;http://www.w3.org/2000/svg\&quot; width=\&quot;8.699ex\&quot; height=\&quot;2.072ex\&quot; role=\&quot;img\&quot; focusable=\&quot;false\&quot; viewBox=\&quot;0 -833.9 3845.1 915.9\&quot; aria-hidden=\&quot;true\&quot;&gt;\u003cg stroke=\&quot;currentColor\&quot; fill=\&quot;currentColor\&quot; stroke-width=\&quot;0\&quot; transform=\&quot;scale(1,-1)\&quot;&gt;\u003cg data-mml-node=\&quot;math\&quot;&gt;\u003cg data-mml-node=\&quot;mi\&quot;&gt;\u003cpath data-c=\&quot;1D438\&quot; d=\&quot;M492 213Q472 213 472 226Q472 230 477 250T482 285Q482 316 461 323T364 330H312Q311 328 277 192T243 52Q243 48 254 48T334 46Q428 46 458 48T518 61Q567 77 599 117T670 248Q680 270 683 272Q690 274 698 274Q718 274 718 261Q613 7 608 2Q605 0 322 0H133Q31 0 31 11Q31 13 34 25Q38 41 42 43T65 46Q92 46 125 49Q139 52 144 61Q146 66 215 342T285 622Q285 629 281 629Q273 632 228 634H197Q191 640 191 642T193 659Q197 676 203 680H757Q764 676 764 669Q764 664 751 557T737 447Q735 440 717 440H705Q698 445 698 453L701 476Q704 500 704 528Q704 558 697 578T678 609T643 625T596 632T532 634H485Q397 633 392 631Q388 629 386 622Q385 619 355 499T324 377Q347 376 372 376H398Q464 376 489 391T534 472Q538 488 540 490T557 493Q562 493 565 493T570 492T572 491T574 487T577 483L544 351Q511 218 508 216Q505 213 492 213Z\&quot;&gt;\u003c/path&gt;\u003c/g&gt;\u003cg data-mml-node=\&quot;mo\&quot; transform=\&quot;translate(1041.8,0)\&quot;&gt;\u003cpath data-c=\&quot;3D\&quot; d=\&quot;M56 347Q56 360 70 367H707Q722 359 722 347Q722 336 708 328L390 327H72Q56 332 56 347ZM56 153Q56 168 72 173H708Q722 163 722 153Q722 140 707 133H70Q56 140 56 153Z\&quot;&gt;\u003c/path&gt;\u003c/g&gt;\u003cg data-mml-node=\&quot;mi\&quot; transform=\&quot;translate(2097.6,0)\&quot;&gt;\u003cpath data-c=\&quot;1D45A\&quot; d=\&quot;M21 287Q22 293 24 303T36 341T56 388T88 425T132 442T175 435T205 417T221 395T229 376L231 369Q231 367 232 367L243 378Q303 442 384 442Q401 442 415 440T441 433T460 423T475 411T485 398T493 385T497 373T500 364T502 357L510 367Q573 442 659 442Q713 442 746 415T780 336Q780 285 742 178T704 50Q705 36 709 31T724 26Q752 26 776 56T815 138Q818 149 821 151T837 153Q857 153 857 145Q857 144 853 130Q845 101 831 73T785 17T716 -10Q669 -10 648 17T627 73Q627 92 663 193T700 345Q700 404 656 404H651Q565 404 506 303L499 291L466 157Q433 26 428 16Q415 -11 385 -11Q372 -11 364 -4T353 8T350 18Q350 29 384 161L420 307Q423 322 423 345Q423 404 379 404H374Q288 404 229 303L222 291L189 157Q156 26 151 16Q138 -11 108 -11Q95 -11 87 -5T76 7T74 17Q74 30 112 181Q151 335 151 342Q154 357 154 369Q154 405 129 405Q107 405 92 377T69 316T57 280Q55 278 41 278H27Q21 284 21 287Z\&quot;&gt;\u003c/path&gt;\u003c/g&gt;\u003cg data-mml-node=\&quot;msup\&quot; transform=\&quot;translate(2975.6,0)\&quot;&gt;\u003cg data-mml-node=\&quot;mi\&quot;&gt;\u003cpath data-c=\&quot;1D450\&quot; d=\&quot;M34 159Q34 268 120 355T306 442Q362 442 394 418T427 355Q427 326 408 306T360 285Q341 285 330 295T319 325T330 359T352 380T366 386H367Q367 388 361 392T340 400T306 404Q276 404 249 390Q228 381 206 359Q162 315 142 235T121 119Q121 73 147 50Q169 26 205 26H209Q321 26 394 111Q403 121 406 121Q410 121 419 112T429 98T420 83T391 55T346 25T282 0T202 -11Q127 -11 81 37T34 159Z\&quot;&gt;\u003c/path&gt;\u003c/g&gt;\u003cg data-mml-node=\&quot;mn\&quot; transform=\&quot;translate(466,363) scale(0.707)\&quot;&gt;\u003cpath data-c=\&quot;32\&quot; d=\&quot;M109 429Q82 429 66 447T50 491Q50 562 103 614T235 666Q326 666 387 610T449 465Q449 422 429 383T381 315T301 241Q265 210 201 149L142 93L218 92Q375 92 385 97Q392 99 409 186V189H449V186Q448 183 436 95T421 3V0H50V19V31Q50 38 56 46T86 81Q115 113 136 137Q145 147 170 174T204 211T233 244T261 278T284 308T305 340T320 369T333 401T340 431T343 464Q343 527 309 573T212 619Q179 619 154 602T119 569T109 550Q109 549 114 549Q132 549 151 535T170 489Q170 464 154 447T109 429Z\&quot;&gt;\u003c/path&gt;\u003c/g&gt;\u003c/g&gt;\u003c/g&gt;\u003c/g&gt;\u003c/svg&gt;\u003cmjx-assistive-mml unselectable=\&quot;on\&quot; display=\&quot;inline\&quot;&gt;\u003cmath xmlns=\&quot;http://www.w3.org/1998/Math/MathML\&quot;&gt;\u003cmi&gt;E\u003c/mi&gt;\u003cmo&gt;=\u003c/mo&gt;\u003cmi&gt;m\u003c/mi&gt;\u003cmsup&gt;\u003cmi&gt;c\u003c/mi&gt;\u003cmn&gt;2\u003c/mn&gt;\u003c/msup&gt;\u003c/math&gt;\u003c/mjx-assistive-mml&gt;\u003c/mjx-container&gt;\n \u003c/span&gt;\n \u003c/p&gt;\n&quot;,&quot;title&quot;:&quot;Markdown examples&quot;,&quot;description&quot;:&quot;Rendered examples of PreactPress Markdown extensions.&quot;,&quot;tags&quot;:[&quot;markdown&quot;],&quot;pageType&quot;:&quot;website&quot;,&quot;headings&quot;:[{&quot;id&quot;:&quot;code-highlighting&quot;,&quot;text&quot;:&quot;Code highlighting&quot;,&quot;level&quot;:2},{&quot;id&quot;:&quot;snippet-import&quot;,&quot;text&quot;:&quot;Snippet import&quot;,&quot;level&quot;:2},{&quot;id&quot;:&quot;containers-and-alerts&quot;,&quot;text&quot;:&quot;Containers and alerts&quot;,&quot;level&quot;:2},{&quot;id&quot;:&quot;table&quot;,&quot;text&quot;:&quot;Table&quot;,&quot;level&quot;:2},{&quot;id&quot;:&quot;stable-heading&quot;,&quot;text&quot;:&quot;Stable heading&quot;,&quot;level&quot;:2},{&quot;id&quot;:&quot;inline-table-of-contents&quot;,&quot;text&quot;:&quot;Inline table of contents&quot;,&quot;level&quot;:2},{&quot;id&quot;:&quot;nested-section&quot;,&quot;text&quot;:&quot;Nested section&quot;,&quot;level&quot;:3},{&quot;id&quot;:&quot;code-group&quot;,&quot;text&quot;:&quot;Code group&quot;,&quot;level&quot;:2},{&quot;id&quot;:&quot;included-content&quot;,&quot;text&quot;:&quot;Included content&quot;,&quot;level&quot;:2},{&quot;id&quot;:&quot;emoji-and-math&quot;,&quot;text&quot;:&quot;Emoji and math&quot;,&quot;level&quot;:2}],&quot;relativePath&quot;:&quot;markdown-examples.md&quot;,&quot;lastUpdated&quot;:&quot;2026-06-08T15:16:59.431Z&quot;}</template>
27
+ <div id="app"><div class="pp-layout"><a class="pp-skip-link" href="#content">Skip to content</a><header class="pp-nav"><div class="pp-nav-inner"><a class="pp-title" href="/" aria-label="PreactPress"><svg class="pp-logo" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1756 317" role="img" aria-label="PreactPress"><path d="M 1647 76 L 1637 81 L 1633 84 L 1625 93 L 1620 103 L 1619 112 L 1618 113 L 1618 122 L 1619 123 L 1619 128 L 1624 140 L 1636 153 L 1647 159 L 1657 161 L 1658 162 L 1695 163 L 1702 166 L 1711 174 L 1713 179 L 1713 182 L 1714 183 L 1714 188 L 1710 198 L 1704 204 L 1701 206 L 1699 206 L 1695 208 L 1622 208 L 1622 229 L 1699 229 L 1700 228 L 1703 228 L 1704 227 L 1712 225 L 1721 219 L 1726 214 L 1730 208 L 1734 199 L 1734 195 L 1735 194 L 1735 177 L 1730 164 L 1718 151 L 1707 145 L 1705 145 L 1701 143 L 1698 143 L 1697 142 L 1660 141 L 1652 138 L 1644 131 L 1641 126 L 1641 123 L 1640 122 L 1640 113 L 1643 106 L 1648 100 L 1657 95 L 1660 95 L 1661 94 L 1722 94 L 1722 74 L 1654 74 L 1653 75 Z M 1502 78 L 1494 83 L 1487 90 L 1484 96 L 1482 98 L 1482 100 L 1480 103 L 1479 111 L 1478 112 L 1478 123 L 1479 124 L 1479 128 L 1480 129 L 1481 134 L 1484 140 L 1491 149 L 1499 155 L 1507 159 L 1517 161 L 1518 162 L 1554 163 L 1562 166 L 1566 169 L 1571 175 L 1573 179 L 1574 187 L 1573 188 L 1573 192 L 1570 198 L 1565 203 L 1555 208 L 1482 208 L 1482 229 L 1559 229 L 1560 228 L 1563 228 L 1564 227 L 1569 226 L 1577 222 L 1584 216 L 1584 215 L 1588 211 L 1593 201 L 1593 198 L 1595 193 L 1595 179 L 1594 178 L 1594 175 L 1593 174 L 1592 169 L 1587 160 L 1579 152 L 1573 148 L 1561 143 L 1558 143 L 1557 142 L 1540 142 L 1539 141 L 1521 141 L 1520 140 L 1517 140 L 1512 138 L 1509 136 L 1502 128 L 1502 126 L 1500 123 L 1500 112 L 1504 104 L 1509 99 L 1514 96 L 1520 95 L 1521 94 L 1582 94 L 1582 74 L 1514 74 L 1513 75 L 1510 75 L 1504 78 Z M 1280 74 L 1236 74 L 1235 75 L 1227 76 L 1214 82 L 1204 89 L 1198 95 L 1192 103 L 1190 108 L 1187 112 L 1187 114 L 1184 121 L 1183 132 L 1182 133 L 1182 229 L 1204 229 L 1204 131 L 1210 115 L 1221 103 L 1227 100 L 1229 98 L 1231 98 L 1237 95 L 1241 95 L 1242 94 L 1280 94 Z M 312 74 L 267 74 L 266 75 L 259 76 L 241 85 L 237 89 L 236 89 L 225 101 L 217 117 L 216 124 L 215 125 L 215 129 L 214 130 L 214 229 L 236 229 L 236 130 L 237 129 L 238 123 L 242 115 L 253 103 L 259 99 L 269 95 L 273 95 L 274 94 L 312 94 L 312 90 L 313 89 L 313 76 Z M 1362 72 L 1361 73 L 1356 73 L 1355 74 L 1351 74 L 1350 75 L 1344 76 L 1341 78 L 1334 80 L 1332 82 L 1327 84 L 1324 87 L 1320 89 L 1304 106 L 1296 121 L 1296 123 L 1292 133 L 1292 136 L 1291 137 L 1291 143 L 1290 144 L 1290 160 L 1291 161 L 1291 167 L 1292 168 L 1292 171 L 1294 175 L 1295 181 L 1301 193 L 1308 203 L 1323 217 L 1326 218 L 1331 222 L 1337 225 L 1339 225 L 1342 227 L 1344 227 L 1348 229 L 1351 229 L 1352 230 L 1356 230 L 1357 231 L 1367 231 L 1368 232 L 1385 231 L 1386 230 L 1390 230 L 1391 229 L 1394 229 L 1395 228 L 1403 226 L 1418 218 L 1432 206 L 1441 194 L 1445 186 L 1444 185 L 1421 185 L 1410 197 L 1403 202 L 1393 207 L 1391 207 L 1387 209 L 1383 209 L 1382 210 L 1376 210 L 1375 211 L 1360 210 L 1359 209 L 1349 207 L 1341 203 L 1330 195 L 1323 187 L 1320 181 L 1318 179 L 1317 175 L 1315 172 L 1315 169 L 1314 168 L 1313 163 L 1314 162 L 1451 162 L 1452 161 L 1452 143 L 1451 142 L 1450 132 L 1449 131 L 1446 120 L 1442 112 L 1435 102 L 1422 89 L 1413 83 L 1410 82 L 1408 80 L 1406 80 L 1403 78 L 1401 78 L 1398 76 L 1395 76 L 1391 74 L 1386 74 L 1385 73 L 1380 73 L 1379 72 Z M 1313 139 L 1315 135 L 1316 129 L 1320 121 L 1325 114 L 1333 106 L 1340 101 L 1348 97 L 1350 97 L 1357 94 L 1361 94 L 1362 93 L 1379 93 L 1380 94 L 1385 94 L 1386 95 L 1394 97 L 1405 103 L 1409 106 L 1421 119 L 1427 130 L 1427 132 L 1429 136 L 1429 140 L 1428 141 L 1314 141 Z M 1114 84 L 1109 82 L 1107 80 L 1105 80 L 1097 76 L 1090 75 L 1089 74 L 1085 74 L 1084 73 L 1079 73 L 1078 72 L 1061 72 L 1060 73 L 1055 73 L 1054 74 L 1045 75 L 1025 84 L 1018 89 L 1005 102 L 1000 109 L 998 114 L 995 118 L 995 120 L 991 128 L 991 131 L 989 136 L 989 141 L 988 142 L 988 296 L 990 296 L 1010 285 L 1010 209 L 1011 208 L 1016 213 L 1027 221 L 1046 229 L 1054 230 L 1055 231 L 1063 231 L 1064 232 L 1084 231 L 1085 230 L 1089 230 L 1090 229 L 1093 229 L 1094 228 L 1102 226 L 1114 220 L 1125 212 L 1133 204 L 1133 203 L 1137 199 L 1138 196 L 1141 193 L 1146 183 L 1146 181 L 1149 174 L 1150 167 L 1151 166 L 1151 155 L 1152 154 L 1152 149 L 1151 148 L 1151 139 L 1150 138 L 1150 134 L 1149 133 L 1149 130 L 1148 129 L 1146 121 L 1142 113 L 1136 104 L 1125 92 Z M 1059 93 L 1080 93 L 1081 94 L 1085 94 L 1086 95 L 1091 96 L 1094 98 L 1096 98 L 1100 101 L 1103 102 L 1107 105 L 1121 120 L 1127 132 L 1128 138 L 1129 139 L 1129 143 L 1130 144 L 1130 160 L 1129 161 L 1128 169 L 1122 182 L 1118 188 L 1108 198 L 1104 200 L 1101 203 L 1093 207 L 1083 209 L 1082 210 L 1078 210 L 1077 211 L 1062 211 L 1061 210 L 1057 210 L 1056 209 L 1046 207 L 1035 201 L 1031 198 L 1019 185 L 1014 176 L 1014 174 L 1011 167 L 1011 164 L 1010 163 L 1010 142 L 1013 134 L 1013 131 L 1019 119 L 1032 105 L 1038 101 L 1048 96 L 1050 96 L 1054 94 L 1058 94 Z M 769 73 L 768 74 L 764 74 L 763 75 L 757 76 L 754 78 L 747 80 L 745 82 L 740 84 L 733 89 L 717 106 L 711 116 L 711 118 L 708 123 L 708 125 L 706 129 L 706 132 L 705 133 L 705 137 L 704 138 L 704 142 L 703 143 L 703 161 L 704 162 L 704 167 L 705 168 L 705 171 L 706 172 L 706 175 L 707 176 L 708 181 L 715 195 L 718 198 L 720 202 L 731 213 L 741 220 L 753 226 L 755 226 L 762 229 L 765 229 L 766 230 L 770 230 L 771 231 L 796 231 L 797 230 L 802 230 L 806 228 L 809 228 L 810 227 L 815 226 L 827 220 L 838 212 L 841 209 L 841 207 L 828 194 L 824 195 L 817 201 L 807 206 L 805 206 L 801 208 L 798 208 L 797 209 L 792 209 L 791 210 L 776 210 L 775 209 L 770 209 L 754 203 L 748 199 L 736 187 L 729 175 L 729 173 L 726 166 L 726 163 L 725 162 L 725 142 L 726 141 L 726 138 L 727 137 L 729 129 L 738 114 L 749 104 L 759 98 L 761 98 L 764 96 L 766 96 L 770 94 L 774 94 L 775 93 L 792 93 L 793 94 L 797 94 L 813 100 L 815 102 L 818 103 L 826 110 L 828 110 L 841 97 L 841 95 L 837 91 L 826 83 L 808 75 L 804 75 L 803 74 L 799 74 L 798 73 L 793 73 L 792 72 L 776 72 L 775 73 Z M 528 103 L 524 109 L 522 114 L 520 116 L 519 120 L 515 128 L 514 136 L 513 137 L 513 142 L 512 143 L 512 160 L 513 161 L 513 167 L 514 168 L 515 176 L 517 179 L 517 181 L 519 184 L 520 188 L 522 190 L 524 195 L 527 198 L 529 202 L 540 213 L 553 222 L 555 222 L 562 226 L 564 226 L 574 230 L 579 230 L 580 231 L 606 231 L 607 230 L 611 230 L 612 229 L 615 229 L 616 228 L 624 226 L 636 220 L 642 216 L 651 208 L 652 209 L 652 229 L 674 229 L 674 145 L 673 144 L 672 133 L 671 132 L 671 129 L 670 128 L 669 123 L 662 109 L 657 102 L 645 90 L 635 83 L 620 76 L 617 76 L 612 74 L 608 74 L 607 73 L 602 73 L 601 72 L 584 72 L 583 73 L 578 73 L 577 74 L 569 75 L 563 78 L 556 80 L 554 82 L 549 84 L 543 88 Z M 578 94 L 582 94 L 583 93 L 602 93 L 603 94 L 607 94 L 608 95 L 613 96 L 616 98 L 618 98 L 622 100 L 632 107 L 639 114 L 647 126 L 647 128 L 650 134 L 650 137 L 652 142 L 652 161 L 651 162 L 651 166 L 650 167 L 648 175 L 645 181 L 641 187 L 629 199 L 623 203 L 621 203 L 611 208 L 607 208 L 606 209 L 602 209 L 601 210 L 584 210 L 583 209 L 575 208 L 563 203 L 552 195 L 544 186 L 540 178 L 538 176 L 538 174 L 535 167 L 534 157 L 533 156 L 533 148 L 534 147 L 534 142 L 537 134 L 537 131 L 542 121 L 546 115 L 555 106 L 562 101 Z M 396 72 L 395 73 L 390 73 L 389 74 L 381 75 L 364 82 L 351 91 L 341 101 L 333 113 L 327 127 L 327 130 L 325 135 L 325 139 L 324 140 L 324 163 L 325 164 L 325 168 L 326 169 L 328 179 L 331 184 L 331 186 L 334 192 L 341 202 L 357 217 L 371 225 L 373 225 L 376 227 L 378 227 L 382 229 L 385 229 L 386 230 L 390 230 L 391 231 L 417 231 L 418 230 L 423 230 L 424 229 L 427 229 L 428 228 L 436 226 L 454 216 L 468 203 L 476 191 L 478 186 L 477 185 L 456 185 L 455 186 L 453 186 L 452 188 L 442 198 L 428 206 L 426 206 L 422 208 L 419 208 L 418 209 L 413 209 L 412 210 L 396 210 L 395 209 L 386 208 L 383 206 L 381 206 L 375 203 L 365 196 L 355 185 L 349 173 L 347 163 L 348 162 L 476 162 L 477 161 L 485 161 L 485 141 L 484 140 L 484 135 L 483 134 L 483 131 L 482 130 L 481 125 L 474 110 L 465 98 L 455 89 L 448 84 L 443 82 L 441 80 L 439 80 L 428 75 L 420 74 L 419 73 L 413 73 L 412 72 Z M 347 136 L 348 135 L 349 130 L 351 127 L 351 125 L 353 123 L 356 117 L 364 108 L 372 102 L 375 101 L 379 98 L 381 98 L 384 96 L 386 96 L 390 94 L 394 94 L 395 93 L 413 93 L 414 94 L 418 94 L 419 95 L 427 97 L 441 105 L 452 116 L 456 122 L 460 130 L 460 132 L 462 136 L 462 140 L 461 141 L 348 141 L 347 140 Z M 145 83 L 132 77 L 130 77 L 126 75 L 123 75 L 122 74 L 118 74 L 117 73 L 111 73 L 110 72 L 94 72 L 93 73 L 82 74 L 81 75 L 78 75 L 77 76 L 72 77 L 69 79 L 67 79 L 56 85 L 53 88 L 49 90 L 38 101 L 31 111 L 25 123 L 24 129 L 21 137 L 21 143 L 20 144 L 20 296 L 22 296 L 40 287 L 42 285 L 42 209 L 43 208 L 51 215 L 60 221 L 70 226 L 72 226 L 82 230 L 86 230 L 87 231 L 95 231 L 96 232 L 116 231 L 117 230 L 122 230 L 123 229 L 126 229 L 127 228 L 135 226 L 151 217 L 167 202 L 175 190 L 181 175 L 181 172 L 183 167 L 183 161 L 184 160 L 184 143 L 183 142 L 183 137 L 182 136 L 181 129 L 180 128 L 179 123 L 176 118 L 176 116 L 166 101 L 156 91 Z M 87 94 L 91 94 L 92 93 L 112 93 L 113 94 L 117 94 L 118 95 L 126 97 L 132 100 L 142 107 L 149 114 L 154 121 L 158 129 L 158 131 L 161 138 L 161 142 L 162 143 L 162 161 L 161 162 L 161 166 L 160 167 L 158 175 L 155 181 L 146 193 L 135 202 L 119 209 L 110 210 L 109 211 L 95 211 L 94 210 L 85 209 L 71 203 L 60 195 L 53 187 L 49 181 L 44 169 L 43 161 L 42 160 L 42 144 L 43 143 L 44 135 L 48 127 L 48 125 L 52 120 L 53 117 L 65 105 L 74 99 Z M 872 20 L 871 21 L 871 174 L 872 175 L 872 182 L 873 183 L 875 193 L 880 203 L 886 211 L 898 221 L 908 226 L 911 226 L 912 227 L 919 228 L 920 229 L 952 229 L 952 208 L 922 208 L 909 203 L 899 193 L 895 185 L 894 178 L 893 177 L 893 95 L 894 94 L 952 94 L 952 74 L 895 74 L 893 72 L 893 20 Z" fill="currentColor" fill-rule="evenodd"></path></svg></a><div class="pp-nav-right"><div class="pp-nav-desktop"><nav class="pp-nav-links" aria-label="Navigation"><a class href="/guide/getting-started">Guide</a><a class href="/guide/configuration">Reference</a><a class="active" href="/markdown-examples" aria-current="page">Examples</a></nav></div><button type="button" class="pp-theme-toggle" aria-label="Toggle light and dark theme"><span class="pp-theme-toggle-moon" aria-hidden="true"><svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" fill="none" stroke="currentColor" strokeWidth="1.5" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" d="M21.752 15.002A9.72 9.72 0 0 1 18 15.75c-5.385 0-9.75-4.365-9.75-9.75 0-1.33.266-2.597.748-3.752A9.753 9.753 0 0 0 3 11.25C3 16.635 7.365 21 12.75 21a9.753 9.753 0 0 0 9.002-5.998Z"></path></svg></span><span class="pp-theme-toggle-sun" aria-hidden="true"><svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" fill="none" stroke="currentColor" strokeWidth="1.5" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" d="M12 3v2.25m6.364.386-1.591 1.591M21 12h-2.25m-.386 6.364-1.591-1.591M12 18.75V21m-4.773-4.227-1.591 1.591M5.25 12H3m4.227-4.773L5.636 5.636M15.75 12a3.75 3.75 0 1 1-7.5 0 3.75 3.75 0 0 1 7.5 0Z"></path></svg></span></button><button type="button" class="pp-menu-toggle" aria-label="Menu" aria-expanded="false" aria-controls="pp-mobile-drawer"><span aria-hidden="true"></span><span aria-hidden="true"></span><span aria-hidden="true"></span></button></div></div></header><div class="pp-mobile-menu"><button type="button" class="pp-mobile-overlay" aria-label="Close menu" tabindex="-1"></button><aside id="pp-mobile-drawer" class="pp-mobile-drawer" aria-label="Menu" aria-hidden="true" inert><div class="pp-mobile-drawer-header"><strong>Menu</strong><button type="button" class="pp-mobile-close" aria-label="Close menu"><span aria-hidden="true">×</span></button></div><nav class="pp-mobile-nav" aria-label="Navigation"><a class href="/guide/getting-started">Guide</a><a class href="/guide/configuration">Reference</a><a class="active" href="/markdown-examples" aria-current="page">Examples</a></nav><div class="pp-mobile-docs"><strong>Navigation</strong><label class="pp-search"><span>Search</span><input type="search" value placeholder="Filter pages"/></label><details class="pp-sidebar-group pp-sidebar-group-collapsible" open><summary class="pp-sidebar-heading">Introduction</summary><ul><li><a class href="/">Overview</a></li><li><a class href="/guide/what-is-preactpress">What is PreactPress?</a></li><li><a class href="/guide/getting-started">Getting started</a></li><li><a class href="/guide/first-five-minutes">First five minutes</a></li></ul></details><details class="pp-sidebar-group pp-sidebar-group-collapsible" open><summary class="pp-sidebar-heading">Authoring</summary><ul><li><a class href="/guide/creating-pages">Creating pages</a></li><li><a class href="/guide/markdown-and-mdx">Markdown and MDX</a></li><li><a class href="/guide/routing">Routing and i18n</a></li><li><a class href="/guide/default-theme">Default theme</a></li></ul></details><details class="pp-sidebar-group pp-sidebar-group-collapsible" open><summary class="pp-sidebar-heading">Reference</summary><ul><li><a class href="/guide/configuration">Configuration</a></li><li><a class href="/guide/commands">CLI and validation</a></li><li><a class href="/guide/advanced">Advanced APIs</a></li><li><a class href="/guide/custom-themes">Custom themes</a></li><li><a class href="/guide/deploy">Deploy</a></li></ul></details><details class="pp-sidebar-group pp-sidebar-group-collapsible" open><summary class="pp-sidebar-heading">Examples</summary><ul><li><a class="active" href="/markdown-examples" aria-current="page">Markdown examples</a></li><li><a class href="/interactive">Interactive MDX</a></li></ul></details></div></aside></div><div class="pp-body pp-body-doc"><aside class="pp-sidebar" aria-label="Navigation"><details class="pp-sidebar-panel" open><summary>Navigation</summary><label class="pp-search"><span>Search</span><input type="search" value placeholder="Filter pages"/></label><details class="pp-sidebar-group pp-sidebar-group-collapsible" open><summary class="pp-sidebar-heading">Introduction</summary><ul><li><a class href="/">Overview</a></li><li><a class href="/guide/what-is-preactpress">What is PreactPress?</a></li><li><a class href="/guide/getting-started">Getting started</a></li><li><a class href="/guide/first-five-minutes">First five minutes</a></li></ul></details><details class="pp-sidebar-group pp-sidebar-group-collapsible" open><summary class="pp-sidebar-heading">Authoring</summary><ul><li><a class href="/guide/creating-pages">Creating pages</a></li><li><a class href="/guide/markdown-and-mdx">Markdown and MDX</a></li><li><a class href="/guide/routing">Routing and i18n</a></li><li><a class href="/guide/default-theme">Default theme</a></li></ul></details><details class="pp-sidebar-group pp-sidebar-group-collapsible" open><summary class="pp-sidebar-heading">Reference</summary><ul><li><a class href="/guide/configuration">Configuration</a></li><li><a class href="/guide/commands">CLI and validation</a></li><li><a class href="/guide/advanced">Advanced APIs</a></li><li><a class href="/guide/custom-themes">Custom themes</a></li><li><a class href="/guide/deploy">Deploy</a></li></ul></details><details class="pp-sidebar-group pp-sidebar-group-collapsible" open><summary class="pp-sidebar-heading">Examples</summary><ul><li><a class="active" href="/markdown-examples" aria-current="page">Markdown examples</a></li><li><a class href="/interactive">Interactive MDX</a></li></ul></details></details></aside><main id="content" class="pp-main" tabindex="-1" aria-live="polite"><article class="pp-doc pp-doc-doc"><h1 class="pp-doc-title">Markdown examples</h1><p class="pp-doc-lead">Rendered examples of PreactPress Markdown extensions.</p><ul class="pp-doc-tags" aria-label="Tags"><li><a class="pp-tag-chip" href="/tags/markdown">markdown</a></li></ul><div class="pp-doc-content"><h2 id="code-highlighting" class="pp-heading">Code highlighting<a class="pp-heading-anchor" href="#code-highlighting" aria-label="Link to this section">#</a></h2>
28
+ <pre class="shiki shiki-themes github-light github-dark" style="background-color:#fff;--shiki-dark-bg:#24292e;color:#24292e;--shiki-dark:#e1e4e8" tabindex="0"><code><span class="line"><span style="color:#D73A49;--shiki-dark:#F97583">export</span><span style="color:#D73A49;--shiki-dark:#F97583"> function</span><span style="color:#6F42C1;--shiki-dark:#B392F0"> greet</span><span style="color:#24292E;--shiki-dark:#E1E4E8">(</span><span style="color:#E36209;--shiki-dark:#FFAB70">name</span><span style="color:#D73A49;--shiki-dark:#F97583">:</span><span style="color:#005CC5;--shiki-dark:#79B8FF"> string</span><span style="color:#24292E;--shiki-dark:#E1E4E8">) {</span></span>
29
+ <span class="line highlighted"><span style="color:#D73A49;--shiki-dark:#F97583"> return</span><span style="color:#032F62;--shiki-dark:#9ECBFF"> `Hello, ${</span><span style="color:#24292E;--shiki-dark:#E1E4E8">name</span><span style="color:#032F62;--shiki-dark:#9ECBFF">}!`</span></span>
30
+ <span class="line"><span style="color:#24292E;--shiki-dark:#E1E4E8">}</span></span></code></pre><p>Inline code such as <code>themeConfig.outline</code> uses the theme’s code tokens.</p>
31
+ <h2 id="snippet-import" class="pp-heading">Snippet import<a class="pp-heading-anchor" href="#snippet-import" aria-label="Link to this section">#</a></h2>
32
+ <pre class="shiki shiki-themes github-light github-dark" style="background-color:#fff;--shiki-dark-bg:#24292e;color:#24292e;--shiki-dark:#e1e4e8" tabindex="0"><code><span class="line"><span style="color:#D73A49;--shiki-dark:#F97583">export</span><span style="color:#D73A49;--shiki-dark:#F97583"> function</span><span style="color:#6F42C1;--shiki-dark:#B392F0"> greet</span><span style="color:#24292E;--shiki-dark:#E1E4E8">(</span><span style="color:#E36209;--shiki-dark:#FFAB70">name</span><span style="color:#D73A49;--shiki-dark:#F97583">:</span><span style="color:#005CC5;--shiki-dark:#79B8FF"> string</span><span style="color:#24292E;--shiki-dark:#E1E4E8">) {</span></span>
33
+ <span class="line highlighted"><span style="color:#D73A49;--shiki-dark:#F97583"> return</span><span style="color:#032F62;--shiki-dark:#9ECBFF"> `Hello, ${</span><span style="color:#24292E;--shiki-dark:#E1E4E8">name</span><span style="color:#032F62;--shiki-dark:#9ECBFF">}!`</span></span>
34
+ <span class="line"><span style="color:#24292E;--shiki-dark:#E1E4E8">}</span></span></code></pre><h2 id="containers-and-alerts" class="pp-heading">Containers and alerts<a class="pp-heading-anchor" href="#containers-and-alerts" aria-label="Link to this section">#</a></h2>
35
+ <div class="pp-container pp-container-tip"><p class="pp-container-title">TIP</p><div class="pp-container-body"><p>Custom containers support <code>tip</code>, <code>warning</code>, <code>danger</code>, <code>info</code>, and <code>details</code>.</p>
36
+ </div></div><div class="pp-container pp-container-note"><p class="pp-container-title">NOTE</p><div class="pp-container-body"><p>GFM alert syntax is supported too.</p>
37
+ </div></div><h2 id="table" class="pp-heading">Table<a class="pp-heading-anchor" href="#table" aria-label="Link to this section">#</a></h2>
38
+ <table>
39
+ <thead>
40
+ <tr>
41
+ <th>Source</th>
42
+ <th>Result</th>
43
+ </tr>
44
+ </thead>
45
+ <tbody>
46
+ <tr>
47
+ <td><code># Title</code></td>
48
+ <td>Heading</td>
49
+ </tr>
50
+ <tr>
51
+ <td>YAML frontmatter</td>
52
+ <td>Page metadata</td>
53
+ </tr>
54
+ </tbody>
55
+ </table>
56
+ <h2 id="stable-heading" class="pp-heading">Stable heading<a class="pp-heading-anchor" href="#stable-heading" aria-label="Link to this section">#</a></h2>
57
+ <p>Use <code>{#id}</code> to control a heading fragment.</p>
58
+ <h2 id="inline-table-of-contents" class="pp-heading">Inline table of contents<a class="pp-heading-anchor" href="#inline-table-of-contents" aria-label="Link to this section">#</a></h2>
59
+ <nav class="pp-inline-toc" aria-label="Table of contents"><a class="pp-inline-toc-link level-2" href="#code-highlighting">Code highlighting</a><a class="pp-inline-toc-link level-2" href="#snippet-import">Snippet import</a><a class="pp-inline-toc-link level-2" href="#containers-and-alerts">Containers and alerts</a><a class="pp-inline-toc-link level-2" href="#table">Table</a><a class="pp-inline-toc-link level-2" href="#stable-heading">Stable heading</a><a class="pp-inline-toc-link level-2" href="#inline-table-of-contents">Inline table of contents</a><a class="pp-inline-toc-link level-3" href="#nested-section">Nested section</a><a class="pp-inline-toc-link level-2" href="#code-group">Code group</a><a class="pp-inline-toc-link level-2" href="#included-content">Included content</a><a class="pp-inline-toc-link level-2" href="#emoji-and-math">Emoji and math</a></nav><h3 id="nested-section" class="pp-heading">Nested section<a class="pp-heading-anchor" href="#nested-section" aria-label="Link to this section">#</a></h3>
60
+ <p>The generated table of contents includes level-three headings.</p>
61
+ <h2 id="code-group" class="pp-heading">Code group<a class="pp-heading-anchor" href="#code-group" aria-label="Link to this section">#</a></h2>
62
+ <div class="pp-code-group"><input type="radio" name="pp-cg-1" id="pp-cg-1-0" class="pp-code-group-input" checked><label for="pp-cg-1-0" class="pp-code-group-tab">pnpm</label><input type="radio" name="pp-cg-1" id="pp-cg-1-1" class="pp-code-group-input"><label for="pp-cg-1-1" class="pp-code-group-tab">npm</label><div class="pp-code-group-blocks"><div class="pp-code-group-block"><pre class="shiki shiki-themes github-light github-dark" style="background-color:#fff;--shiki-dark-bg:#24292e;color:#24292e;--shiki-dark:#e1e4e8" tabindex="0"><code><span class="line"><span style="color:#6F42C1;--shiki-dark:#B392F0">pnpm</span><span style="color:#032F62;--shiki-dark:#9ECBFF"> add</span><span style="color:#005CC5;--shiki-dark:#79B8FF"> -D</span><span style="color:#032F62;--shiki-dark:#9ECBFF"> preactpress</span></span></code></pre></div><div class="pp-code-group-block"><pre class="shiki shiki-themes github-light github-dark" style="background-color:#fff;--shiki-dark-bg:#24292e;color:#24292e;--shiki-dark:#e1e4e8" tabindex="0"><code><span class="line"><span style="color:#6F42C1;--shiki-dark:#B392F0">npm</span><span style="color:#032F62;--shiki-dark:#9ECBFF"> install</span><span style="color:#005CC5;--shiki-dark:#79B8FF"> --save-dev</span><span style="color:#032F62;--shiki-dark:#9ECBFF"> preactpress</span></span></code></pre></div></div></div><h2 id="included-content" class="pp-heading">Included content<a class="pp-heading-anchor" href="#included-content" aria-label="Link to this section">#</a></h2>
63
+ <div class="pp-container pp-container-tip"><p class="pp-container-title">Shared fragment</p><div class="pp-container-body"><p>This note is pulled in via <code>&lt;!-- include cycle detected: /home/watzak/master/kamod/preactpress/templates/docs/partials/shared-note.md --&gt;</code>.</p>
64
+ </div></div><h2 id="emoji-and-math" class="pp-heading">Emoji and math<a class="pp-heading-anchor" href="#emoji-and-math" aria-label="Link to this section">#</a></h2>
65
+ <p>This starter enables both options: 🚀</p>
66
+ <p>Inline math:
67
+ <span id="mjx-a543d31">
68
+ <style>
69
+ #mjx-a543d31{
70
+ display:contents;
71
+ mjx-assistive-mml {
72
+ user-select: text !important;
73
+ clip: auto !important;
74
+ color: rgba(0,0,0,0);
75
+ }
76
+
77
+ mjx-container[jax="SVG"] {
78
+ direction: ltr;
79
+ }
80
+
81
+ mjx-container[jax="SVG"] > svg {
82
+ overflow: visible;
83
+ min-height: 1px;
84
+ min-width: 1px;
85
+ }
86
+
87
+ mjx-container[jax="SVG"] > svg a {
88
+ fill: blue;
89
+ stroke: blue;
90
+ }
91
+
92
+ mjx-assistive-mml {
93
+ position: absolute !important;
94
+ top: 0px;
95
+ left: 0px;
96
+ clip: rect(1px, 1px, 1px, 1px);
97
+ padding: 1px 0px 0px 0px !important;
98
+ border: 0px !important;
99
+ display: block !important;
100
+ width: auto !important;
101
+ overflow: hidden !important;
102
+ -webkit-touch-callout: none;
103
+ -webkit-user-select: none;
104
+ -khtml-user-select: none;
105
+ -moz-user-select: none;
106
+ -ms-user-select: none;
107
+ user-select: none;
108
+ }
109
+
110
+ mjx-assistive-mml[display="block"] {
111
+ width: 100% !important;
112
+ }
113
+
114
+ mjx-container[jax="SVG"][display="true"] {
115
+ display: block;
116
+ text-align: center;
117
+ margin: 1em 0;
118
+ }
119
+
120
+ mjx-container[jax="SVG"][display="true"][width="full"] {
121
+ display: flex;
122
+ }
123
+
124
+ mjx-container[jax="SVG"][justify="left"] {
125
+ text-align: left;
126
+ }
127
+
128
+ mjx-container[jax="SVG"][justify="right"] {
129
+ text-align: right;
130
+ }
131
+
132
+ g[data-mml-node="merror"] > g {
133
+ fill: red;
134
+ stroke: red;
135
+ }
136
+
137
+ g[data-mml-node="merror"] > rect[data-background] {
138
+ fill: yellow;
139
+ stroke: none;
140
+ }
141
+
142
+ g[data-mml-node="mtable"] > line[data-line], svg[data-table] > g > line[data-line] {
143
+ stroke-width: 70px;
144
+ fill: none;
145
+ }
146
+
147
+ g[data-mml-node="mtable"] > rect[data-frame], svg[data-table] > g > rect[data-frame] {
148
+ stroke-width: 70px;
149
+ fill: none;
150
+ }
151
+
152
+ g[data-mml-node="mtable"] > .mjx-dashed, svg[data-table] > g > .mjx-dashed {
153
+ stroke-dasharray: 140;
154
+ }
155
+
156
+ g[data-mml-node="mtable"] > .mjx-dotted, svg[data-table] > g > .mjx-dotted {
157
+ stroke-linecap: round;
158
+ stroke-dasharray: 0,140;
159
+ }
160
+
161
+ g[data-mml-node="mtable"] > g > svg {
162
+ overflow: visible;
163
+ }
164
+
165
+ [jax="SVG"] mjx-tool {
166
+ display: inline-block;
167
+ position: relative;
168
+ width: 0;
169
+ height: 0;
170
+ }
171
+
172
+ [jax="SVG"] mjx-tool > mjx-tip {
173
+ position: absolute;
174
+ top: 0;
175
+ left: 0;
176
+ }
177
+
178
+ mjx-tool > mjx-tip {
179
+ display: inline-block;
180
+ padding: .2em;
181
+ border: 1px solid #888;
182
+ font-size: 70%;
183
+ background-color: #F8F8F8;
184
+ color: black;
185
+ box-shadow: 2px 2px 5px #AAAAAA;
186
+ }
187
+
188
+ g[data-mml-node="maction"][data-toggle] {
189
+ cursor: pointer;
190
+ }
191
+
192
+ mjx-status {
193
+ display: block;
194
+ position: fixed;
195
+ left: 1em;
196
+ bottom: 1em;
197
+ min-width: 25%;
198
+ padding: .2em .4em;
199
+ border: 1px solid #888;
200
+ font-size: 90%;
201
+ background-color: #F8F8F8;
202
+ color: black;
203
+ }
204
+
205
+ foreignObject[data-mjx-xml] {
206
+ font-family: initial;
207
+ line-height: normal;
208
+ overflow: visible;
209
+ }
210
+
211
+ mjx-container[jax="SVG"] path[data-c], mjx-container[jax="SVG"] use[data-c] {
212
+ stroke-width: 3;
213
+ }
214
+
215
+ g[data-mml-node="xypic"] path {
216
+ stroke-width: inherit;
217
+ }
218
+
219
+ .MathJax g[data-mml-node="xypic"] path {
220
+ stroke-width: inherit;
221
+ }
222
+
223
+ }
224
+ </style>
225
+ <mjx-container class="MathJax" jax="SVG" style="position: relative;"><svg style="vertical-align: -0.186ex;" xmlns="http://www.w3.org/2000/svg" width="8.699ex" height="2.072ex" role="img" focusable="false" viewBox="0 -833.9 3845.1 915.9" aria-hidden="true"><g stroke="currentColor" fill="currentColor" stroke-width="0" transform="scale(1,-1)"><g data-mml-node="math"><g data-mml-node="mi"><path data-c="1D438" d="M492 213Q472 213 472 226Q472 230 477 250T482 285Q482 316 461 323T364 330H312Q311 328 277 192T243 52Q243 48 254 48T334 46Q428 46 458 48T518 61Q567 77 599 117T670 248Q680 270 683 272Q690 274 698 274Q718 274 718 261Q613 7 608 2Q605 0 322 0H133Q31 0 31 11Q31 13 34 25Q38 41 42 43T65 46Q92 46 125 49Q139 52 144 61Q146 66 215 342T285 622Q285 629 281 629Q273 632 228 634H197Q191 640 191 642T193 659Q197 676 203 680H757Q764 676 764 669Q764 664 751 557T737 447Q735 440 717 440H705Q698 445 698 453L701 476Q704 500 704 528Q704 558 697 578T678 609T643 625T596 632T532 634H485Q397 633 392 631Q388 629 386 622Q385 619 355 499T324 377Q347 376 372 376H398Q464 376 489 391T534 472Q538 488 540 490T557 493Q562 493 565 493T570 492T572 491T574 487T577 483L544 351Q511 218 508 216Q505 213 492 213Z"></path></g><g data-mml-node="mo" transform="translate(1041.8,0)"><path data-c="3D" d="M56 347Q56 360 70 367H707Q722 359 722 347Q722 336 708 328L390 327H72Q56 332 56 347ZM56 153Q56 168 72 173H708Q722 163 722 153Q722 140 707 133H70Q56 140 56 153Z"></path></g><g data-mml-node="mi" transform="translate(2097.6,0)"><path data-c="1D45A" d="M21 287Q22 293 24 303T36 341T56 388T88 425T132 442T175 435T205 417T221 395T229 376L231 369Q231 367 232 367L243 378Q303 442 384 442Q401 442 415 440T441 433T460 423T475 411T485 398T493 385T497 373T500 364T502 357L510 367Q573 442 659 442Q713 442 746 415T780 336Q780 285 742 178T704 50Q705 36 709 31T724 26Q752 26 776 56T815 138Q818 149 821 151T837 153Q857 153 857 145Q857 144 853 130Q845 101 831 73T785 17T716 -10Q669 -10 648 17T627 73Q627 92 663 193T700 345Q700 404 656 404H651Q565 404 506 303L499 291L466 157Q433 26 428 16Q415 -11 385 -11Q372 -11 364 -4T353 8T350 18Q350 29 384 161L420 307Q423 322 423 345Q423 404 379 404H374Q288 404 229 303L222 291L189 157Q156 26 151 16Q138 -11 108 -11Q95 -11 87 -5T76 7T74 17Q74 30 112 181Q151 335 151 342Q154 357 154 369Q154 405 129 405Q107 405 92 377T69 316T57 280Q55 278 41 278H27Q21 284 21 287Z"></path></g><g data-mml-node="msup" transform="translate(2975.6,0)"><g data-mml-node="mi"><path data-c="1D450" d="M34 159Q34 268 120 355T306 442Q362 442 394 418T427 355Q427 326 408 306T360 285Q341 285 330 295T319 325T330 359T352 380T366 386H367Q367 388 361 392T340 400T306 404Q276 404 249 390Q228 381 206 359Q162 315 142 235T121 119Q121 73 147 50Q169 26 205 26H209Q321 26 394 111Q403 121 406 121Q410 121 419 112T429 98T420 83T391 55T346 25T282 0T202 -11Q127 -11 81 37T34 159Z"></path></g><g data-mml-node="mn" transform="translate(466,363) scale(0.707)"><path data-c="32" d="M109 429Q82 429 66 447T50 491Q50 562 103 614T235 666Q326 666 387 610T449 465Q449 422 429 383T381 315T301 241Q265 210 201 149L142 93L218 92Q375 92 385 97Q392 99 409 186V189H449V186Q448 183 436 95T421 3V0H50V19V31Q50 38 56 46T86 81Q115 113 136 137Q145 147 170 174T204 211T233 244T261 278T284 308T305 340T320 369T333 401T340 431T343 464Q343 527 309 573T212 619Q179 619 154 602T119 569T109 550Q109 549 114 549Q132 549 151 535T170 489Q170 464 154 447T109 429Z"></path></g></g></g></g></svg><mjx-assistive-mml unselectable="on" display="inline"><math xmlns="http://www.w3.org/1998/Math/MathML"><mi>E</mi><mo>=</mo><mi>m</mi><msup><mi>c</mi><mn>2</mn></msup></math></mjx-assistive-mml></mjx-container>
226
+ </span>
227
+ </p>
228
+ </div><nav class="pp-pager" aria-label="Page navigation"><a class="pp-pager-link previous" href="/guide/deploy"><span>Previous</span>Deploy</a><a class="pp-pager-link next" href="/interactive"><span>Next</span>Interactive MDX</a></nav><footer class="pp-doc-meta"><span>Last updated Jun 8, 2026</span></footer></article></main><aside class="pp-outline" aria-label="On this page"><div class="pp-outline-heading">On this page</div><nav><a class="level-2" href="#code-highlighting">Code highlighting</a><a class="level-2" href="#snippet-import">Snippet import</a><a class="level-2" href="#containers-and-alerts">Containers and alerts</a><a class="level-2" href="#table">Table</a><a class="level-2" href="#stable-heading">Stable heading</a><a class="level-2" href="#inline-table-of-contents">Inline table of contents</a><a class="level-3" href="#nested-section">Nested section</a><a class="level-2" href="#code-group">Code group</a><a class="level-2" href="#included-content">Included content</a><a class="level-2" href="#emoji-and-math">Emoji and math</a></nav></aside></div><footer class="pp-footer">Built with PreactPress.</footer></div></div>
229
+ <script type="module" crossorigin src="/preactpress/assets/main-CreUBb3N.js"></script>
230
+ </body>
231
+ </html>
@@ -0,0 +1,8 @@
1
+ {
2
+ "kind": "markdown",
3
+ "html": "",
4
+ "title": "Not found",
5
+ "description": "Vite + Preact static site generator for Markdown and MDX",
6
+ "meta": {},
7
+ "headings": []
8
+ }
@@ -0,0 +1,50 @@
1
+ {
2
+ "kind": "markdown",
3
+ "meta": {
4
+ "layout": "home",
5
+ "title": "PreactPress",
6
+ "description": "Build static documentation and content sites with Markdown, MDX, Vite, and Preact.",
7
+ "hero": {
8
+ "name": "PreactPress",
9
+ "text": "Static sites, written in Markdown",
10
+ "tagline": "Use Vite and Preact when you need speed, static HTML, and optional interactive components.",
11
+ "actions": [
12
+ {
13
+ "theme": "brand",
14
+ "text": "Get started",
15
+ "link": "/guide/getting-started"
16
+ },
17
+ {
18
+ "theme": "alt",
19
+ "text": "Configuration",
20
+ "link": "/guide/configuration"
21
+ }
22
+ ]
23
+ },
24
+ "features": [
25
+ {
26
+ "icon": "⚡",
27
+ "title": "Fast development",
28
+ "details": "Vite-powered SSR, hot reload, and static production output."
29
+ },
30
+ {
31
+ "icon": "MD",
32
+ "title": "Markdown and MDX",
33
+ "details": "Keep regular pages small and add Preact components only where needed."
34
+ },
35
+ {
36
+ "icon": "✓",
37
+ "title": "Release checks",
38
+ "details": "Validate routes, links, navigation, locales, and drafts before deployment."
39
+ }
40
+ ]
41
+ },
42
+ "html": "<p>PreactPress generates deployable HTML and assets. No Node server is required in production.</p>\n",
43
+ "title": "PreactPress",
44
+ "description": "Build static documentation and content sites with Markdown, MDX, Vite, and Preact.",
45
+ "tags": [],
46
+ "pageType": "website",
47
+ "headings": [],
48
+ "relativePath": "index.md",
49
+ "lastUpdated": "2026-06-08T15:16:59.428Z"
50
+ }
@@ -0,0 +1,15 @@
1
+ {
2
+ "kind": "markdown",
3
+ "meta": {
4
+ "title": "About",
5
+ "description": "About this site"
6
+ },
7
+ "html": "<h1 id=\"about-us\" class=\"pp-heading\">About us<a class=\"pp-heading-anchor\" href=\"#about-us\" aria-label=\"Link to this section\">#</a></h1>\n<p>Your content here.</p>\n<p>This page was added as part of the <a href=\"/guide/first-five-minutes\">Your first 5 minutes</a> tutorial. Replace this text with your own copy — team bio, project mission, contact details, or anything else that belongs on an About page.</p>\n",
8
+ "title": "About",
9
+ "description": "About this site",
10
+ "tags": [],
11
+ "pageType": "website",
12
+ "headings": [],
13
+ "relativePath": "about.md",
14
+ "lastUpdated": "2026-06-04T07:28:10.784Z"
15
+ }
@@ -0,0 +1,45 @@
1
+ {
2
+ "kind": "markdown",
3
+ "meta": {
4
+ "layout": "home",
5
+ "title": "PreactPress auf Deutsch",
6
+ "description": "Kleine deutschsprachige i18n-Demo für PreactPress.",
7
+ "hero": {
8
+ "name": "PreactPress",
9
+ "text": "Willkommen zur i18n-Demo",
10
+ "tagline": "Die vollständige Referenz wird auf Englisch gepflegt; diese Seiten zeigen lokalisierte Navigation und Inhalte.",
11
+ "actions": [
12
+ {
13
+ "theme": "brand",
14
+ "text": "Einführung",
15
+ "link": "/de/guide/what-is-preactpress"
16
+ },
17
+ {
18
+ "theme": "alt",
19
+ "text": "English docs",
20
+ "link": "/guide/getting-started"
21
+ }
22
+ ]
23
+ },
24
+ "features": [
25
+ {
26
+ "icon": "🌍",
27
+ "title": "Locale-Routen",
28
+ "details": "Deutsche Seiten liegen unter /de und verwenden eigene Navigation und Labels."
29
+ },
30
+ {
31
+ "icon": "MD",
32
+ "title": "Markdown",
33
+ "details": "Inhalte bleiben normale Markdown-Dateien."
34
+ }
35
+ ]
36
+ },
37
+ "html": "",
38
+ "title": "PreactPress auf Deutsch",
39
+ "description": "Kleine deutschsprachige i18n-Demo für PreactPress.",
40
+ "tags": [],
41
+ "pageType": "website",
42
+ "headings": [],
43
+ "relativePath": "de/index.md",
44
+ "lastUpdated": "2026-06-08T15:16:59.428Z"
45
+ }
@@ -0,0 +1,26 @@
1
+ {
2
+ "kind": "markdown",
3
+ "meta": {
4
+ "title": "Erste Schritte",
5
+ "description": "PreactPress installieren und lokal starten."
6
+ },
7
+ "html": "<h2 id=\"projekt-erstellen\" class=\"pp-heading\">Projekt erstellen<a class=\"pp-heading-anchor\" href=\"#projekt-erstellen\" aria-label=\"Link to this section\">#</a></h2>\n<pre class=\"shiki shiki-themes github-light github-dark\" style=\"background-color:#fff;--shiki-dark-bg:#24292e;color:#24292e;--shiki-dark:#e1e4e8\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color:#6F42C1;--shiki-dark:#B392F0\">mkdir</span><span style=\"color:#032F62;--shiki-dark:#9ECBFF\"> meine-seite</span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\"> &#x26;&#x26; </span><span style=\"color:#005CC5;--shiki-dark:#79B8FF\">cd</span><span style=\"color:#032F62;--shiki-dark:#9ECBFF\"> meine-seite</span></span>\n<span class=\"line\"><span style=\"color:#6F42C1;--shiki-dark:#B392F0\">pnpm</span><span style=\"color:#032F62;--shiki-dark:#9ECBFF\"> dlx</span><span style=\"color:#032F62;--shiki-dark:#9ECBFF\"> preactpress</span><span style=\"color:#032F62;--shiki-dark:#9ECBFF\"> init</span></span>\n<span class=\"line\"><span style=\"color:#6F42C1;--shiki-dark:#B392F0\">pnpm</span><span style=\"color:#032F62;--shiki-dark:#9ECBFF\"> install</span></span>\n<span class=\"line\"><span style=\"color:#6F42C1;--shiki-dark:#B392F0\">pnpm</span><span style=\"color:#032F62;--shiki-dark:#9ECBFF\"> run</span><span style=\"color:#032F62;--shiki-dark:#9ECBFF\"> dev</span></span></code></pre><p>Öffne danach <a href=\"http://localhost:5173\" target=\"_blank\" rel=\"noopener noreferrer\">http://localhost:5173</a>.</p>\n<h2 id=\"n-chste-schritte\" class=\"pp-heading\">Nächste Schritte<a class=\"pp-heading-anchor\" href=\"#n-chste-schritte\" aria-label=\"Link to this section\">#</a></h2>\n<p>Die vollständigen Anleitungen zu Konfiguration, Markdown, Themes und Deployment stehen in der <a href=\"/guide/getting-started\">englischen Dokumentation</a>.</p>\n",
8
+ "title": "Erste Schritte",
9
+ "description": "PreactPress installieren und lokal starten.",
10
+ "tags": [],
11
+ "pageType": "website",
12
+ "headings": [
13
+ {
14
+ "id": "projekt-erstellen",
15
+ "text": "Projekt erstellen",
16
+ "level": 2
17
+ },
18
+ {
19
+ "id": "n-chste-schritte",
20
+ "text": "Nächste Schritte",
21
+ "level": 2
22
+ }
23
+ ],
24
+ "relativePath": "de/guide/getting-started.md",
25
+ "lastUpdated": "2026-06-08T15:16:59.429Z"
26
+ }
@@ -0,0 +1,21 @@
1
+ {
2
+ "kind": "markdown",
3
+ "meta": {
4
+ "title": "Was ist PreactPress?",
5
+ "description": "Kurze Einführung in den statischen Site-Generator."
6
+ },
7
+ "html": "<p>PreactPress erzeugt statische Websites aus Markdown und MDX. Die Entwicklung läuft mit Vite, Layouts werden mit Preact gebaut, und das Ergebnis kann auf jedem statischen Host veröffentlicht werden.</p>\n<p>Diese deutsche Sektion ist absichtlich klein und demonstriert i18n-Routen, übersetzte UI-Labels und den Sprachwechsel. Die vollständige Referenz befindet sich in den <a href=\"/guide/getting-started\">englischen Docs</a>.</p>\n<h2 id=\"geeignet-f-r\" class=\"pp-heading\">Geeignet für<a class=\"pp-heading-anchor\" href=\"#geeignet-f-r\" aria-label=\"Link to this section\">#</a></h2>\n<ul>\n<li>technische Dokumentation</li>\n<li>Produkt- und Projektseiten</li>\n<li>Blogs und Portfolios</li>\n<li>Inhalte mit einzelnen interaktiven Preact-Komponenten</li>\n</ul>\n",
8
+ "title": "Was ist PreactPress?",
9
+ "description": "Kurze Einführung in den statischen Site-Generator.",
10
+ "tags": [],
11
+ "pageType": "website",
12
+ "headings": [
13
+ {
14
+ "id": "geeignet-f-r",
15
+ "text": "Geeignet für",
16
+ "level": 2
17
+ }
18
+ ],
19
+ "relativePath": "de/guide/what-is-preactpress.md",
20
+ "lastUpdated": "2026-06-08T15:16:59.429Z"
21
+ }
@@ -0,0 +1,46 @@
1
+ {
2
+ "kind": "markdown",
3
+ "meta": {
4
+ "title": "Advanced APIs",
5
+ "description": "Build hooks, data loaders, dynamic routes, MPA mode, and incremental builds."
6
+ },
7
+ "html": "<h2 id=\"async-configuration\" class=\"pp-heading\">Async configuration<a class=\"pp-heading-anchor\" href=\"#async-configuration\" aria-label=\"Link to this section\">#</a></h2>\n<p>Export an async factory when navigation or metadata comes from another system.</p>\n<pre class=\"shiki shiki-themes github-light github-dark\" style=\"background-color:#fff;--shiki-dark-bg:#24292e;color:#24292e;--shiki-dark:#e1e4e8\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color:#D73A49;--shiki-dark:#F97583\">import</span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\"> { defineConfig } </span><span style=\"color:#D73A49;--shiki-dark:#F97583\">from</span><span style=\"color:#032F62;--shiki-dark:#9ECBFF\"> 'preactpress/config'</span></span>\n<span class=\"line\"></span>\n<span class=\"line\"><span style=\"color:#D73A49;--shiki-dark:#F97583\">export</span><span style=\"color:#D73A49;--shiki-dark:#F97583\"> default</span><span style=\"color:#6F42C1;--shiki-dark:#B392F0\"> defineConfig</span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">(</span><span style=\"color:#D73A49;--shiki-dark:#F97583\">async</span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\"> () </span><span style=\"color:#D73A49;--shiki-dark:#F97583\">=></span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\"> ({</span></span>\n<span class=\"line\"><span style=\"color:#24292E;--shiki-dark:#E1E4E8\"> site: { title: </span><span style=\"color:#032F62;--shiki-dark:#9ECBFF\">'CMS docs'</span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">, description: </span><span style=\"color:#032F62;--shiki-dark:#9ECBFF\">'Generated navigation'</span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\"> },</span></span>\n<span class=\"line\"><span style=\"color:#24292E;--shiki-dark:#E1E4E8\"> themeConfig: { sidebar: </span><span style=\"color:#D73A49;--shiki-dark:#F97583\">await</span><span style=\"color:#6F42C1;--shiki-dark:#B392F0\"> loadSidebar</span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">() }</span></span>\n<span class=\"line\"><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">}))</span></span></code></pre><h2 id=\"build-hooks\" class=\"pp-heading\">Build hooks<a class=\"pp-heading-anchor\" href=\"#build-hooks\" aria-label=\"Link to this section\">#</a></h2>\n<ul>\n<li><code>transformHead(ctx)</code> returns additional head tags.</li>\n<li><code>transformPageData(page, ctx)</code> changes page data before rendering.</li>\n<li><code>transformHtml(html, ctx)</code> changes the final HTML document.</li>\n<li><code>buildEnd(ctx)</code> runs after production output is complete.</li>\n</ul>\n<p>Hooks may be asynchronous. Keep output deterministic so incremental builds and CI remain reproducible.</p>\n<h2 id=\"content-loaders\" class=\"pp-heading\">Content loaders<a class=\"pp-heading-anchor\" href=\"#content-loaders\" aria-label=\"Link to this section\">#</a></h2>\n<p>Import <code>createContentLoader</code> from <code>preactpress/config</code> in a <code>*.data.ts</code> module to collect and transform content metadata at build time. Loader results are available to the associated page module.</p>\n<h2 id=\"dynamic-routes\" class=\"pp-heading\">Dynamic routes<a class=\"pp-heading-anchor\" href=\"#dynamic-routes\" aria-label=\"Link to this section\">#</a></h2>\n<p>A route such as <code>products/[slug].mdx</code> can provide <code>products/[slug].paths.ts</code>. The paths module returns the parameter values that PreactPress must render during the static build.</p>\n<p>Every dynamic path must be known at build time; PreactPress does not add a production server.</p>\n<h2 id=\"mpa-mode\" class=\"pp-heading\">MPA mode<a class=\"pp-heading-anchor\" href=\"#mpa-mode\" aria-label=\"Link to this section\">#</a></h2>\n<p>Set <code>mpa: true</code> to omit the client bundle from regular Markdown pages and use full-page navigation. MDX pages still hydrate when they contain interactive components.</p>\n<h2 id=\"incremental-builds\" class=\"pp-heading\">Incremental builds<a class=\"pp-heading-anchor\" href=\"#incremental-builds\" aria-label=\"Link to this section\">#</a></h2>\n<p>Build metadata is stored under <code>cacheDir</code>. Deploy <code>outDir</code> only and keep cache data out of the public artifact.</p>\n",
8
+ "title": "Advanced APIs",
9
+ "description": "Build hooks, data loaders, dynamic routes, MPA mode, and incremental builds.",
10
+ "tags": [],
11
+ "pageType": "website",
12
+ "headings": [
13
+ {
14
+ "id": "async-configuration",
15
+ "text": "Async configuration",
16
+ "level": 2
17
+ },
18
+ {
19
+ "id": "build-hooks",
20
+ "text": "Build hooks",
21
+ "level": 2
22
+ },
23
+ {
24
+ "id": "content-loaders",
25
+ "text": "Content loaders",
26
+ "level": 2
27
+ },
28
+ {
29
+ "id": "dynamic-routes",
30
+ "text": "Dynamic routes",
31
+ "level": 2
32
+ },
33
+ {
34
+ "id": "mpa-mode",
35
+ "text": "MPA mode",
36
+ "level": 2
37
+ },
38
+ {
39
+ "id": "incremental-builds",
40
+ "text": "Incremental builds",
41
+ "level": 2
42
+ }
43
+ ],
44
+ "relativePath": "guide/advanced.md",
45
+ "lastUpdated": "2026-06-08T15:16:59.431Z"
46
+ }
@@ -0,0 +1,26 @@
1
+ {
2
+ "kind": "markdown",
3
+ "meta": {
4
+ "title": "CLI and validation",
5
+ "description": "Commands for scaffolding, development, validation, builds, and previews."
6
+ },
7
+ "html": "<p>Run commands from the site root or pass a root path as the final argument.</p>\n<table>\n<thead>\n<tr>\n<th>Command</th>\n<th>Purpose</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>preactpress init [dir]</code></td>\n<td>Scaffold the minimal starter</td>\n</tr>\n<tr>\n<td><code>preactpress init [dir] --template docs</code></td>\n<td>Scaffold the full documentation starter</td>\n</tr>\n<tr>\n<td><code>preactpress init [dir] --template magazine</code></td>\n<td>Scaffold a custom editorial theme</td>\n</tr>\n<tr>\n<td><code>preactpress init [dir] --template hono</code></td>\n<td>Scaffold a product/docs custom theme</td>\n</tr>\n<tr>\n<td><code>preactpress dev [root]</code></td>\n<td>Start Vite SSR and hot reload</td>\n</tr>\n<tr>\n<td><code>preactpress check [root]</code></td>\n<td>Validate config, routes, links, locales, and drafts</td>\n</tr>\n<tr>\n<td><code>preactpress build [root]</code></td>\n<td>Emit static production files</td>\n</tr>\n<tr>\n<td><code>preactpress preview [root]</code></td>\n<td>Serve <code>outDir</code> locally</td>\n</tr>\n</tbody>\n</table>\n<h2 id=\"recommended-workflow\" class=\"pp-heading\">Recommended workflow<a class=\"pp-heading-anchor\" href=\"#recommended-workflow\" aria-label=\"Link to this section\">#</a></h2>\n<pre class=\"shiki shiki-themes github-light github-dark\" style=\"background-color:#fff;--shiki-dark-bg:#24292e;color:#24292e;--shiki-dark:#e1e4e8\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color:#6F42C1;--shiki-dark:#B392F0\">pnpm</span><span style=\"color:#032F62;--shiki-dark:#9ECBFF\"> run</span><span style=\"color:#032F62;--shiki-dark:#9ECBFF\"> dev</span></span>\n<span class=\"line\"><span style=\"color:#6F42C1;--shiki-dark:#B392F0\">pnpm</span><span style=\"color:#032F62;--shiki-dark:#9ECBFF\"> run</span><span style=\"color:#032F62;--shiki-dark:#9ECBFF\"> check</span></span>\n<span class=\"line\"><span style=\"color:#6F42C1;--shiki-dark:#B392F0\">pnpm</span><span style=\"color:#032F62;--shiki-dark:#9ECBFF\"> run</span><span style=\"color:#032F62;--shiki-dark:#9ECBFF\"> build</span></span>\n<span class=\"line\"><span style=\"color:#6F42C1;--shiki-dark:#B392F0\">pnpm</span><span style=\"color:#032F62;--shiki-dark:#9ECBFF\"> run</span><span style=\"color:#032F62;--shiki-dark:#9ECBFF\"> preview</span></span></code></pre><p>Add <code>check</code> and <code>build</code> to CI. <code>preview</code> is a local smoke-test server, not a production runtime.</p>\n<h2 id=\"what-check-validates\" class=\"pp-heading\">What check validates<a class=\"pp-heading-anchor\" href=\"#what-check-validates\" aria-label=\"Link to this section\">#</a></h2>\n<ul>\n<li>configuration loading</li>\n<li>route collisions and a root page</li>\n<li>nav and sidebar destinations</li>\n<li>relative and root-relative Markdown links</li>\n<li>locale roots and locale-specific navigation</li>\n<li>generated tag routes</li>\n<li>invalid page layouts and misplaced home frontmatter</li>\n<li>drafts and missing descriptions as warnings</li>\n</ul>\n<p>Use <code>ignoreDeadLinks</code> only for intentional external or generated destinations.</p>\n",
8
+ "title": "CLI and validation",
9
+ "description": "Commands for scaffolding, development, validation, builds, and previews.",
10
+ "tags": [],
11
+ "pageType": "website",
12
+ "headings": [
13
+ {
14
+ "id": "recommended-workflow",
15
+ "text": "Recommended workflow",
16
+ "level": 2
17
+ },
18
+ {
19
+ "id": "what-check-validates",
20
+ "text": "What check validates",
21
+ "level": 2
22
+ }
23
+ ],
24
+ "relativePath": "guide/commands.md",
25
+ "lastUpdated": "2026-06-08T15:16:59.431Z"
26
+ }