Skip to content

Commit b5a15a3

Browse files
committed
fix: offload markdown rendering to render-markdown/markview
1 parent a954102 commit b5a15a3

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

README.md

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -226,9 +226,14 @@ The only **required** plugin dependency is [plenary.nvim](https://github.com/nvi
226226

227227
**Syntax highlighting:**
228228

229-
- **[recommended]** [nvim-treesitter](https://github.com/nvim-treesitter/nvim-treesitter): for base markdown syntax highlighting.
230-
- [preservim/vim-markdown](https://github.com/preservim/vim-markdown)
231-
- See [syntax highlighting](#syntax-highlighting) for more details.
229+
See [syntax highlighting](#syntax-highlighting) for more details.
230+
231+
- For base syntax highlighting:
232+
- **[recommended]** [nvim-treesitter](https://github.com/nvim-treesitter/nvim-treesitter)
233+
- [preservim/vim-markdown](https://github.com/preservim/vim-markdown)
234+
- For additional syntax features:
235+
- [render-markdown.nvim](https://github.com/MeanderingProgrammer/render-markdown.nvim)
236+
- [markview.nvim](https://github.com/OXY2DEV/markview.nvim)
232237

233238
**Miscellaneous:**
234239

lua/obsidian/client.lua

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,8 @@ Client.set_workspace = function(self, workspace, opts)
125125
self.callback_manager = CallbackManager.new(self, self.opts.callbacks)
126126

127127
-- Setup UI add-ons.
128-
if self.opts.ui.enable then
128+
local has_no_renderer = not (util.get_plugin_info "render-markdown.nvim" or util.get_plugin_info "markview.nvim")
129+
if has_no_renderer and self.opts.ui.enable then
129130
require("obsidian.ui").setup(self.current_workspace, self.opts.ui)
130131
end
131132

0 commit comments

Comments
 (0)