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.

27 lines
422 B

  1. #!/bin/bash
  2. TEXT=`cat`
  3. DIR=$(cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
  4. PLAIN=$(echo "$TEXT" | pandoc -f markdown -t plain )
  5. HTML=$(echo "$TEXT" | pandoc -f markdown -t html )
  6. # CSS=$(cat $DIR/mime.css )
  7. # <style>
  8. # $CSS
  9. # </style>
  10. cat <<EOF
  11. <#multipart type=alternative>
  12. $PLAIN
  13. <#part type=text/html>
  14. <html>
  15. <head>
  16. <title></title>
  17. </head>
  18. <body>
  19. $HTML
  20. </body>
  21. </html>
  22. <#/multipart>
  23. EOF