-
Notifications
You must be signed in to change notification settings - Fork 20
Releases: selimacerbas/markdown-preview.nvim
Releases · selimacerbas/markdown-preview.nvim
v1.9.0
@selimacerbas
selimacerbas
545cf3b
This commit was created on GitHub.com and signed with GitHub’s verified signature.
- Feature: Lifecycle hooks via
setup({ hooks = { on_start = fn, on_stop = fn } }).on_start(url)runs after the preview is ready and receives the full URL (with the auth token included), useful whenopen_browser = false.on_stop()runs after the server stops and cleanup completes. Both default tonil. (#24, thanks @gogongxt)
Assets 2
v1.8.0
@selimacerbas
selimacerbas
e8e231f
This commit was created on GitHub.com and signed with GitHub’s verified signature.
- Feature:
default_theme = "dark" | "light"config option to set the initial preview theme. The in-browser sun/moon toggle still works after page load. Closes #19. (#16, thanks @gogongxt) - Feature:
mermaid_elk = trueenables the ELK layout engine for mermaid diagrams, producing cleaner layouts for medium and large flowcharts and class diagrams. Off by default (adds ~800 KB CDN fetch). Enable per-diagram with%%{init: {"layout": "elk"}}%%. (#22, thanks @fuzzybear3) - Security: Token auth on
content.mdand the live-reload control endpoints. A 128-bit token is generated at server start, threaded through the auto-opened browser URL, and stashed insessionStorage. No user-facing config needed. (#23) - Requires:
live-server.nvimv1.4.0+for the token auth feature. If you pin versions, upgrade both together. Lazy.nvim users onbranch = "main"orversion = "*"are fine.
Assets 2
v1.7.0
- Feature:
browserconfig option to override the system default browser (#11)browser = nil(default): system defaultbrowser = "Firefox": browser by app/binary name (macOS usesopen -a)browser = { "google-chrome", "--incognito" }: full command with args
Assets 2
v1.6.0
- Fix: overlay zoom-in no longer cuts off content. The fullscreen mermaid viewer now properly scrolls when zoomed beyond the viewport (#11)
- Feature:
bottom_paddingconfig option (0–1 fraction) controls how far the last line can scroll. Default 0.5 means the final line scrolls to the viewport midpoint (#12) - Feature: WSL support — the preview now opens via
explorer.exeon Windows Subsystem for Linux (#14)
Assets 2
v1.5.3
- Strip YAML front matter from preview — metadata blocks no longer render as headings/text
Assets 2
v1.5.2
- Add task list checkbox rendering (
- [ ]/- [x]) via markdown-it-task-lists
Assets 2
v1.5.1
- Remove heading anchor permalink symbols (#) from preview for cleaner readability
Assets 2
v1.5.0
- Add takeover instance mode (default): single browser tab shared across Neovim instances via lock file coordination
- Add multi instance mode: independent server and browser tab per instance (port 0)
- Add lock file and remote event modules for cross-instance coordination
- Secondary instances get scroll sync via HTTP event injection
Assets 2
v1.4.0
What's new
LaTeX math rendering
Added support for LaTeX math via KaTeX and markdown-it-texmath.
- Inline math:
$E = mc^2$ - Display math:
$$\int_0^\infty e^{-x^2} dx$$ - LaTeX environments:
\begin{equation}...\end{equation}
All loaded from CDN, zero extra dependencies. Just update and it works.
Closes #6
Assets 2
v1.3.0
What's new
Line-based scroll sync
Rewrote scroll sync from heading-based to line-based interpolation, inspired by peek.nvim and iamcco/markdown-preview.nvim.
Before: Only headings were tracked (5-15 anchor points), scrolling up was inconsistent, files without headings had no sync at all.
After: Every block element (paragraphs, headings, lists, tables, blockquotes, code blocks) is tagged with its source line number. The browser interpolates between the nearest elements for sub-element precision. Scrolling is instant (no animation fighting) and works in both directions consistently.
Fixes:
- Scrolling up no longer fights with itself
- Files with no headings now scroll correctly
- Layout shifts (images loading) re-apply scroll position automatically