On 28/07/2022 20:17, Ihor Radchenko wrote:
Therefore, I am proposing a different approach for shielding
fontification: introducing a special entity.
The new entity is \--, which is a valid boundary between emphasis
markup. It will be removed during export (replaced by "").
I like your idea more than my similar attempt:
Max Nikulin to emacs-orgmode. [PATCH] Intra-word markup: \relax. Fri, 28
Jan 2022 19:12:51 +0700.
https://list.orgmode.org/st0mk5$fnv$1...@ciao.gmane.io
The good point in your patch is that \- is still work as shy hyphen
(that, by the way, may be used in some cases instead of zero width
space: *intra*\-word). On the other hand I have managed to find a case
when your approach is not ideal:
*\--scratch\--*
<p>
<b>­-scratch</b></p>
"\--" are added with hope to suppress bold text and keep asterisks.
I expected possible problem at the border of "-" and "$", but
fortunately the following works well
/pre/\--$n$\--*th*