https://github.com/pandoc/pandoc-fountain
Custom pandoc reader for Fountain screenplay markup
https://github.com/pandoc/pandoc-fountain
Last synced: 8 months ago
JSON representation
Custom pandoc reader for Fountain screenplay markup
- Host: GitHub
- URL: https://github.com/pandoc/pandoc-fountain
- Owner: pandoc
- License: bsd-3-clause
- Created: 2021-11-27T19:35:13.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-08-23T18:41:40.000Z (11 months ago)
- Last Synced: 2024-08-23T20:28:59.932Z (11 months ago)
- Language: Lua
- Size: 44.9 KB
- Stars: 18
- Watchers: 2
- Forks: 4
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# pandoc-fountain
A [custom pandoc reader] for [Fountain] screenplay markup.
To convert from Fountain to HTML:
```
pandoc -f fountain.lua sample.fountain -s -t html5 \
--css fountain.css --template ./fountain.html5 -o sample.html
```To convert to EPUB:
```
pandoc -f fountain.lua sample.fountain -s -t epub3 \
--css fountain.css --template ./fountain.epub3 -o sample.epub
```To convert to Docx:
```
pandoc -f fountain.lua --reference-doc fountain-ref.docx \
sample.fountain -o sample.docx
```To convert to PDF (assuming you have [pagedjs-cli] installed):
```
pandoc -f fountain.lua sample.fountain -s -t html5 \
--css fountain.css --template ./fountain.html5 \
--pdf-engine=pagedjs-cli -o sample.pdf
```[Fountain]: https://fountain.io/
[custom pandoc reader]: https://pandoc.org/custom-readers.html
[pagedjs-cli]: https://www.npmjs.com/package/pagedjs-cli