It's a markdown scratchpad. Your local pandoc
installation gets exported over
the web so you can do useful (or in my case, stupid) things with it.
Warning.
If you do run this software, you are exposing your pandoc
installation to
whoever who can access your web server, making any local vulnerabilities remote!
Usage example:
curl --compressed https://scratch.b0ss.net/api.pl -H 'Content-Type: text/plain' --data-binary @file.md
api.pl
accepts the following parameters via query string,
numbersections
- number sections if specified
standalone
- generates a standalone HTML if specified, snippet otherwise.
webmath
- either
mathjax
(default) orwebtex
.
Basic markdown editor that uses API to auto-update, try it.
There's also a less functional no JS version which defaults to webtex
.
- The
.pl
files require Apache 2 withmod_perl
2.0, I think no extra modules are needed. - The rest are static files which you may serve any way you wish.
- The user that
httpd
runs as must have execute permissions on yourpandoc
binary.