emacs-orgmode
[Top][All Lists]
Advanced

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

Re: Bug: PDF Export of Link fails [9.4.6 (9.4.6-gab9f2a @ /gnu/store/2pn


From: Ihor Radchenko
Subject: Re: Bug: PDF Export of Link fails [9.4.6 (9.4.6-gab9f2a @ /gnu/store/2pny4z6mbi2aybgzzxz0yrzkds7hbpmq-emacs-org-9.4.6/share/emacs/site-lisp/org-9.4.6/)]
Date: Fri, 03 Sep 2021 17:18:02 +0800

Timothy <tecosaur@gmail.com> writes:
> Causes issues. I also note that in the Org-mode buffer the comma seems to 
> cause
> issues. I’ve attached a screenshot, in which you can see in the “comma, 
> italics”
> situation:
> ⁃ The second line is not italic
> ⁃ The second `/' of the pair is shown (and I have Org’s entity hiding setting 
> enabled)

The problem is with org-emph-re.

Our second component of org-emphasis-regexp-components is

> Chars allowed as postmatch.  End of line will be allowed too.
"-[:space:].,:!?;'\")}\\["

So, org-element-italic-parser will treat /, sequence as end of the
italic text disregarding that /, is part of the link.

If you try the following text, it will not export correctly as well:

/Beginning is italic 1^{/,} and tail should be italic/

Though fontification somehow works.

Or we can put some other allowed object like inline src block:

/Beginning is italic src_elisp{(message "Foo/,")} and tail should be italic/

This time both export and fontification do not work.

I suspect that we need to upgrade org-element-italic-parser in
non-trivial way to fix this.

Best,
Ihor



reply via email to

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