* LaTeX to Markodown: nested lists converted to code blocks
@ 2022-10-25 7:15 Denis Bitouzé
[not found] ` <87zgdk5q6q.fsf-hcDgGtZH8xNBDgjK7y7TUQ@public.gmane.org>
0 siblings, 1 reply; 5+ messages in thread
From: Denis Bitouzé @ 2022-10-25 7:15 UTC (permalink / raw)
To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw
Hi,
consider the following `test.tex` `LaTeX` file, involving a nested list:
--8<---------------cut here---------------start------------->8---
\documentclass{article}
\begin{document}
\begin{itemize}
\item Foo
\begin{itemize}
\item Bar
\end{itemize}
\end{itemize}
\end{document}
--8<---------------cut here---------------end--------------->8---
When it is converted (with `pandoc` 2.19.2) to `Markdown`:
┌────
│ pandoc test.tex -o test.md
└────
the resulting `test.md` file is:
--8<---------------cut here---------------start------------->8---
- Foo
- Bar
--8<---------------cut here---------------end--------------->8---
From the `Markdown` point of view, the nested list is a code block, not
a nested list. Would it not be separated from its parent with a blank
line, the problem wouldn't arise.
Is it a bug? Is there a way to prevent these blank lines?
Thanks.
--
Denis
--
You received this message because you are subscribed to the Google Groups "pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/87zgdk5q6q.fsf%40example.com.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: LaTeX to Markodown: nested lists converted to code blocks
[not found] ` <87zgdk5q6q.fsf-hcDgGtZH8xNBDgjK7y7TUQ@public.gmane.org>
@ 2022-10-25 7:31 ` Bastien DUMONT
2022-10-25 7:39 ` [SOCIAL]Re: " Denis Bitouzé
0 siblings, 1 reply; 5+ messages in thread
From: Bastien DUMONT @ 2022-10-25 7:31 UTC (permalink / raw)
To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw
I don't know how other markdown processors would handle it, but if you parse the resulting output with pandoc, "Bar" will be recognized as the first item of a sublist. For it to be parsed as a code block, it should be indented eight spaces.
Le Tuesday 25 October 2022 à 09:15:57AM, Denis Bitouzé a écrit :
> Hi,
>
> consider the following `test.tex` `LaTeX` file, involving a nested list:
>
> --8<---------------cut here---------------start------------->8---
> \documentclass{article}
> \begin{document}
> \begin{itemize}
> \item Foo
> \begin{itemize}
> \item Bar
> \end{itemize}
> \end{itemize}
> \end{document}
> --8<---------------cut here---------------end--------------->8---
>
> When it is converted (with `pandoc` 2.19.2) to `Markdown`:
>
> ┌────
> │ pandoc test.tex -o test.md
> └────
>
> the resulting `test.md` file is:
>
> --8<---------------cut here---------------start------------->8---
> - Foo
>
> - Bar
> --8<---------------cut here---------------end--------------->8---
>
> >From the `Markdown` point of view, the nested list is a code block, not
> a nested list. Would it not be separated from its parent with a blank
> line, the problem wouldn't arise.
>
> Is it a bug? Is there a way to prevent these blank lines?
>
> Thanks.
> --
> Denis
>
> --
> You received this message because you are subscribed to the Google Groups "pandoc-discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
> To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/87zgdk5q6q.fsf%40example.com.
--
You received this message because you are subscribed to the Google Groups "pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/Y1eQ5cOKQHJfkD2j%40localhost.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [SOCIAL]Re: LaTeX to Markodown: nested lists converted to code blocks
2022-10-25 7:31 ` Bastien DUMONT
@ 2022-10-25 7:39 ` Denis Bitouzé
[not found] ` <87sfjc5p48.fsf-hcDgGtZH8xNBDgjK7y7TUQ@public.gmane.org>
0 siblings, 1 reply; 5+ messages in thread
From: Denis Bitouzé @ 2022-10-25 7:39 UTC (permalink / raw)
To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw
Le 25/10/22 à 07h31, Bastien DUMONT a écrit :
> I don't know how other markdown processors would handle it, but if you
> parse the resulting output with pandoc, "Bar" will be recognized as
> the first item of a sublist. For it to be parsed as a code block, it
> should be indented eight spaces.
Indeed. I tested on the “Markdown Test Bed”:
┌────
│ https://www.ctan.org/markdown
└────
which is wrong from this point of view.
Sorry for the noise.
--
Denis
--
You received this message because you are subscribed to the Google Groups "pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/87sfjc5p48.fsf%40example.com.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [SOCIAL]Re: LaTeX to Markodown: nested lists converted to code blocks
[not found] ` <87sfjc5p48.fsf-hcDgGtZH8xNBDgjK7y7TUQ@public.gmane.org>
@ 2022-10-25 8:05 ` Albert Krewinkel
[not found] ` <87ilk8l3v6.fsf-9EawChwDxG8hFhg+JK9F0w@public.gmane.org>
0 siblings, 1 reply; 5+ messages in thread
From: Albert Krewinkel @ 2022-10-25 8:05 UTC (permalink / raw)
To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw
You might like Babelmark, which is a great tool to compare the behavior
of different Markdown implementations.
https://babelmark.github.io
Denis Bitouzé <denis.bitouze-PToOLB6qFnLddoiwg0DPyg@public.gmane.org> writes:
> Le 25/10/22 à 07h31, Bastien DUMONT a écrit :
>
>> I don't know how other markdown processors would handle it, but if you
>> parse the resulting output with pandoc, "Bar" will be recognized as
>> the first item of a sublist. For it to be parsed as a code block, it
>> should be indented eight spaces.
>
> Indeed. I tested on the “Markdown Test Bed”:
>
> ┌────
> │ https://www.ctan.org/markdown
> └────
>
> which is wrong from this point of view.
>
> Sorry for the noise.
> --
> Denis
--
Albert Krewinkel
GPG: 8eed e3e2 e8c5 6f18 81fe e836 388d c0b2 1f63 1124
--
You received this message because you are subscribed to the Google Groups "pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/87ilk8l3v6.fsf%40zeitkraut.de.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [SOCIAL]Re: [SOCIAL]Re: LaTeX to Markodown: nested lists converted to code blocks
[not found] ` <87ilk8l3v6.fsf-9EawChwDxG8hFhg+JK9F0w@public.gmane.org>
@ 2022-10-25 8:31 ` Denis Bitouzé
0 siblings, 0 replies; 5+ messages in thread
From: Denis Bitouzé @ 2022-10-25 8:31 UTC (permalink / raw)
To: Albert Krewinkel; +Cc: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw
Le 25/10/22 à 10h05, Albert Krewinkel a écrit :
> You might like Babelmark, which is a great tool to compare the behavior
> of different Markdown implementations.
>
> https://babelmark.github.io
Very helpful, thanks!
--
Denis
--
You received this message because you are subscribed to the Google Groups "pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/87k04o5mpg.fsf%40example.com.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2022-10-25 8:31 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-10-25 7:15 LaTeX to Markodown: nested lists converted to code blocks Denis Bitouzé
[not found] ` <87zgdk5q6q.fsf-hcDgGtZH8xNBDgjK7y7TUQ@public.gmane.org>
2022-10-25 7:31 ` Bastien DUMONT
2022-10-25 7:39 ` [SOCIAL]Re: " Denis Bitouzé
[not found] ` <87sfjc5p48.fsf-hcDgGtZH8xNBDgjK7y7TUQ@public.gmane.org>
2022-10-25 8:05 ` Albert Krewinkel
[not found] ` <87ilk8l3v6.fsf-9EawChwDxG8hFhg+JK9F0w@public.gmane.org>
2022-10-25 8:31 ` [SOCIAL]Re: " Denis Bitouzé
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).