mirror of
https://github.com/folke/snacks.nvim
synced 2025-08-02 09:52:23 +00:00
feat(image): make math packages configurable. Closes #1295
This commit is contained in:
parent
aaed4a9411
commit
e27ba726b1
4 changed files with 20 additions and 3 deletions
|
@ -103,6 +103,11 @@ local defaults = {
|
|||
---@class snacks.image.convert.Config
|
||||
convert = {
|
||||
notify = true, -- show a notification on error
|
||||
math = {
|
||||
-- for latex documents, the doc packages are included automatically,
|
||||
-- but you can add more packages here. Useful for markdown documents.
|
||||
packages = { "amsmath", "amssymb", "amsfonts", "amscd", "mathtools", "physics", "siunitx", "mhchem" },
|
||||
},
|
||||
---@type snacks.image.args
|
||||
mermaid = function()
|
||||
local theme = vim.o.background == "light" and "neutral" or "dark"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue