* MD to HTML V CommonPark rendering
@ 2021-11-26 15:57 boardtc
[not found] ` <e03b23a7-bab3-4593-a3d5-fe0b3382ebdan-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
0 siblings, 1 reply; 3+ messages in thread
From: boardtc @ 2021-11-26 15:57 UTC (permalink / raw)
To: pandoc-discuss
[-- Attachment #1.1: Type: text/plain, Size: 1569 bytes --]
I have a markdown document, temp.md, with a snippet in the form:
## a section
Lorem Ipsum is simply dummy text of the printing and typesetting industry.
- [Lorem Ipsum](https://www.lipsum.com/) - Lorem Ipsum has been the
industry's standard dummy text ever since the 1500s
- [NodeJS lipsum](https://github.com/traviskaufman/node-lipsum) - when an
unknown printer took a galley of type and scrambled it to make a type
specimen book.
When converted via
pandoc.exe" -s -f markdown-smart -Mtitle=temp --ascii temp.md -o temp.html
it wraps:
Lorem Ipsum is simply dummy text of the printing and typesetting industry.
- Lorem Ipsum <https://www.lipsum.com/> - Lorem Ipsum has been the
industry's standard dummy text ever since the 1500s - NodeJS lipsum
<https://github.com/traviskaufman/node-lipsum> - when an unknown printer
took a galley of type and scrambled it to make a type specimen book.
But when previewed in IntelliJ or Gerrit it renders fine, no wrapping.
IntelliJ uses CommonMark I believe and Gerrit
uses https://github.com/vsch/flexmark-java.
Is there a way to make pandoc render markdown the same as commonmark?
Thanks,
Tom.
--
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/e03b23a7-bab3-4593-a3d5-fe0b3382ebdan%40googlegroups.com.
[-- Attachment #1.2: Type: text/html, Size: 2139 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: MD to HTML V CommonPark rendering
[not found] ` <e03b23a7-bab3-4593-a3d5-fe0b3382ebdan-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
@ 2021-11-26 18:27 ` John MacFarlane
[not found] ` <m2czmmu60s.fsf-jF64zX8BO0+FqBokazbCQ6OPv3vYUT2dxr7GGTnW70NeoWH0uzbU5w@public.gmane.org>
0 siblings, 1 reply; 3+ messages in thread
From: John MacFarlane @ 2021-11-26 18:27 UTC (permalink / raw)
To: boardtc, pandoc-discuss
If you're targeting commonmark input, then use
pandoc -f commonmark
Pandoc's markdown parser has different behavior (following
that of the original Markdown.pl) and requires a blank line
before a list.
boardtc <boardtc-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> writes:
> I have a markdown document, temp.md, with a snippet in the form:
>
> ## a section
> Lorem Ipsum is simply dummy text of the printing and typesetting industry.
> - [Lorem Ipsum](https://www.lipsum.com/) - Lorem Ipsum has been the
> industry's standard dummy text ever since the 1500s
> - [NodeJS lipsum](https://github.com/traviskaufman/node-lipsum) - when an
> unknown printer took a galley of type and scrambled it to make a type
> specimen book.
>
> When converted via
> pandoc.exe" -s -f markdown-smart -Mtitle=temp --ascii temp.md -o temp.html
>
> it wraps:
>
> Lorem Ipsum is simply dummy text of the printing and typesetting industry.
> - Lorem Ipsum <https://www.lipsum.com/> - Lorem Ipsum has been the
> industry's standard dummy text ever since the 1500s - NodeJS lipsum
> <https://github.com/traviskaufman/node-lipsum> - when an unknown printer
> took a galley of type and scrambled it to make a type specimen book.
>
> But when previewed in IntelliJ or Gerrit it renders fine, no wrapping.
>
> IntelliJ uses CommonMark I believe and Gerrit
> uses https://github.com/vsch/flexmark-java.
>
> Is there a way to make pandoc render markdown the same as commonmark?
>
> Thanks,
>
> Tom.
>
>
>
> --
> 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/e03b23a7-bab3-4593-a3d5-fe0b3382ebdan%40googlegroups.com.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: MD to HTML V CommonPark rendering
[not found] ` <m2czmmu60s.fsf-jF64zX8BO0+FqBokazbCQ6OPv3vYUT2dxr7GGTnW70NeoWH0uzbU5w@public.gmane.org>
@ 2021-12-02 20:12 ` boardtc
0 siblings, 0 replies; 3+ messages in thread
From: boardtc @ 2021-12-02 20:12 UTC (permalink / raw)
To: pandoc-discuss
[-- Attachment #1.1: Type: text/plain, Size: 961 bytes --]
Hi John,
That works 100%! Thanks a million.
Tom.
On Friday, 26 November 2021 at 18:28:00 UTC John MacFarlane wrote:
>
> If you're targeting commonmark input, then use
>
> pandoc -f commonmark
>
> Pandoc's markdown parser has different behavior (following
> that of the original Markdown.pl) and requires a blank line
> before a list.
> ogle.com/d/msgid/pandoc-discuss/e03b23a7-bab3-4593-a3d5-fe0b3382ebdan%40googlegroups.com
> <https://groups.google.com/d/msgid/pandoc-discuss/e03b23a7-bab3-4593-a3d5-fe0b3382ebdan%40googlegroups.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/964f6a46-c68b-447e-af9f-8c958bb8a5f9n%40googlegroups.com.
[-- Attachment #1.2: Type: text/html, Size: 1824 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2021-12-02 20:12 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-26 15:57 MD to HTML V CommonPark rendering boardtc
[not found] ` <e03b23a7-bab3-4593-a3d5-fe0b3382ebdan-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2021-11-26 18:27 ` John MacFarlane
[not found] ` <m2czmmu60s.fsf-jF64zX8BO0+FqBokazbCQ6OPv3vYUT2dxr7GGTnW70NeoWH0uzbU5w@public.gmane.org>
2021-12-02 20:12 ` boardtc
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).