Human Readable Emacs Configuration using Org mode
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
#!/bin/bash
|
|
|
|
TEXT=`cat`
|
|
|
|
DIR=$(cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
|
|
PLAIN=$(echo "$TEXT" | pandoc -f markdown -t plain )
|
|
HTML=$(echo "$TEXT" | pandoc -f markdown -t html )
|
|
# CSS=$(cat $DIR/mime.css )
|
|
|
|
# <style>
|
|
# $CSS
|
|
# </style>
|
|
|
|
cat <<EOF
|
|
<#multipart type=alternative>
|
|
$PLAIN
|
|
<#part type=text/html>
|
|
<html>
|
|
<head>
|
|
<title></title>
|
|
</head>
|
|
<body>
|
|
$HTML
|
|
</body>
|
|
</html>
|
|
<#/multipart>
|
|
EOF
|