Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jeongoon/fish-pandoc-any-to-markdown
fish shell script to convert from any document to markdown while reserve metadata
https://github.com/jeongoon/fish-pandoc-any-to-markdown
Last synced: 17 days ago
JSON representation
fish shell script to convert from any document to markdown while reserve metadata
- Host: GitHub
- URL: https://github.com/jeongoon/fish-pandoc-any-to-markdown
- Owner: jeongoon
- License: mit
- Created: 2022-04-18T14:06:27.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-06-21T12:41:28.000Z (over 2 years ago)
- Last Synced: 2024-11-05T11:16:19.628Z (2 months ago)
- Language: Shell
- Size: 5.86 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.org
- Changelog: Changelog.org
- License: LICENSE
Awesome Lists containing this project
README
* 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: [[https://pandoc.org/installing.html][Official Install guide]]
** Installation
#+begin_src sh
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
#+end_src** Usage
*Note:* If your file path must contain a extension. ex) /input.org/.
#+begin_src sh
./pandoc-any-to-markdown.fish input.org > output.markdown
# ^^ need to capture both stdout and stderr
#+end_src** More Reading
[[https://jeongoon.github.io/posts/2022-04-18-org-to-markdown.html][Org-mode to Markdown Made Easy]]