* [BUG] incorrect HTML export with italic link containing an exclamation mark (!) [9.7.10 (N/A @ /gnu/store/icgsji9268qh5fxlrw0xh8775nbark3v-emacs-org-9.7.10/share/emacs/site-lisp/org-9.7.10/)]
@ 2024-09-02 5:00 Dr. Arne Babenhauserheide
2024-09-07 17:58 ` Ihor Radchenko
0 siblings, 1 reply; 2+ messages in thread
From: Dr. Arne Babenhauserheide @ 2024-09-02 5:00 UTC (permalink / raw)
To: emacs-orgmode
[-- Attachment #1: Type: text/plain, Size: 1326 bytes --]
Remember to cover the basics, that is, what you expected to happen and
what in fact did happen. You don't know how to make a good report? See
https://orgmode.org/manual/Feedback.html#Feedback
Your bug report will be posted to the Org mailing list.
------------------------------------------------------------------------
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>
Best wishes,
Arne
Emacs : GNU Emacs 30.0.60 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.41, cairo version 1.18.0)
Package: Org mode version 9.7.10 (N/A @ /gnu/store/icgsji9268qh5fxlrw0xh8775nbark3v-emacs-org-9.7.10/share/emacs/site-lisp/org-9.7.10/)
--
Unpolitisch sein
heißt politisch sein,
ohne es zu merken.
draketo.de
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 1125 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [BUG] incorrect HTML export with italic link containing an exclamation mark (!) [9.7.10 (N/A @ /gnu/store/icgsji9268qh5fxlrw0xh8775nbark3v-emacs-org-9.7.10/share/emacs/site-lisp/org-9.7.10/)]
2024-09-02 5:00 [BUG] incorrect HTML export with italic link containing an exclamation mark (!) [9.7.10 (N/A @ /gnu/store/icgsji9268qh5fxlrw0xh8775nbark3v-emacs-org-9.7.10/share/emacs/site-lisp/org-9.7.10/)] Dr. Arne Babenhauserheide
@ 2024-09-07 17:58 ` Ihor Radchenko
0 siblings, 0 replies; 2+ messages in thread
From: Ihor Radchenko @ 2024-09-07 17:58 UTC (permalink / raw)
To: Dr. Arne Babenhauserheide; +Cc: emacs-orgmode
"Dr. Arne Babenhauserheide" <arne_bab@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>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-09-07 17:58 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-09-02 5:00 [BUG] incorrect HTML export with italic link containing an exclamation mark (!) [9.7.10 (N/A @ /gnu/store/icgsji9268qh5fxlrw0xh8775nbark3v-emacs-org-9.7.10/share/emacs/site-lisp/org-9.7.10/)] Dr. Arne Babenhauserheide
2024-09-07 17:58 ` Ihor Radchenko
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.