mdcms/app
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
..
assets New standard favicon added. 2026-05-19 15:52:06 +07:00
pages Add tabs and accordion content components to index.html 2026-05-21 16:41:27 +00:00
posts Rename website/ directory to app/ 2026-05-08 15:29:54 +00:00
404.html feat: clean URLs for section-id pages 2026-06-07 17:23:30 +00:00
config.yml Update config file comment for version 0.6.0 2026-06-10 22:06:03 +07:00
index.html Fix renderer XSS/routing bugs and restore CLI fetch-deps 2026-06-12 07:07:15 +00:00
manifest.json Add M favicon, fix manifest for PWA installability 2026-05-17 20:33:00 +00:00
mdcms.json feat: mdcms build writes mdcms.json; register accepts URLs 2026-06-07 18:00:24 +00:00
nav.yml Add tabs and accordion content components to index.html 2026-05-21 16:41:27 +00:00
search.json Add tabs and accordion content components to index.html 2026-05-21 16:41:27 +00:00
service-worker.js Add tabs and accordion content components to index.html 2026-05-21 16:41:27 +00:00
theme.yml Add configurable nav section toggle icons 2026-05-18 15:08:59 +00:00