emacs-orgmode
[Top][All Lists]
Advanced

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

Re: Syntax question: What is BORDER in 4.17. Text Markup?


From: Max Nikulin
Subject: Re: Syntax question: What is BORDER in 4.17. Text Markup?
Date: Wed, 7 Dec 2022 10:35:38 +0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.2

On 07/12/2022 01:28, Jens Lechtenboerger wrote:
Hi there,

the syntax for Text Markup such as *bold* at [1] specifies
PRE MARKER CONTENTS MARKER POST with
CONTENTS as BORDER BODY BORDER and
BORDER as “Any non-whitespace character.”

What is the role of BORDER here?  Does it really exist?

I think, the idea is to stress that

    / / or * word *

must not be considered as emphasis.

What is BORDER if CONTENTS should be a single character, e.g., in
the two strings “*x*” and “~*~”?  Are single characters forbidden?

The spec is not precise here. It is close to the code that actually allows single character contents, see `org-element--parse-generic-emphasis' and the docstring of `org-emphasis-regexp-components'.

Perhaps it should be stated as (in regexp notation)

BORDER (BODY? BORDER)?

or as alternatives

BORDER or BORDER BORDER or BORDER BODY BORDER.




reply via email to

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