doc: cleanup

This commit is contained in:
Barrett Ruth 2026-03-06 13:47:53 -05:00
parent f600bc74d1
commit 5f07cdafa6
Signed by: barrett
GPG key ID: A6C96C9349D2FC81
3 changed files with 148 additions and 4 deletions

View file

@ -202,15 +202,22 @@ fonts from a CDN at runtime. Pandoc's `--embed-resources` cannot inline these
dynamic dependencies, so math fails to render in the output.
To use KaTeX or MathJax instead, override `args` to drop `--embed-resources`
(the output will require internet access): >lua
(the output will require internet access). For example, to work with
github-flavored markdown (gfm): >lua
vim.g.preview = {
github = {
args = function(ctx)
return {
'-f', 'gfm', ctx.file, '-s', '--katex',
'--css', 'https://cdn.jsdelivr.net/gh/pixelbrackets/gfm-stylesheet@master/dist/gfm.css',
'-o', ctx.output,
'-f',
'gfm',
ctx.file,
'-s',
'--katex',
'--css',
'https://cdn.jsdelivr.net/gh/pixelbrackets/gfm-stylesheet@master/dist/gfm.css',
'-o',
ctx.output,
}
end,
},