Re: Bug with exporting list with link item containing "::" to markdown

2022-02-23 Thread Max Nikulin

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]]

-   **[[][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 +.
https://list.orgmode.org/orgmode/87sfshgfvt@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]]





Re: Bug with exporting list with link item containing "::" to markdown

2022-02-13 Thread Kaushal Modi
On Sun, Feb 13, 2022, 4:18 AM Jeremie Juste  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]]

>


Re: Bug with exporting list with link item containing "::" to markdown

2022-02-13 Thread Jeremie Juste
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)




# test

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


Hope this helps,
Jeremie

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



Bug with exporting list with link item containing "::" to markdown

2022-02-12 Thread Cash Weaver
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]]

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

-- 
Five sentences , where possible.

Cheers,
Cash