md-mode 0.4.0
What's new
- Keep Markdown tables completely source-shaped in editable mode: literal pipes, separators, alignment markers, and spacing remain visible.
- Make automatic source alignment opt-in; explicit table editing and alignment commands remain available.
- Render each complete table as one responsive multiline widget inside the normal md-mode rendered buffer.
- Use TextUI 0.8.0's standalone block-widget API for layout and attachment without handing ownership of the Markdown buffer to TextUI.
- Preserve exact Markdown source when leaving rendered view or saving.
- Relayout widgets on compatible window-width and text-scale changes while preserving point and modification state.
- Keep
md-render-convertand streaming integrations on the legacy string renderer. - Normalize short and over-wide body rows to the header column count.
Large-table performance
Scrolling rendered tables does not trigger layout. Layout work grows roughly linearly and occurs on initial rendering, compatible window resize, and text scaling. The README records representative four-column mixed CJK/ASCII measurements: about 43 ms for 100 rows, 90–95 ms for 300 rows, and 290 ms for 1,000 rows.
Requirement
Rendered Markdown containing tables requires TextUI 0.8.0 or newer: https://github.com/yibie/textui/releases/tag/v0.8.0
Verification
- 243 ERT tests pass.
- Byte compilation, Checkdoc, package-lint for md-mode.el, and whitespace checks pass.