Pandoc

Pandoc

A Haskell library to turn everything to everything

Install

  1. Download and install it.
  2. Terminal input pandoc --version to ensure install truely.

Usage

Usage In Terminal

Open terminal and use it

1
2
3
4
5
6
7
8
9
10
11
12
13
// Input pandoc and hit enter
pandoc
// Type follow word
Hello *pandoc*!

- one
- two
// Type `ctrl+d` to end type
<p>Hello <em>pandoc</em>!</p>
<ul>
<li>one</li>
<li>two</li>
</ul>

How to Turn Html to Markdown

1
pandoc -f html -t markdown

-f is mean from;
-t is

Usage in file

  1. Type a markdown file
  2. Open terminal and cd the file directory and type
    1
    pandoc test1.md -f markdown -t html -s -o test1.html
    test1.md is the origin file;
    -s is to create a ‘standalone’ file;
    -o test1.html is to put the output in the file test1.html

本文作者: 孟 虎
本文链接: https://menghu1994.github.io/blog/2023/10/Tools/Pandoc/
版权声明: 本博客所有文章除特别声明外,均采用 CC BY-SA 4.0 协议 ,转载请注明出处!