-
1.1.0 Stable
released this
2026-09-07 17:46:32 +02:00 | 3 commits to master since this releaseFixes
- Crash fix: Live Preview could throw and break the editor whenever a fenced
date-calcblock appeared before inlinedate-calc:code in the same note (CodeMirror'sRangeSetBuilderrequires ranges added in ascending order; the two decoration passes weren't merged/sorted). Decorations are now collected and sorted before being added. verbose=falsebug: inlinedate-calc: ... verbose=falsewas silently truthy (a non-empty string), so it never actually disabled verbose output. Now coerced to a real boolean.- Dead code fix:
diffcould never be auto-inferred fromfrom/toalone (an earliercountdowncheck always matched first). Reordered sofrom+toorstart+endcorrectly inferdiff. - Declared
@codemirror/stateand@codemirror/viewas 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
labelsupport: previously documented but not implemented.label:/label=now works, falling back to a frontmatternameproperty ("Jane's age:"), then the default"Age:".
Internal
- Split the 777-line
main.tsinto focusedsrc/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
RangeSetBuildercrash against the real@codemirror/statepackage, and live end-to-end testing in Obsidian.Downloads
- Crash fix: Live Preview could throw and break the editor whenever a fenced