summaryrefslogtreecommitdiff
path: root/pandoc.cabal
diff options
context:
space:
mode:
authorAlbert Krewinkel <albert@zeitkraut.de>2017-04-02 17:21:22 +0200
committerAlbert Krewinkel <albert@zeitkraut.de>2017-04-02 17:28:07 +0200
commite7eb21ecca46daaf240e33584c55b9d5101eebc7 (patch)
tree396e84c7cf687ff2f0ee4181bfdcd6378b0a0366 /pandoc.cabal
parent9e78a9d26b73fa603025789a942f70306aaaad22 (diff)
Lua module: add readers submodule
Plain text readers are exposed to lua scripts via the `pandoc.reader` submodule, which is further subdivided by format. Converting e.g. a markdown string into a pandoc document is possible from within lua: doc = pandoc.reader.markdown.read_doc("Hello, World!") A `read_block` convenience function is provided for all formats, although it will still parse the whole string but return only the first block as the result. Custom reader options are not supported yet, default options are used for all parsing operations.
Diffstat (limited to 'pandoc.cabal')
-rw-r--r--pandoc.cabal6
1 files changed, 4 insertions, 2 deletions
diff --git a/pandoc.cabal b/pandoc.cabal
index 16997486a..06754ae26 100644
--- a/pandoc.cabal
+++ b/pandoc.cabal
@@ -247,9 +247,10 @@ Extra-Source-Files:
test/odt/odt/*.odt
test/odt/markdown/*.md
test/odt/native/*.native
- test/lua/strmacro.lua
- test/lua/plain-to-para.lua
test/lua/hello-world-doc.lua
+ test/lua/markdown-reader.lua
+ test/lua/plain-to-para.lua
+ test/lua/strmacro.lua
Source-repository head
type: git
location: git://github.com/jgm/pandoc.git
@@ -458,6 +459,7 @@ Library
Text.Pandoc.Readers.Org.Shared,
Text.Pandoc.Lua.Compat,
Text.Pandoc.Lua.PandocModule,
+ Text.Pandoc.Lua.StackInstances,
Text.Pandoc.CSS,
Text.Pandoc.UUID,
Text.Pandoc.Slides,