Thanks Matthew.
@Mark Szepieniec mentioned using a filter as a work-arround. I have just read up on them in the documentation but it seems a little out of my skill-set! I guess i'll just have to see the outcome of the issue you have raised.
thanks again.
Matt
On Thursday, January 15, 2015 at 12:46:00 PM UTC, Matthew Pickering wrote:
I opened an issue here. https://github.com/jgm/pandoc/issues/1881
On Thu, Jan 15, 2015 at 10:47 AM, Matt Dawson <matt.d...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
> I have just ran a test using markdown as the input that includes a table
> with alignment:
>
> # Tables
> ## multi-line table example
>
> -------------------------------------------------------------
> Centered Default Right Left
> Header Aligned Aligned Aligned
> ----------- ------- --------------- -------------------------
> First row 12.0 Example of a row that
> spans multiple lines.
>
> Second row 5.0 Here's another one. Note
> the blank line between
> rows.
> -------------------------------------------------------------
>
>
> Pandoc successfully writes a docx output file that contains the table
> alignment. So this confirms your suspicions Mark that the issue lies with
> the html reader.
>
> Can i report this as a bug? How am i best to do about that?
>
> Matt
>
>
>
> On Wednesday, January 14, 2015 at 2:29:04 PM UTC, Matt Dawson wrote:
>>
>> Thanks for your input Mark.
>>
>> I have read up on the table alignment for markdown. This reminded me that
>> i wasn't including a <thead> in my html table in the input file. I have
>> added that and set the alignment for each column on the <th> but the
>> alignment still isn't brought through to the output docx :-(. The full
>> extent of my workflow involves:
>>
>> an editing team writing articles in Wordpress which i then export to a
>> single xml.
>> Run a python script on the xml to convert to multiple html files
>> Run pandoc on the html files to convert to docx and multiple other
>> formats.
>>
>> I can't ask the writing team to write in markdown and many of the articles
>> include tables. I need to be able to allow the writers to set the table
>> alignment themselves using tools they are familiar with.
>>
>> The only thing i can think of at the moment is look for a script to
>> convert my wordpress xml to markdown, however the first one i tried didn't
>> support markdown tables.
>>
>> Matt
>
> --
> 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-discus...@googlegroups.com.
> To post to this group, send email to pandoc-...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/pandoc-discuss/d35eb586-e8ab-4a33-94d5-d9f68c1da8bc%40googlegroups.com.
>
> For more options, visit https://groups.google.com/d/optout.