doc: cleanup
This commit is contained in:
parent
f600bc74d1
commit
5f07cdafa6
3 changed files with 148 additions and 4 deletions
|
|
@ -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,
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue