emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Unwanted italics formatting between two URLs
@ 2021-11-29  7:03 Rafael Laboissière
  2021-12-02 16:16 ` Max Nikulin
  0 siblings, 1 reply; 2+ messages in thread
From: Rafael Laboissière @ 2021-11-29  7:03 UTC (permalink / raw)
  To: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 429 bytes --]

Hello,

In an org-mode buffer, I have the following:

    [[https://first/-/url/][pre]] text [[https://second-url/?][post]]

The “pre” and “text” words appear (wrongly) in italics, as you can see in 
the attached screenshot. This misbehavior is certainly related to the 
presence of the characters “-” and “?” in the URLs.

I am using Org mode version 9.5.1 (release_9.5.1-11-g96d91b)

Best,

Rafael Laboissière

[-- Attachment #2: unwanted-italics-url.png --]
[-- Type: image/png, Size: 12417 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Unwanted italics formatting between two URLs
  2021-11-29  7:03 Unwanted italics formatting between two URLs Rafael Laboissière
@ 2021-12-02 16:16 ` Max Nikulin
  0 siblings, 0 replies; 2+ messages in thread
From: Max Nikulin @ 2021-12-02 16:16 UTC (permalink / raw)
  To: Rafael Laboissière, emacs-orgmode

On 29/11/2021 14:03, Rafael Laboissière wrote:
> [[https://first/-/url/][pre]] text [[https://second-url/?][post]]

Fortunately this sample is parsed and exported correctly:

<p>
<a href="https://first/-/url/">pre</a> text <a 
href="https://second-url/?">post</a></p>

so it is only issue with regexp-based fontification. There was a recent 
thread if it could be fixed in a general way:

Ihor Radchenko. [DISCUSSION] Refactoring fontification system. Fri, 19 
Nov 2021 22:12:35 +0800. https://list.orgmode.org/87ee7c9quk.fsf@localhost/


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-12-02 16:17 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-11-29  7:03 Unwanted italics formatting between two URLs Rafael Laboissière
2021-12-02 16:16 ` Max Nikulin

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).