On Monday, December 4, 2023 1:06:37 PM UTC you wrote: > chris <inkbottle...@gmail.com> writes: > > The code below is working fine as long as I stay in `org-mode`. But it > > shows its limitations when I do `M-x org-publish-all`, at which time, > > instead of having the text with style verbatim, I get the text within > > backticks. > > > > Is there any improvement you could think of that would fix that? > > You will need to patch the parser in org-element.el.
Yes, that seems a very good idea. I've never "patched" emacs before: in the hack I've been using so far I was doing some `(advice-add 'org-do-emphasis-faces :override #'org-do-emphasis- faces-fixed)` thing. In any case the problem (or part of it) lies in `org-element.el` because I've observed the backticks constructions were not recognised as an "element". But okay, patch emacs, no worries. Since I'm using NixOS, it will take a bit of time for me to figure out how to do it the NixOS way. > > We do not officially support extending markup syntax. So, even changing > org-element may still leave other bugs. Caveat emptor. The backticks for inline code or verbatim are very pleasing to the eye, and are used literally universally.