2 ms·
I daily-drive Emacs, and write my website/blog [1] in org-mode, but I use pandoc to compile org to HTML [2]... This choice was critical for me. I did not want m
by adityaathalye 2y ago
I daily-drive Emacs, and write my website/blog [1] in org-mode, but I use pandoc to compile org to HTML [2]... This choice was critical for me. I did not want my publishing workflow to depend on Emacs!
It's true that Emacs is the canonical Org-Mode compiler, but there are many other compilers, including Github pages. If it's typesetting you want, the support is widely available. If it is org-mode-powered workflows (like TODOs etc.), then support outside of Emacs is narrower, but still quite serviceable [3].
---
[1] built with OrgMode and pandoc: https://www.evalapply.org/ https://www.evalapply.org/
[2] pandoc as compiler FTW. https://github.com/adityaathalye/shite/blob/b4163b566f0708fd015a0a78b2bc69ca733210bb/bin/templating.sh#L112 https://github.com/adityaathalye/shite/blob/b4163b566f0708fd...
__shite_templating_compile_source_to_html() {
# If content has front matter metadata, it is presumed to be in a format
# that the content compiler can safely process and elide or ignore.
local file_type=${1:?"Fail. We expect file type of content like html, org, md etc."}
case ${file_type} in
html )
cat -
;;
md )
pandoc -f markdown -t html
;;
org )
pandoc -f org -t html
;;
esac
}
[3] Not just Emacs... https://www.evalapply.org/posts/why-and-how-i-use-org-mode/index.html#but-seriously-emacs-winkwink-amirite https://www.evalapply.org/posts/why-and-how-i-use-org-mode/i...