public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
From: SB Chapman <sarahjbc123-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
To: pandoc-discuss <pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
Subject: pandoc convert from HTML to markdown with pipe-tables
Date: Fri, 24 May 2019 13:45:14 -0700 (PDT)	[thread overview]
Message-ID: <4f31ceca-cfec-4af8-a7f1-a360d498fb24@googlegroups.com> (raw)


[-- Attachment #1.1: Type: text/plain, Size: 1820 bytes --]

I'm having trouble getting my HTML to convert to markdown with pipe-tables. 
I either output raw HTML for the table or a grid-table. I specifically 
don't want the "+" cell alignment character. I also tried converting to 
gfm, but, then, I lose some of the markdown info that I need in other 
places in my document. Any help would be greatly appreciated.


Input

<Sect> <H1 id="LinkTarget_4081">PLANNING AND BIDDING </H1>

<P>blahc blah blah.</P>

<P>blahc blah blah. </P>

<P>blahc blah blah. </P>

<P>blahc blah blah. </P>


<H5 id="LinkTarget_3932">Table 2-1 Index  Report: Appendices B and C </H5>

<Table>
<TR>
<TD>
<P>Section </P>
</TD>

<TD>
<P>Appendix B Table of Contents </P>
</TD>
</TR>

<TR>
<TD>
<P>I </P>
</TD>

<TD>
<P>Introduction </P>
</TD>
</TR>

</table>

Output(table only):

+-----------------------+-----------------------+-----------------------+
| Section               | Appendix B Table of   |                       |
|                       | Contents              |                       |
+-----------------------+-----------------------+-----------------------+

command used: pandoc -f HTML -t markdown -o output.md -s 

I've used -t markdown+pipe_tables-grid_tables and any variation of tables I 
can think of.   


-- 
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/4f31ceca-cfec-4af8-a7f1-a360d498fb24%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

[-- Attachment #1.2: Type: text/html, Size: 3183 bytes --]

             reply	other threads:[~2019-05-24 20:45 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-05-24 20:45 SB Chapman [this message]
     [not found] ` <4f31ceca-cfec-4af8-a7f1-a360d498fb24-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2019-05-25 14:06   ` mb21
     [not found]     ` <8873e8ed-2ef1-4c43-bde5-3daff55516e8-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2019-05-25 20:45       ` Kolen Cheung
2019-05-25 21:00   ` Kolen Cheung

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=4f31ceca-cfec-4af8-a7f1-a360d498fb24@googlegroups.com \
    --to=sarahjbc123-re5jqeeqqe8avxtiumwx3w@public.gmane.org \
    --cc=pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@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).