"Dr. Arne Babenhauserheide" <arne_...@web.de> writes: > When a link within italic text contains an exclamation mark, the link > text is not included in the link. Instead the [[ ]] are shown in the > export and only the raw link is turned into a link. > > to reproduce: > > - Create an org-mode file containing > /Test [[https://example.com/foo/!bar][Link]]/ > - Export to HTML (C-c C-e h H) > > Expected: a HTML buffer containing: > <p> > <i>Test <a href="https://example.com/foo/!bar">Link</a></i></p> > (the same as without italic markers, just wrapped in <i></i>) > > Actual: a HTML buffer containing: > <p> > <i>Test [[<a > href="https://example.com/foo">https://example.com/foo</a></i>!bar][Link]]/</p>
This is not exactly a bug - you are just running into an edge case in the syntax. In Org mode, the first matching markup "wins": <begin italics>/Test [[https://example.com/foo/</end italics> !bar][Link]]/ "fixing" this would require changes to syntax. If there is a bug, it is in the fontification, which inaccurately displays link where there is none. For fontification, see https://orgmode.org/list/87ee7c9quk.fsf@localhost For such edge cases in syntax, see https://orgmode.org/list/875xwqj4tl.fsf@localhost Canceled, as duplicate. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at <https://orgmode.org/>. Support Org development at <https://liberapay.com/org-mode>, or support my work at <https://liberapay.com/yantar92>