Skip to content

simply-logical/pandoc_filter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Custom Pandoc Filters

Custom pandoc filters for converting LaTeX to quarto markdown.

Usage

To convert:

pandoc test.tex -f latex+latex_macros -t markdown --lua-filter=filter_markdown.lua --wrap=preserve -o test.md

To see the pandoc abstract syntax tree (AST):

pandoc test.tex -f latex+raw_tex -t native -o test.txt

Filters List

filter_latex.lua

Replaces LaTeX \customidx{param} with markdown {{< indexer add param >}}.

filter_markdown.lua

Replaces mlind and mldef LaTeX commands with the corresponding markdown syntax.

IMPORTANT: The following code needs to be injected into the LaTeX file preamble for the filter to work:

\input{filter_markdown.tex}

Resources

API

Readers and Writers

Filters

About

Collection of pandoc filters

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published