Skip to content

Latest commit

 

History

History
37 lines (25 loc) · 995 Bytes

README.md

File metadata and controls

37 lines (25 loc) · 995 Bytes

norg-pandoc

Custom pandoc reader for Norg format.

NOTE: This is WIP project. May not work in some edge cases.

Usage

pandoc --from=init.lua # more pandoc options

Example: Convert norg file to markdown file

This is CI code used in this repo to convert Norg README file to Github-Flavored-Markdown

pandoc --from=init.lua --to=gfm README.norg --output=README.md

why?

There is already a haskell parser that tried to implement a native pandoc reader, but the project is stalled. Haskell is good language to make custom parser, but there aren't many people who can use it.

Many of Neorg's features are already written in Lua, and pandoc has built-in support for Lua custom parsers. This project is started to provide full pandoc support as soon as possible.

Parser Implementation State

Currently most parts of Layer1~4 are done. The left parts are: