DocsLit 0.2.2: Lit bundled with your site, safer links
DocsLit 0.2.2 ships Lit with your static build instead of loading it from a CDN, and tightens how links in component descriptions are handled.
DocsLit 0.2.2 is a small release with two changes: your site no longer depends on a third-party CDN for Lit, and links in component descriptions are handled more safely.
Lit ships with your site
Static builds used to load Lit from esm.sh. Now docslit build copies the bundled Lit into docslit-vendor/ next to docslit.js, and the import map points there. Sites render components without a third-party CDN, and they always run the Lit version DocsLit was tested with.
The Lit bundles now share one copy of Lit core, and the lazily loaded Mermaid is pinned to 10.9.8. For how the output is laid out, see Project structure. If you want the background on why we build on Lit, read why we built on Lit and web components.
Safer inline Markdown in attributes
Links in wc-endpoint and wc-field descriptions, and in wc-frame hints, now only allow relative paths, #anchors, http(s): and mailto: URLs. Other targets, such as javascript:, are shown as plain text, and quotes are escaped.
This matters most if you render third-party OpenAPI specs. Descriptions from those specs could previously run script on the docs site. If you use OpenAPI integration with specs you don't control, upgrade.
Full details are in the changelog. Upgrade with npm install -g docslit@latest, or run npx docslit@latest.