mdcms/docs
Claude df0f179004
Fix renderer XSS/routing bugs and restore CLI fetch-deps
Renderer (app/index.html):
- Guard the router so navigateTo and the hashchange/popstate handlers only
  load relative .md paths (isSafePagePath). Blocks fetching attacker-
  controlled external URLs injected via the location hash.
- Stop treating in-page heading anchors (#heading) as page files, which
  previously replaced the page with a 404.
- HTML-escape meta.title, link href/title attributes, not-found/offline
  messages, and the icon fallback img; block javascript:/data: hrefs via
  safeUrl.
- Hydrate mdcms tags nested inside tabs/accordions/callouts.
- Configure marked once instead of on every render.
- Validate stored theme value; fix text-align center; resolve per-category
  offline message after categories initialise.

CLI (mdcms.py):
- Restore CDN_DEPS, _WOFF2_URL_RE, _fetch_bunny_fonts, _patch_index_html so
  fetch-deps no longer raises NameError.
- Compare site markers against SITE_FORMAT_VERSION with zero-padded version
  comparison, removing the spurious "update available" warning on v0.6 sites.
- Bump CLI to 0.6.1.

https://claude.ai/code/session_018KXUwmSNMGF2UBywTChCcS
2026-06-12 07:07:15 +00:00
..
banner Add banner for latest version notification 2026-05-18 22:20:48 +07:00
claude-design.md Add configurable nav section toggle icons 2026-05-18 15:08:59 +00:00
dev-release.md Upodated docs 2026-05-17 22:23:07 +07:00
documentation.md Rename resources/ to docs/ 2026-05-08 16:22:42 +00:00
github-workflow.md Adjust paths for MD-CMS multisite workflow 2026-05-18 17:00:16 +07:00
install.md Updated install.md 2026-05-16 21:53:14 +07:00
knownbugs.md Fix two bugs: SPA-routing page load failure and stale service worker 2026-05-19 14:55:51 +00:00
README.md Add placeholder text to README.md 2026-05-10 09:01:45 +07:00
reference-config.md feat: add visibilityifnocontent per-category config key 2026-05-21 15:02:31 +00:00
reference-nav.md Add full reference docs for theme.yml, config.yml, and nav.yml 2026-05-18 08:44:35 +00:00
reference-pages.md docs: add tabs and accordion reference to reference-pages.md 2026-05-21 16:56:44 +00:00
reference-theme.md Update docs: default font provider is now Bunny Fonts 2026-05-19 03:41:44 +00:00
unreleased.md Fix renderer XSS/routing bugs and restore CLI fetch-deps 2026-06-12 07:07:15 +00:00
workflows.md Upodated docs 2026-05-17 22:23:07 +07:00

Placeholder