Yes I see that Text.Pandoc.Writers.Native is more than what I thought. Piping to a file looks better than the Windows terminal. Pretty-printing works better there. Additionally, Hans' suggestion above is fine for now. Regards, Laurent On Sunday, June 23, 2019 at 6:22:02 AM UTC-4, John MacFarlane wrote: > > > Actually Text.Pandoc.Writers.Native does do some > prettification; it doesn't just do "show." You can > see this if you print something with nested block > structure, like lists or blockquotes. > > If there are ways you think this should be improved, > feel free to make suggestions or do a PR. > > Laurent René de Cotret > > writes: > > > Hello, > > > > I often work on Pandoc filters, and I regularly look at Pandoc's native > > format. > > > > Here is an example of the output in my terminal: > >> pandoc -i myfile.md --to native > > [Para [Image ("fig:myfigure",[],[]) [Str "Figure",Space,Str > "1:",Space,Str > > "This",Space,Str "is",Space,Str "a",Space,Str "caption"] > > ("generated/other\\8842295943125512100.jpg","fig:")] > > ,Para [Str "As",Space,Str "you",Space,Str "can",Space,Str > "see",Space,Str > > "in",Space,Str "fig.\160\&1,",Space,Str "pandoc-crossref",Space,Str > > "is",Space,Str "compatible",Space,Str "with",Space,Str "the",Space,Str > > "ouput",Space,Str "of",Space,Str "pandoc-pyplot."]] > > > > It would be very useful to get a pretty-printing version of the above, > e.g.: > > > > [ > > Para [ > > Image > > ("fig:myfigure",[],[]) > > [Str "Figure",Space,Str "1:",Space,Str "This",Space,Str > > "is",Space,Str "a",Space,Str "caption"] > > ("generated/other\\8842295943125512100.jpg","fig:") > > ], > > Para [ > > Str "As",Space,Str "you",Space,Str "can",Space,Str > "see",Space,Str > > "in",Space,Str "fig.\160\&1,",Space,Str "pandoc-crossref",Space, > > Str "is",Space,Str "compatible",Space,Str "with",Space,Str > > "the",Space,Str "ouput",Space,Str "of",Space, Str "pandoc-pyplot." > > ] > > ] > > > > After a cursory look at the source in Text.Pandoc.Writers.Native, it > would > > be possible to make a nice, indented, pretty version of native Haskell, > > given that WriterOptions type has the writerColumns attribute. > > > > Is this something that the Pandoc community might be interested in? > Should > > it be a different format than "native", called "pretty-native" or > something? > > > > I'm happy to put together a pull request. > > > > Laurent > > > > -- > > 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-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org . > > To post to this group, send email to pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org > . > > To view this discussion on the web visit > https://groups.google.com/d/msgid/pandoc-discuss/6c1c4146-20b8-437a-878a-24c4ac915946%40googlegroups.com. > > > For more options, visit https://groups.google.com/d/optout. > -- 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 post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/25fbb536-424e-4032-a786-743dd075e80f%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.