https://orgmode.org/features.html
https://github.com/doomemacs/doomemacs/blob/master/modules/lang/org/config.el
# enter a shel with pandoc available
nix shell nixpkgs#pandoc
# convert markdown into orgmode
pandoc --wrap=preserve --from markdown --to org README.md -o README.org
If you’re familiar with markdown, learn orgmode via pandoc convert is a good idea.
https://orgmode.org/manual/Special-Symbols.html
When migrating from Markdown to Org Mode, I have a big headache about how to escape some special symbols.
Here are three methods I found to make things easier:
- Use the following syntax for multiline code.(use
,
at the start of lines inside the code block for escaping)#+begin_example ,,#+begin_example \alpha xxx \alpha ,,#+end_example #+end_example
- for one line code, colon followed by a space is a shortcut for
#+begine_src ... #+end_src
.: echo hello
- Use
=this is good=
or~echo hello~
for inline code=
or~
can be used inside a inline code block too:=~this is good~=
will show~this is good~
.- NOTE: GitHub do not support
~~xxx~~
or==xxx==
, so if the content contains=
, use~
to quote it, and vice versa.
- Use LaTeX-like syntax to insert special symbols: A table of symbols for Org-mode
- For example, use
\alpha
to insert a α symbol. - NOTE: If you do not want to add a space after the LaTex syntax, you have to add a
{}
after it,e.g.\alpha{}xxx
will show αxxx
- For example, use
- Add
#+OPTIONS ^:nil
at the start of the org file, to disable - Insert a zero-width Unicode character to break the text’s structure, so that the content won’t be recognized as some orgmode syntax.
- NOTE: I really don’t like using non-ASCII characters for escaping, it’s too tricky! An invisible space character can be a real headache at some point.
Still don’t know how to make orgmode render the following correctly:
~'a~
⇒'a
='a=
⇒'a
- Show only one comma at the start of the following lines(code).
,,#+begin_example \quotesinglbase{}xxx