Skip to content

qjqqyy/scratch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

scratch

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!

API

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) or webtex.

Markdown Scratchpad

Basic markdown editor that uses API to auto-update, try it. There's also a less functional no JS version which defaults to webtex.

Setup

  • The .pl files require Apache 2 with mod_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 your pandoc binary.

About

It's a hacked-together markdown scratchpad.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published