您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

123456789101112131415161718192021
  1. #!/bin/sh
  2. #
  3. # pbrisbin 2013 - view rendered markdown in a $BROWSER, using style
  4. # sheets from pbrisbin.com.
  5. #
  6. ###
  7. if [ $# -eq 0 ]; then
  8. printf "usage: opandoc FILE\n" >&2
  9. exit 64
  10. fi
  11. file="$(mktemp)"
  12. {
  13. printf '<html><body>'
  14. pandoc "$1"
  15. printf '</body></html>'
  16. } > "$file" && $BROWSER "file://$file"