Pandoc

原文地址 github地址

安装

  1. 下载地址
    1. wget https://github.com/jgm/pandoc/releases/download/1.17.2/pandoc-1.17.2-1-amd64.deb
    2. sudo dpkg -i /path/to/deb/file
    3. sudo apt-get install -f
  2. 使用

    1. ctrl+alt+t打开终端输入pandoc -v验证安装
    2. pandocctrl+D退出,默认输入markdown,
      Hello *pandoc*!
      `-` one 
      `- two `
      输出为html4
      `

      Hello pandoc!

      `
      `
      • one
      • two
      `
    3. pandoc -f html -t markdown输入html
      `

      Hello pandoc!

      `
      ,ctrl+D退出时输出
      `Hello *pandoc*!`
  3. pandoc test1.md -f markdown -t html -s -o test1.html

    • -f 指定文件格式
    • -t 目标格式
    • -s, standalone,生成独立文件,带header, footer。
    • -o, 输出文件名

results matching ""

    No results matching ""