https://github.com/davidar/pandoc-lang
Pandoc filter to detect the language of text
https://github.com/davidar/pandoc-lang
Last synced: about 1 year ago
JSON representation
Pandoc filter to detect the language of text
- Host: GitHub
- URL: https://github.com/davidar/pandoc-lang
- Owner: davidar
- Created: 2018-05-05T02:26:23.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2023-03-22T10:41:59.000Z (about 3 years ago)
- Last Synced: 2025-03-11T18:53:24.075Z (over 1 year ago)
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/pandoc-lang
- Size: 51.8 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# pandoc-lang
Pandoc filter to automatically detect the language of text, and adjust the [`lang` variable](https://pandoc.org/MANUAL.html#language-variables) 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
```sh
npm install -g pandoc-lang
```
## Usage
```sh
pandoc --filter pandoc-lang -s -t markdown test.md
```