Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Releases: selimacerbas/markdown-preview.nvim

v1.9.0

24 May 16:23
@selimacerbas selimacerbas
545cf3b
This commit was created on GitHub.com and signed with GitHub’s verified signature.
GPG key ID: B5690EEEBB952194
Verified
Learn about vigilant mode.

Choose a tag to compare

  • 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 when open_browser = false. on_stop() runs after the server stops and cleanup completes. Both default to nil. (#24, thanks @gogongxt)

Contributors

gogongxt
Assets 2
Loading

v1.8.0

24 May 09:56
@selimacerbas selimacerbas
e8e231f
This commit was created on GitHub.com and signed with GitHub’s verified signature.
GPG key ID: B5690EEEBB952194
Verified
Learn about vigilant mode.

Choose a tag to compare

  • 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 = true enables 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.md and the live-reload control endpoints. A 128-bit token is generated at server start, threaded through the auto-opened browser URL, and stashed in sessionStorage. No user-facing config needed. (#23)
  • Requires: live-server.nvim v1.4.0+ for the token auth feature. If you pin versions, upgrade both together. Lazy.nvim users on branch = "main" or version = "*" are fine.

Contributors

fuzzybear3 and gogongxt
Loading

v1.7.0

19 Apr 21:36
@selimacerbas selimacerbas

Choose a tag to compare

  • Feature: browser config option to override the system default browser (#11)
    • browser = nil (default): system default
    • browser = "Firefox": browser by app/binary name (macOS uses open -a)
    • browser = { "google-chrome", "--incognito" }: full command with args
Loading

v1.6.0

19 Apr 21:25
@selimacerbas selimacerbas

Choose a tag to compare

  • Fix: overlay zoom-in no longer cuts off content. The fullscreen mermaid viewer now properly scrolls when zoomed beyond the viewport (#11)
  • Feature: bottom_padding config 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.exe on Windows Subsystem for Linux (#14)
Loading

v1.5.3

24 Mar 14:58
@selimacerbas selimacerbas

Choose a tag to compare

  • Strip YAML front matter from preview — metadata blocks no longer render as headings/text
Loading

v1.5.2

21 Mar 00:16
@selimacerbas selimacerbas

Choose a tag to compare

  • Add task list checkbox rendering (- [ ] / - [x]) via markdown-it-task-lists
Loading

v1.5.1

13 Mar 08:41
@selimacerbas selimacerbas

Choose a tag to compare

  • Remove heading anchor permalink symbols (#) from preview for cleaner readability
Loading

v1.5.0

13 Mar 01:38
@selimacerbas selimacerbas

Choose a tag to compare

  • 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
Loading

v1.4.0

21 Feb 13:32
@selimacerbas selimacerbas

Choose a tag to compare

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

Loading

v1.3.0

15 Feb 20:04
@selimacerbas selimacerbas

Choose a tag to compare

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
Loading
Previous 1
Previous

AltStyle によって変換されたページ (->オリジナル) /