emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

To avoid zero width space: Re: Experimental public branch for inline spe


From: Max Nikulin
Subject: To avoid zero width space: Re: Experimental public branch for inline special blocks
Date: Wed, 6 Mar 2024 23:53:07 +0700
User-agent: Mozilla Thunderbird

On 02/03/2024 03:34, Juan Manuel Macías wrote:

Finally, I have made public on GitLab my experimental branch for the new
(possible) inline-special-block element:

<https://gitlab.com/maciaschain/org-mode.git>

The new feature is promising as an alternative for U+200B zero width space as an escape character (info "(org) Escape Character"). It may adjusted to allow really plain text markup instead of a character invisible by default:

(org-export-string-as "Example of &_{*intra*}&_{/word/} markup"
                      'html
                      '(:export-options (body-only)))
"<p>
Example of <span><b>intra</b></span><span><i>word</i></span> markup</p>
"

However to produce clean export result <span> elements should not be added if no attributes are specified. My expectation is

"<p>
Example of <b>intra</b><i>word</i> markup</p>
"

Earlier discussions:

- Denis Maier. Org-syntax: Intra-word markup. Thu, 2 Dec 2021 11:50:32 +0100. https://list.orgmode.org/4897bc60-b74f-ccfd-e13e-9b89a1194fdf@mailbox.org - Juan Manuel Macías. On zero width spaces and Org syntax. Fri, 03 Dec 2021 12:48:16 +0000. https://list.orgmode.org/87ilw5yhv3.fsf@posteo.net - Vincent Belaïche. RE: [RFC] Creole-style / Support for **emphasis**__within__**a word** Mon, 24 Jan 2022 10:50:10 +0000. https://list.orgmode.org/PAXPR06MB809350C21E7C75A2A110C529845E9@PAXPR06MB8093.eurprd06.prod.outlook.com





reply via email to

[Prev in Thread] Current Thread [Next in Thread]