0

I noticed this strange behaviour when all the headlines are in the same level, say level 2, when the org file get exported to markdown, all the levels are bump to level 1.

Below is an example I run with Emacs -Q.

enter image description here

Is there a way to make org-mode respects the headline levels in exporting to markdown? in this example, they shuold be level 2 headlines, starts with two ##.

1 Answer 1

1

Try this:

#+BIND: org-md-toplevel-hlevel 2

** Heading

** Another

You will need to enable #+BIND keywords beforehand by customizing org-export-allow-bind-keywords to t.

1
  • great! this is exactly what I need. thank you very much! Mar 30 at 8:58

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.