Skip to content

davidar/pandoc-lang

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pandoc-lang

Pandoc filter to automatically detect the language of text, and adjust the lang variable in the document metadata.

It will also attempt to detect the programming language used for any code blocks that specify highlight as the class name.

Installation

npm install -g pandoc-lang

Usage

pandoc --filter pandoc-lang -s -t markdown test.md