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.

2

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.

  • It seems that it improperly export other things, such as equations though. – Alfred M. Jun 18 '18 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 '18 at 16:33

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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