// preview-markdown.js — markdown plugin for the browse preview pane. // // Layout (CSS Grid): // ┌─────────────────────────────────────────────────────────────────┐ // │ info: name | dirty | status | source | DOCX HTML PDF | Save │ // ├────────────────────────┬────────────────────────────────────────┤ // │ YAML front matter │ │ // │ ┌──────────────────┐ │ │ // │ │ title: Foo │ │ Toast UI Editor │ // │ │ revision: A │ │ (md / wysiwyg / preview) │ // │ └──────────────────┘ │ │ // ├────────────────────────┤ │ // │ Outline │ │ // │ • Heading 1 │ │ // │ • Subheading │ │ // │ • Heading 2 │ │ // └────────────────────────┴────────────────────────────────────────┘ // Grid keeps every cell's size definite, which is what Toast UI needs // to compute its inner scroll regions correctly. The previous nested- // flexbox layout produced indeterminate heights and a fragile TOC // pane width — grid fixes both. // // Front matter is edited in a dedicated