platform/libinjection/misc/mdgen.sh

9 lines
216 B
Bash
Raw Normal View History

2019-08-16 14:42:40 +00:00
#!/bin/bash
fname=$1
echo '{% extends "base.html" %}'
echo '{% block body %}'
#github-markup $fname
curl -H 'Content-Type: text/x-markdown' --data-binary @$fname https://api.github.com/markdown/raw
echo '{% end %}'