Skip to content

2.0.3

Choose a tag to compare

@kdnk kdnk released this 11 Sep 01:34
1063f30

Fix indented code being converted to prose during Markdown formatting, especially inside ordered lists and beside lists whose markers are normalized.

  • Preserve ambiguous code together with its list context, outer indentation, and nested comments.
  • Continue formatting unaffected headings, tables, and lists.
  • Retain the awaitable formatting API and the existing scroll-position protection used by Automatic Linker.

Validation: 65 tests, production build, independent CommonMark review over 2,000 generated cases, and 72 additional YAML/source-boundary cases. In Obsidian, the combined pipeline passed 28 property/widget/cursor configurations and 80 saves with no save-induced viewport movement.

For the Automatic Linker → Prettier → Linter workflow, use Automatic Linker 4.10.2 and Linter fork 1.33.0-rc-1-kdnk.2. Disable Linter's remove-empty-lines-between-list-markers-and-checklists rule when Prettier controls list spacing; otherwise the formatters repeatedly undo each other's edits.