Commit graph

7 commits

Author SHA1 Message Date
saberzero1
20b1ac1844
feat: add getDate and byDateAndAlphabetical sort utilities 2026-04-03 15:39:35 +02:00
saberzero1
98ee433a93
feat: add htmlToJsx wrapper for safe HAST-to-JSX rendering
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.
2026-03-08 19:25:27 +01:00
saberzero1
c4e9381a9d
deps: update @quartz-community/types 2026-02-28 20:08:37 +01:00
saberzero1
15d75b89e1
fix: use FullSlug/FilePath types from @quartz-community/types for type compatibility
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.
2026-02-13 22:28:05 +01:00
saberzero1
d4a5e3b97d
feat: add path utilities, escape helpers, and capitalize for transformer plugins
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.
2026-02-13 22:24:41 +01:00
saberzero1
61970ce89f
feat: migrate to shared utility library
- Remove plugin template code
- Add path utilities (simplifySlug, joinSegments, etc.)
- Add DOM utilities (removeAllChildren, registerEscapeHandler)
- Add lang utilities (classNames)
- Update package.json for @quartz-community/utils
- Add tests for path utilities
2026-02-09 12:38:53 +01:00
Emile Bangma
09c5a21ea0
Initial commit 2026-02-09 12:28:32 +01:00