public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
From: John MacFarlane <jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org>
To: sal <s.lorente-2HksPz9409E@public.gmane.org>,
	pandoc-discuss
	<pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
Subject: Re: MediaWiki to Markdown conversion
Date: Mon, 20 Apr 2020 22:43:26 -0700	[thread overview]
Message-ID: <m2a735o0ld.fsf@johnmacfarlane.net> (raw)
In-Reply-To: <6026cf94-1b7a-4e0a-9b0b-790891b6e759-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>


Take a look at the pandoc user's manual to see the different
table formats supported by pandoc's markdown.

Markdown pipe tables assume content that fits on one line in each
cell.  In your document the <br> is parsed as a LineBreak, which
makes the content unable to fit in a pipe table cell.  (A
Markdown line break  involves a newline.)

So your document can't be rendered as a pipe table.  It can
be rendered as a grid table, which is what you're getting.
If you're using pandoc to convert the result, this should be
fine.  If you want it to work e.g. on GitHub, that won't work;
you need either a pipe table (which won't work for your source)
or fall back to HTML (which is what pandoc will do if you disable
grid tables).


sal <s.lorente-2HksPz9409E@public.gmane.org> writes:

> Thank you John.
>
> I'm not sure I understand.
> Is it possible to get that table somehow converted in such a case?
> Is there anything I could do?
>
>
> On Monday, April 20, 2020 at 2:31:53 AM UTC+2, John MacFarlane wrote:
>>
>>
>> It's not split into many different tables. 
>> It's one table in pandoc's "grid table" format. 
>>
>> Why wasn't a "pipe table" used?  Because this table contains 
>> content that can't be represented in a pipe table:  possibly 
>> the raw HTML hard line breaks (<br>) in the cell with all the 
>> options. 
>>
>>
>> sal <s.lo...-2HksPz9409E@public.gmane.org <javascript:>> writes: 
>>
>> > Hi again, 
>> > 
>> > I'm having again problems with tables when migrating other documents 
>> from 
>> > MediaWiki to RemarkUp (or just trying to normal Markdown). 
>> > I have tried different combinations from 
>> > https://pandoc.org/MANUAL.html#tables without success, I don't get a 
>> (more 
>> > or less) correct table. 
>> > 
>> > Now, when using 
>> > pandoc source -f mediawiki -t 
>> markdown-simple_tables+pipe_tables-multiline_tables 
>> > -o outcome 
>> > the original table gets splitted into many different tables. 
>> > 
>> > Please find attached the source file used and the outcome file I get. 
>> > 
>> > Again, any suggestion on what to do is very welcome... 
>> > 
>> > Thank you! 
>> > 
>> > -- 
>> > 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 <javascript:>. 
>> > To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/pandoc-discuss/4dbf4d89-1367-44fd-8227-5a39cee018b9%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/6026cf94-1b7a-4e0a-9b0b-790891b6e759%40googlegroups.com.


      parent reply	other threads:[~2020-04-21  5:43 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-04-14 22:57 sal
     [not found] ` <79af9e1a-acb0-4bc0-85e6-5812d88238e1-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2020-04-15  0:03   ` Daniel Staal
     [not found]     ` <8499788f-514a-9723-148e-f079effe88db-Jdbf3xiKgS8@public.gmane.org>
2020-04-15 11:42       ` sal
     [not found]         ` <41ad78f7-a660-40ec-b49a-7061b2800b7f-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2020-04-15 15:32           ` Daniel Staal
     [not found]             ` <673beeae-bdca-10b0-9a4e-acbe9d082975-Jdbf3xiKgS8@public.gmane.org>
2020-04-15 20:19               ` sal
     [not found]                 ` <07c2c373-5f47-4283-b740-d15feabd8ba5-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2020-04-19 23:10                   ` sal
     [not found]                     ` <4dbf4d89-1367-44fd-8227-5a39cee018b9-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2020-04-20  0:31                       ` John MacFarlane
     [not found]                         ` <m2wo6bf15k.fsf-pgq/RBwaQ+zq8tPRBa0AtqxOck334EZe@public.gmane.org>
2020-04-20 23:41                           ` sal
     [not found]                             ` <6026cf94-1b7a-4e0a-9b0b-790891b6e759-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2020-04-21  5:43                               ` John MacFarlane [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m2a735o0ld.fsf@johnmacfarlane.net \
    --to=jgm-tvlzxgkolnx2fbvcvol8/a@public.gmane.org \
    --cc=pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org \
    --cc=s.lorente-2HksPz9409E@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).