• 1.1.0 526f54a640

    1.1.0 Stable

    olivier released this 2026-09-07 17:46:32 +02:00 | 3 commits to master since this release

    Fixes

    • Crash fix: Live Preview could throw and break the editor whenever a fenced date-calc block appeared before inline date-calc: code in the same note (CodeMirror's RangeSetBuilder requires ranges added in ascending order; the two decoration passes weren't merged/sorted). Decorations are now collected and sorted before being added.
    • verbose=false bug: inline date-calc: ... verbose=false was silently truthy (a non-empty string), so it never actually disabled verbose output. Now coerced to a real boolean.
    • Dead code fix: diff could never be auto-inferred from from/to alone (an earlier countdown check always matched first). Reordered so from+to or start+end correctly infer diff.
    • Declared @codemirror/state and @codemirror/view as explicit devDependencies (previously only pulled in transitively via @codemirror/language).

    New

    • Reading View support for inline code: `date-calc: ...` spans now render in Reading View, not just Live Preview (via a markdown post-processor, same approach as Dataview's inline queries).
    • Birthday label support: previously documented but not implemented. label:/label= now works, falling back to a frontmatter name property ("Jane's age:"), then the default "Age:".

    Internal

    • Split the 777-line main.ts into focused src/ modules (types, config parsing, calculations, widgets, Live Preview extension, settings tab) per repo conventions.
    • Fixed command-palette entries showing a duplicated plugin-name prefix.
    • Moved settings-tab inline JS styles into styles.css.

    Verified with unit tests against the real bundled logic, a reproduction of the RangeSetBuilder crash against the real @codemirror/state package, and live end-to-end testing in Obsidian.

    Downloads