# Bundled Web Libraries
#
# These files are loaded at runtime by MermaidWebView and HTMLBlockView
# for fully offline rendering. They are inlined into the HTML string via
# BundledWebResources.swift.
#
# Pinned versions
#   mermaid           11.12.3   mermaid.min.js
#   marked            15.0.12   marked.min.js
#   DOMPurify          3.3.2    purify.min.js
#   github-markdown-css 5.9.0   github-markdown-{dark,light}.min.css
#
# How to update
#   1. Check for new releases on each library's GitHub repository.
#   2. Download the new minified files from jsDelivr, pinning the exact version:
#
#        curl -Lo mermaid.min.js    "https://cdn.jsdelivr.net/npm/mermaid@VERSION/dist/mermaid.min.js"
#        curl -Lo marked.min.js    "https://cdn.jsdelivr.net/npm/marked@VERSION/marked.min.js"
#        curl -Lo purify.min.js    "https://cdn.jsdelivr.net/npm/dompurify@VERSION/dist/purify.min.js"
#        curl -Lo github-markdown-dark.min.css  "https://cdn.jsdelivr.net/npm/github-markdown-css@VERSION/github-markdown-dark.min.css"
#        curl -Lo github-markdown-light.min.css "https://cdn.jsdelivr.net/npm/github-markdown-css@VERSION/github-markdown-light.min.css"
#
#   3. Update the pinned versions in this file.
#   4. Build and verify: `just test` passes and rendering works in Simulator.
#   5. For mermaid: confirm the IIFE bundle still exposes `globalThis.mermaid`.
#      If the build format changes, MermaidWebView.swift may need adjustment.
#   6. For DOMPurify: review changelog for API changes and verify the sanitizer
#      config in HTMLBlockView.swift still works (ADD_TAGS, ADD_ATTR lists).
