On 30/04/2022 16:37, Ihor Radchenko wrote:
"Dr. Arne Babenhauserheide" <arne_...@web.de> writes:

To reproduce:

- create an org-file with the following content:
/Foo [[https://taz.de/!5843294/][link with a bang]]/
- M-x org-html-export-to-html

Expected: The HTML-file contains an italic link named "link with a bang".

Actual: The HTML-file contains a broken link with only the domain:
<i>Foo [[<a href="https://taz.de";>https://taz.de</a></i>!5843294/][link with a 
bang]]/</p>

Confirmed.

Nicolas clearly expressed that it is a feature of the Org parser though.

Moreover, this is a duplicate of another item already tracked on updates.orgmode.org:

2021-09-03  5:17 Dr. Arne Babenhauserheide Bug: PDF Export of Link fails
https://list.orgmode.org/87pmtqp79s....@web.de/T/#u

The following markup should be used instead:

    /Foo/ [[https://taz.de/!5843294/][/link with a bang/]]

To force Org mode not treat internal /! as italics ending, you can
insert a zero-width space before "/": <zero width space>/!

Unfortunately It requires an additional export filter to remove zero width spaces.

On the other hand, the example link could be inserted using
org-insert-link.

If one does the following:
1. emacs -Q /tmp/test.org
2. Type "/Begin italic "
3. C-c C-l https://taz.de/!5843294/ <RET> <test> <RET>
4. The inserted text is not a link because the problematic /! is not
    fixed automatically.

I consider the above to be at least a bug in org-insert-link.

Timothy suggested to fix `org-insert-link' somehow in than thread.

P.S. Actually I like behavior of pandoc

   printf '%s' '/Foo [[https://taz.de/!5843294/][link with a bang]]/' |
       pandoc -f org -t html

<p><em>Foo <a href="https://taz.de/!5843294/";>link with a bang</a></em></p>

Juan Manuel MacĂ­as to emacs-orgmode. Pandoc and nested emhases. Fri, 18 Feb 2022 00:47:18 +0000. https://list.orgmode.org/87sfshgfvt....@posteo.net

Reply via email to