Skip to content

Use Katex and pandoc markdown #3

@ianchanning

Description

@ianchanning

This plugin is working wonderfully, but seeing as you're using pandoc to convert the markdown it's a shame not to use pandoc markdown. On top of that there is the wonderful Katex library for displaying LaTeX math in HTML and pandoc has native support for this with the --katex param.

I use the following command to get some beautiful pandoc HTML out:

pandoc -f markdown test.md -o test.html --standalone -t html --katex

Looking at these lines

call jobstart([
\ 'pandoc',
\ '-f', 'gfm',
\ input_path,
\ '-o', s:output_path,
\ '--standalone',
\ '-t', 'html',
\ '--metadata',
\ 'pagetitle='.filename,
\ '--include-in-header='.l:stylesheet,
\ ],
\ self
\ )

It looks like you use the GitHub formatted markdown by default. You could also set the markdown --from parameter to be an option.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions