aboutsummaryrefslogtreecommitdiff
path: root/doc
AgeCommit message (Collapse)AuthorFilesLines
2017-12-26Tweaks to lua-filters.md docsJohn MacFarlane1-2/+3
2017-12-23Lua modules: add function pandoc.utils.hierarchicalizeAlbert Krewinkel1-0/+28
Convert list of Pandoc blocks into (hierarchical) list of Elements.
2017-12-23Lua modules: add function pandoc.utils.normalize_dateAlbert Krewinkel1-0/+11
The function parses a date and converts it (if possible) to "YYYY-MM-DD" format.
2017-12-23Lua modules: add function pandoc.utils.to_roman_numeralAlbert Krewinkel1-3/+18
The function allows conversion of numbers below 4000 into roman numerals.
2017-12-22doc/lua-filter.md: document pandoc.utils.stringifyAlbert Krewinkel1-10/+27
Change: minor
2017-12-21Lua modules: added pandoc.utils moduleAlbert Krewinkel1-14/+21
A new module `pandoc.utils` has been created. It holds utility functions like `sha1`, which was moved from the main `pandoc` module.
2017-12-14filters.md: say that Text.Pandoc.JSON comes form pandoc-types.John MacFarlane1-3/+3
Closes jgm/pandoc-website#16.
2017-12-13Delete removed -S option from command in epub.md (#4151)Georger Araújo1-1/+1
Because `--smart/-S` has been removed. Maybe ` -f markdown+smart` shoud also be added?
2017-12-06Lua filters: use script to initialize the interpreterAlbert Krewinkel1-1/+29
The file `init.lua` is used to initialize the Lua interpreter which is used in Lua filters. This gives users the option to require libraries which they want to use in all of their filters, and to extend default modules.
2017-12-01Lua/StackInstances: push Pandoc and Meta via constructorAlbert Krewinkel1-0/+11
Pandoc and Meta elements are now pushed by calling the respective constructor functions of the pandoc Lua module. This makes serialization consistent with the way blocks and inlines are pushed to lua and allows to use List methods with the `blocks` value.
2017-12-01lua-filters.md: add documentation for pandoc.ListAlbert Krewinkel1-0/+103
2017-11-21lua-filters.md - added tikz filter example.John MacFarlane1-0/+83
2017-11-21Added epub.md, getting-started.md to docs.John MacFarlane2-0/+470
These used to live in the website repo.
2017-11-20Update title and authors on lua-filters.md.John MacFarlane1-3/+4
2017-11-18Documented text module for lua-filters.John MacFarlane1-0/+37
See #4077.
2017-11-18Update man page lua filter to use text module.John MacFarlane1-1/+4
2017-11-12More efficient wordcount.lua example.John MacFarlane1-2/+1
2017-11-12lua-filters.md: add wordcount example.John MacFarlane1-0/+47
2017-11-12Improve handout example.John MacFarlane1-2/+5
2017-11-12Fixed typo in lua-filters exmaple.John MacFarlane1-1/+1
2017-11-12lua-filters.md doc: Added handout example.John MacFarlane1-0/+21
2017-11-12Fix a typo: "uisng" -> "using"Alexander Krotov1-1/+1
2017-11-11lua-filters.md: use real-world man page filter as example.John MacFarlane1-4/+17
2017-11-11Add lua filter functions to walk inline and block elements.John MacFarlane1-1/+48
Refactored some code from Text.Pandoc.Lua.PandocModule into new internal module Text.Pandoc.Lua.Filter. Add `walk_inline` and `walk_block` in pandoc lua module.
2017-10-26partially undo commit da1e626Kolen Cheung1-2/+2
2017-10-26doc/using-the-pandoc-api.md: proofread (minor)Kolen Cheung1-3/+3
2017-10-26doc/filters.md: add more links to pandoc filters in diff. lang.Kolen Cheung1-2/+4
2017-10-26Small fix to API guide.John MacFarlane1-2/+2
2017-10-26Finshed API guide. Closes #3289.John MacFarlane1-21/+40
2017-10-26More API documentation.John MacFarlane1-7/+60
2017-10-26More work on using-the-pandoc-api.md.John MacFarlane1-35/+98
2017-10-25More work on using-the-pandoc-api.md.John MacFarlane1-17/+51
2017-10-24Small improvements in using-the-pandoc-api.md.John MacFarlane1-3/+3
2017-10-24More progress on using-the-pandoc-api.md.John MacFarlane1-32/+238
2017-10-24Some work on using-the-pandoc-api.md.John MacFarlane1-13/+42
2017-10-05pandoc.lua: throw better error when pipe command failsAlbert Krewinkel1-0/+6
A table containing the error code, command, and command output is thrown instead of just a string error message.
2017-10-04lua-filters.md: fix link to module documentationAlbert Krewinkel1-1/+1
2017-10-03Added abc.lua example to lua-filters documentation.John MacFarlane1-14/+61
Also fixed docs for `pipe`.
2017-10-01Lua: added 'pipe', which encapsulates Text.Pandoc.Process.pipeProcess.John MacFarlane1-0/+14
This is hard to do in lua, so it's helpful to provide this.
2017-10-01Lua: move sha1 from pandoc.mediabag to pandoc.John MacFarlane1-12/+13
2017-09-30Lua: use sha1 instead of hashname.John MacFarlane1-5/+4
Better to leave control over the extension to the user.
2017-09-30Lua: make fetch return mime type first and then content.John MacFarlane1-0/+9
2017-09-30Lua: simply mediabag module.John MacFarlane1-4/+12
Now 'fetch' simply fetches content and mime type. A new 'hashname' function is provided to get a filename based on the sha1 hash of the contents and the mime type.
2017-09-30Lua: make lua.mediabag.fetch return filename and mime type.John MacFarlane1-1/+3
This is necessary because you may need to insert the filename into an image or link element.
2017-09-30Merge pull request #3945 from tarleb/lua-mediabagJohn MacFarlane1-0/+77
Lua mediabag module
2017-09-30Provide make target to update lua module docs (#3946)Albert Krewinkel1-45/+48
The pandoc module documentation in doc/lua-filters.md was automatically generated from `data/pandoc.lua`. A make target is provided which uses a lua filter to update the documentation.
2017-09-30doc/lua-filters.md: document mediabag submoduleAlbert Krewinkel1-0/+77
2017-09-26Lua filters: set global FORMAT instead of args.John MacFarlane1-0/+4
This changes the type of runLuaFilter.
2017-09-24Document possible return values of lua filter functionsAlbert Krewinkel1-5/+16
This is mostly copy'n'pasted from the pandocfilters documentation.
2017-09-16Adjusted headings in using-the-pandoc-api.md.John MacFarlane1-6/+35