[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [BUG] Description list matches in verbatim/code block [9.6.23 ( @ /n
From: |
Ihor Radchenko |
Subject: |
Re: [BUG] Description list matches in verbatim/code block [9.6.23 ( @ /nix/store/ag7ag7i6zw56ql05bvk1xinz5gp8q5kd-emacs-packages-deps/share/emacs/site-lisp/elpa/org-9.6.23/)] |
Date: |
Wed, 22 May 2024 11:56:19 +0000 |
Peyton Okubo <okubo012@umn.edu> writes:
> I have the following org markup:
>
> - morphisms: =f :: a -> b maps to F f :: F a -> F b=
>
> "morphisms" is being emphasized the double colons in the verbatim block
> are being matched as description lists. This breaks the verbatim block
> on export. I am able to reproduce this with code blocks as well.
>
> Fairly new to org. But I couldn't find any sources stating that this is
> the intended behavior. I think a user should be able to use a double
> colon in a verbatim block (in a list item).
You are hitting an edge case in Org mode markup.
:: sequence in list items is unconditionally marking description lists.
Normally, we suggest to use zero-width space to resolve such edge
cases. However, you are using =verbatim= markup and zero-width space may
not be suitable.
What you can do instead is move the list item to the next line:
-
morphisms: =f :: a -> maps to F f :: F a -> F b=
--
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>