4

How to export org-mode text as Stack Exchange's formatted text?

For instance having /Xizzy/ being exported to _Xizzy_ (“Xizzy” between “_”), while exporting equation in latex syntax.

I would rather avoid using HTML.

1 Answer 1

3

The org markdown exporter translates /emphasized/ to *emphasized*, which is valid markup for Stackexchange.

However,the markdown exporter isn't enabled by default. To enable it, you need to add md to the variable org-export-backends. This needs to happen at the correct time in your startup, so it may be easiest to do this via the customize-variable interface. i.e., M-x customize-variable org-export-backends.

2
  • It seems that it improperly export other things, such as equations though.
    – M. Toya
    Jun 18, 2018 at 14:54
  • Equations aren't supported by markdown, and are inconsistently supported on the stack exchange network, so I'm not sure there is a single "correct" way to export them
    – Tyler
    Jun 18, 2018 at 16:33

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.