tecosaur / emacs-everywhere

Mirror of https://git.tecosaur.net/tec/emacs-everywhere
GNU General Public License v3.0
557 stars 59 forks source link

Option to use backticks instead of spaces for markdown code blocks #96

Open djs42012 opened 4 months ago

djs42012 commented 4 months ago

Hey Tec,

Is there a way to set the package or pandoc itself to use backticks instead of spaces when exporting to markdown? I’m mainly thinking of Discord, which for some reason only accepts backticks for code blocks.

tecosaur commented 1 month ago

Heyo, sorry for the late response: I've got a constant backlog.

You should be able to accomplish this with a custom addition to emacs-everywhere-final-hooks. The particular formatting is just based on Org's markdown exporter, which isn't particularly flexible.