all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Bug with exporting list with link item containing "::" to markdown
@ 2022-02-12 20:12 Cash Weaver
  2022-02-13  9:13 ` Jeremie Juste
  2022-02-23 16:59 ` Max Nikulin
  0 siblings, 2 replies; 4+ messages in thread
From: Cash Weaver @ 2022-02-12 20:12 UTC (permalink / raw)
  To: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 758 bytes --]

Hi all,

I noticed a bug which I thought was related to ox-hugo but the maintainer
recommended I mention it here instead as it's likely related to the
org-element library.

My report: https://github.com/kaushalmodi/ox-hugo/issues/562

As a quick summary: The following list item is improperly exported to org
mode (org-md-export-as-markdown). The first snippet is in org-mode and the
second is the exported markdown:

- [[id:c89158fd-05ac-4c66-8986-05753e15096c][ryans01 :: No Zero Days]]
- [[id:92cf48f0-63a6-4d1d-9275-c80f6743ccb9][Do Things that Compound]]

-   **[[<ryans01NoZeroDays2013.md>][ryans01:** No Zero Days]]
-   [Do Things that Compound](do_things_that_compound.md)

-- 
Five sentences <http://five.sentenc.es/>, where possible.

Cheers,
Cash

[-- Attachment #2: Type: text/html, Size: 1336 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Bug with exporting list with link item containing "::" to markdown
  2022-02-12 20:12 Bug with exporting list with link item containing "::" to markdown Cash Weaver
@ 2022-02-13  9:13 ` Jeremie Juste
  2022-02-13 14:09   ` Kaushal Modi
  2022-02-23 16:59 ` Max Nikulin
  1 sibling, 1 reply; 4+ messages in thread
From: Jeremie Juste @ 2022-02-13  9:13 UTC (permalink / raw)
  To: Cash Weaver; +Cc: emacs-orgmode

Hello Cash,

Many thanks for reporting but I cannot reproduce the error with my current
version of emacs and org-mode. Could you specify the version of org-mode
and emacs you are currently using?

* test
:PROPERTIES:
:ID:       cbce567a-861c-4d9b-8b2f-5933afadb864
:END:

[[id:cbce567a-861c-4d9b-8b2f-5933afadb864][ryans01 :: No Zero Days]]

is exported as

# Table of Contents

1.  [test](#org7d47e12)


<a id="org7d47e12"></a>

# test

[ryans01 :: No Zero Days](#org7d47e12)


Hope this helps,
Jeremie

Org mode version 9.5 (release_9.5-142-g0ef88e)
GNU Emacs 27.2 


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Bug with exporting list with link item containing "::" to markdown
  2022-02-13  9:13 ` Jeremie Juste
@ 2022-02-13 14:09   ` Kaushal Modi
  0 siblings, 0 replies; 4+ messages in thread
From: Kaushal Modi @ 2022-02-13 14:09 UTC (permalink / raw)
  To: Jeremie Juste; +Cc: Cash Weaver, emacs-org list

[-- Attachment #1: Type: text/plain, Size: 758 bytes --]

On Sun, Feb 13, 2022, 4:18 AM Jeremie Juste <jeremiejuste@gmail.com> wrote:

> Hello Cash,
>
> Many thanks for reporting but I cannot reproduce the error with my current
> version of emacs and org-mode. Could you specify the version of org-mode
> and emacs you are currently using?
>
> * test
> :PROPERTIES:
> :ID:       cbce567a-861c-4d9b-8b2f-5933afadb864
> :END:
>
> [[id:cbce567a-861c-4d9b-8b2f-5933afadb864][ryans01 :: No Zero Days]]
>

I haven't tried this yet (away from computer), but I think you would need a
hyphen before that line with :: to make it a list item. The :: in the link
description then probably gets perceived as the :: marker for descriptive
lists.

So try:

- [[id:cbce567a-861c-4d9b-8b2f-5933afadb864][ryans01 :: No Zero Days]]

>

[-- Attachment #2: Type: text/html, Size: 1381 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Bug with exporting list with link item containing "::" to markdown
  2022-02-12 20:12 Bug with exporting list with link item containing "::" to markdown Cash Weaver
  2022-02-13  9:13 ` Jeremie Juste
@ 2022-02-23 16:59 ` Max Nikulin
  1 sibling, 0 replies; 4+ messages in thread
From: Max Nikulin @ 2022-02-23 16:59 UTC (permalink / raw)
  To: Cash Weaver, emacs-orgmode

On 13/02/2022 03:12, Cash Weaver wrote:
> 
> As a quick summary: The following list item is improperly exported to 
> org mode (org-md-export-as-markdown). The first snippet is in org-mode 
> and the second is the exported markdown:
> 
> - [[id:c89158fd-05ac-4c66-8986-05753e15096c][ryans01 :: No Zero Days]]
> - [[id:92cf48f0-63a6-4d1d-9275-c80f6743ccb9][Do Things that Compound]]
> 
> -   **[[<ryans01NoZeroDays2013.md>][ryans01:** No Zero Days]]
> -   [Do Things that Compound](do_things_that_compound.md)

I am marking this issue as a bug for https://updates.orgmode.org/ but it 
may be just non-intuitive behavior of org-element parser. "::" inside an 
item forces the list to be considered as descriptive one. Element which 
parsing started earlier has higher priority. See the following recent 
thread for similar issues:

Juan Manuel Macías. Pandoc and nested emhases.
Fri, 18 Feb 2022 00:47:18 +0000.
https://list.orgmode.org/orgmode/87sfshgfvt.fsf@posteo.net/T/#u

You may add zero-width space between colons, see
info "(org) Escape Character" 
https://orgmode.org/manual/Escape-Character.html but it may require 
post-processing filter to remove zero-width spaces.

Another approach is to insert an export snippet:

- [[id:cbce567a-861c-4d9b-8b2f-5933afadb864][ryans01 :@@org:@@: No Zero 
Days]]



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2022-02-23 17:03 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-02-12 20:12 Bug with exporting list with link item containing "::" to markdown Cash Weaver
2022-02-13  9:13 ` Jeremie Juste
2022-02-13 14:09   ` Kaushal Modi
2022-02-23 16:59 ` Max Nikulin

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.