Lectern
A calm, beautiful reading view for Markdown in VS Code. Getting started · Features · Settings · Changelog · Releases
VS Code's built-in preview is made for checking Markdown while you write it. Lectern is made for reading it. Your file opens in the same tab as a clean, comfortable page with good typography, a warm palette if you want one, and nothing else on screen. Ticking a task or following a link works right there, and the source is one keystroke away. Getting started
Lectern needs VS Code 1.82 or newer. It also works in editors built on VS Code, such as Cursor, Windsurf, Antigravity and VSCodium; it's on Open VSX for the ones that install from there. You can also click the book icon in the editor title bar, right-click a file in the Explorer and choose Open in Reading View, or run Lectern: Open in Reading View from the Command Palette.
FeaturesA palette for every lightRead in Light, Sepia, Dark or Black, or let Editor follow your VS Code theme. High Contrast themes are supported too.
Always know where you areA slide-out outline tracks the section you're reading and jumps anywhere in one click. A thin progress bar and a word count with reading time sit quietly at the edges.
Callouts, tasks and wiki links
MathWrite formulas the way GitHub and Obsidian do:
DiagramsMermaid flowcharts, sequence, class, state, ER, Gantt, pie, mind map, timeline and git
diagrams draw straight from a
Switch palettes and every diagram is redrawn to match:
Click any diagram to open it full screen. Zoom with the mouse wheel, the toolbar or
Mermaid only loads when a note contains a diagram, so everything else stays fast, and a typo shows Mermaid's error next to your source instead of a blank box. The math and diagrams guide has the full syntax, the dollar-sign rules and examples. Code that's easy to readSyntax highlighting for 35+ common languages, with a language label and a one-click copy button on each block.
Make it yoursThe panel in the bottom-right corner sets the palette, font (sans, serif or mono), text size, line width and line spacing. Changes apply instantly and carry over to every file.
And the little things
SettingsEverything is adjustable from the in-view panel. The same values are regular VS Code settings, so you can also set them per workspace:
Commands
ContributingBug reports, ideas and pull requests are all welcome. CONTRIBUTING.md
explains how to build, test and run Lectern locally; LicenseMIT © Omar Elmasry. Lectern bundles open-source libraries such as marked, highlight.js, KaTeX and Mermaid; their licenses are in THIRD_PARTY_NOTICES.md. |