Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 11 additions & 4 deletions pandoc
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# Convert HTML file to Markdown
pandoc -f html -t markdown -i <HTML input file> -o <markdown output file>
---
syntax: bash
tags: [converters, markdown]
---

# Convert Markdown file to HTML
pandoc -f markdown -t html -i <markdown input file> -o <HTML output file>
# Convert HTML file to Markdown:

pandoc --from=html --to=markdown --output=<path/to/markdown_output_file> <path/to/html_input_file>

# Convert Markdown file to HTML:

pandoc --from=markdown --to=html --output=<path/to/html_output_file> <path/to/markdown_input_file>