With build tools (tsup, typescript) moved to devDependencies, the prepare
script can no longer build when npm fetches this package from GitHub (npm
does not install devDependencies for git dependencies). Commit the pre-built
dist/ output so GitHub-based installs work without a build step.
tsup and typescript are only needed at build time — move to devDependencies
so they can be pruned after build. hast-util-to-jsx-runtime and github-slugger
are available from the host Quartz installation — move to peerDependencies
to avoid duplication across 42+ plugins.
Provides a wrapped toJsxRuntime that prevents HTML-escaping of <style>
and <script> content by using dangerouslySetInnerHTML overrides.
Exported as @quartz-community/utils/jsx entry point.
When installed as a git dependency, npm skips devDependencies. Since
dist/ is gitignored and the prepare script needs tsup to build, these
must be regular dependencies so the prepare hook works on install.
Import branded types from the canonical types package instead of
re-defining them with different brand names. This ensures plugins
using both @quartz-community/types and @quartz-community/utils
have structurally compatible FullSlug and FilePath types.
Add splitAnchor, transformLink, transformInternalLink, resolveRelative,
pathToRoot, slugifyFilePath, slugTag, FilePath type, and various type
guards to path.ts. Add escapeHTML/unescapeHTML in new escape.ts module.
Add capitalize to lang.ts. Add github-slugger dependency.