Milkdown Vertical Writing
@illusions-lab/milkdown-plugin-vertical-writing is a presentation-only plugin for Milkdown. It lays out an existing Milkdown editor in horizontal-tb, vertical-rl, or vertical-lr.
What it provides
- Runtime switching between the three writing modes.
- Optional maximum line length in full-width ideographic character advances.
- Vertical-mode wheel handling that follows the horizontal reading direction.
- Logical scroll-position preservation when the writing mode changes.
What it does not provide
- Theme styling: colours, fonts, borders, and visual design remain with Milkdown and your selected theme.
- Document syntax: it does not parse or support MDI, ruby, or tate-chu-yoko.
- An editor, theme, or Markdown preset. Bring the Milkdown packages your application uses.
Start with Getting Started, then see Writing Modes and the complete API reference.
Live demo
This editor imports the published npm package. Change its mode or line length to see the layout behaviour directly.