Skip to content

fish shell script to convert from any document to markdown while reserve metadata

License

Notifications You must be signed in to change notification settings

jeongoon/fish-pandoc-any-to-markdown

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Fish Pandoc Any To Markdown

A simple fish shell script to convert any documents – which is supported by pandoc – to markdown format. I’m using this with my hakyll blog post when I need to post in another system which only supports markdown.

Requirement

pandoc command line tool: Official Install guide

Installation

curl -sL https://raw.githubusercontent.com/jeongoon/fish-pandoc-any-to-markdown/main/pandoc-any-to-markdown.fish -o pandoc-any-to-markdown.fish
# move it to where your binary apps are located.
# normally it is ~/.local/bin on Linux.
chmod u+x pandoc-any-to-markdown.fish

Usage

Note: If your file path must contain a extension. ex) input.org.

./pandoc-any-to-markdown.fish input.org > output.markdown
#                                       ^^ need to capture both stdout and stderr

More Reading

Org-mode to Markdown Made Easy

About

fish shell script to convert from any document to markdown while reserve metadata

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages