Markdown (qiita flavor) export back-end for GNU Emacs Org-mode. This back-end is based on Markdown back-end (part of GNU Emacs24) and Github Flavored Markdown back-end.
- Emacs 24
- Org-mode 8.0
-
Copy ox-qmd.el to the directory which is listed in your
load-path
. -
Add the following code to your
.emacs
file.(require 'ox-qmd)
You can call export commands from export dispatcher ( C-c C-e
).
You can choose whether you remove newlines from paragraphs or not.
When ox-qmd-unfill-paragraph
is non- nil
(default),
ox-qmd.el remove newlines and replace line-break strings with newlines.
If you want to prevent it, set ox-qmd-unfill-paragraph
to nil
.
(setq ox-qmd-unfill-paragraph nil)
Some language keywords used in code block of Org-mode
are not recognized by Qiita.
For instance, keyword sh
is required for shell-script
syntax highlight (keyword shell-script
is not recognized).
In this case, you can set keyword association
by adding following code to your .emacs
file.
(add-to-list 'ox-qmd-language-keyword-alist '("shell-script" . "sh"))