This is a web interface for Pandoc. For converting Markdown files to HTML, PDF, EPUB, and DOCX serverside.
Branch: master
Clone or download
Latest commit 0af778c Apr 28, 2017
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
assets
preview Preview now works. Fixed preview labels. Added stylesheets to stylesh… Jan 25, 2017
stylesheets
.gitignore initial commit, creates unique directory for uploaded files, performs… Dec 29, 2016
.htaccess now allows upload of .zip files smaller than 2Mb in size and allows d… Dec 30, 2016
README.md
beta.html
cleanup.sh added assests/ to list of files to be deleted Apr 28, 2017
convert.sh now creates stand-alone pages and requires custom head.html and tail.… Apr 4, 2017
custom.css
dependencies.sh changed name to reflect one-time use Apr 28, 2017
download.php Cleaned up code, added and fleshed out comments. Jan 1, 2017
errorHead.html Preview now works. Fixed preview labels. Added stylesheets to stylesh… Jan 25, 2017
errorTail.html Preview now works. Fixed preview labels. Added stylesheets to stylesh… Jan 25, 2017
head.html added option to create stand-alone webpages; up next: do this for all… Apr 3, 2017
index.html now creates stand-alone pages and requires custom head.html and tail.… Apr 4, 2017
license.md added year and name Mar 3, 2017
normalize.css
php.ini created php.ini Apr 28, 2017
print.css now converts .md -> .html -> .pdf through wkhtmltopdf, styling works Jan 7, 2017
reference.md upadted reference, testing image can caption CSS Feb 23, 2017
setup.sh added command to restart apache Apr 28, 2017
skeleton.css
tail.html added option to create stand-alone webpages; up next: do this for all… Apr 3, 2017
upload.php

README.md

Pandoc_Web_Interface

Assumptions

All scripts were created with the following assumptions in mind. Your mileage may vary.

  • Distributor ID: Ubuntu
  • Description: Ubuntu 16.04.1 LTS
  • Release: 16.04
  • Codename: xenial

Setup

This tool has several dependencies,

from within Pandoc-Web-Interface/ run,

bash dependencies.sh

to install them. This only needs to be done once.

Next run,

bash setup.sh

To move necessary files to where they need to be. This needs to be done each time a new version of the Pandoc-Web-Interface is downloaded.

If Pandoc-Web-Interface is being reinstalled, run the following before setup.sh

bash cleanup.sh

Use

Upload individual .md files or a .zip archive of multiple .md files and associated assets to be converted to a number of output formats serverside.

To apply a custom stylesheet include it in the .zip archive and select the "custom" radio button. Selecting radio buttons other than "custom" will override a user-supplied stylesheet.

Converted files are zipped and directly downloaded in browser

Operation

Conversiton to PDF is done using the tool WKHTMLTOPDF:

.md -> Pandoc -> .html (w/ CSS) -> WKHTMLTOPDF -> .pdf

License

This repository is licensed under the MIT License.