Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

hason/pandoc-filters

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pandoc Lua filters

Universal filters

ConTeXt filters

Replace pandoc-citeproc by native MkIV bibliography.

Convert MS Word "Track Changes " comments to PDF comments.

pandoc --lua-filter context/comments.lua -t context
Lorem ipsum dolor sit amet, [Comment text]{.comment-start id=1 author="Martin Hasoň"}consectetuer adipiscing elit[]{.comment-end id=1}.
Lorem ipsum dolor sit amet, \comment[author={Martin Hasoň}]{Comment text}consectetuer adipiscing elit.

Creates an invisible, referencable anchor texts from span with id.

pandoc --lua-filter context/references.lua -t context
The various [canal houses]{#houses} houses at the canal have nice interior.
The various \textreference[houses]{canal houses} houses at the canal have nice interior.

Use new MkIV commands for sections.

pandoc --lua-filter context/sections.lua -t context
# Section
Text

## SubSection 1

### SubSubSection {-}
Text

## SubSection 2
Text
\startsection[title={Section}, reference={section}]
Text
\startsubsection[title={SubSection 1}, reference={subsection-1}]
\startsubsubsubject[title={SubSubSection}, reference={subsubsection}]
Text
\stopsubsubsubject
\stopsubsection
\startsubsection[title={SubSection 2}, reference={subsection-2}]
Text
\stopsubsection
\stopsection

Usage

package.path = package.path .. ";pandoc/?.lua"

local filters = require("filters")

filters.import("meta2header")
filters.import("context/bibliography")
filters.import("context/citations")
filters.import("context/sections")
filters.import("context/rawcontext")
filters.import("context/references")

return filters.all()

Releases

No releases published

Packages

No packages published

Languages