emacs-orgmode
[Top][All Lists]
Advanced

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

Re: Emphasis on a region


From: tomas
Subject: Re: Emphasis on a region
Date: Thu, 4 Jun 2020 10:35:28 +0200
User-agent: Mutt/1.5.21 (2010-09-15)

On Wed, Jun 03, 2020 at 12:32:25AM +0200, Berthold Lorke wrote:
> I am talking about this feature:
> https://orgmode.org/manual/Emphasis-and-Monospace.html
> 
> It currently doesn't seem to be possible to mark a whole region with,
> say, "+" to strike through a whole paragraph, especially when separating
> each sentence in a paragraph by a linebreak (i believe this is even
> encouraged, as seen here https://orgmode.org/manual/Paragraphs.html).
> 
> Is there a fix for this?  Enclosing each line with emphasis markers
> (like "+") doesn't fix it, as when exported every sentence in a
> paragraph would then have a space inbetween the strikethroughs.

Yes, see variable `org-emphasis-regexp-components': it is a list
describing how an emphasis span (bold, emphasised, strike-through
etc) is "built".

It's fifth component is the number of newlines allowed whithin such
a span. It's set, by default, to 1.

You can modify it like so

  (setf (nth 4 org-emphasis-regexp-components) 4)

to allow 4 newlines in your emphasis span. You have to reload
Org for it to take effect, so the best might be to have this
somewhere in your Emacs init just before loading Org?

Perhaps someone with a more elegant approach can chime in.

Cheers
-- t

Attachment: signature.asc
Description: Digital signature


reply via email to

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