Skip to content

Commit 4670ddc

Browse files
committed
git commit -m "feat(core.latex.renderer): modularize renderer & add snacks.nvim integration
- Refactored 'core.latex.renderer' to decouple image generation from image display, addressing feedback regarding modularity. - Restored original 'latex' + 'dvipng' generation logic and 'dpi' configuration to ensure backward compatibility and image quality control. - Added 'core.integrations.snacks' as a new, optional rendering backend. - Implemented the standard renderer interface (new_image, render, clear) for Snacks. - Added support for multi-line '@math' blocks and fixed cursor concealment logic. - Users can now switch renderers via the 'renderer' config option."
1 parent b91b0cc commit 4670ddc

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

lua/neorg/modules/core/latex/renderer/module.lua

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,6 @@ module.public = {
144144
local original_snippet = module.required["core.integrations.treesitter"].get_node_text(node, buf)
145145

146146
-- FIX: Only clean the surrounding pipe delimeters ($|...|$).
147-
-- We do NOT strip backslashes anymore, because that breaks LaTeX commands like \hat and \frac.
148147
local clean_snippet = original_snippet:gsub("^%$|", "$"):gsub("|%$$", "$")
149148

150149
if #clean_snippet - 2 < module.config.public.min_length then return end

0 commit comments

Comments
 (0)