* Pandoc markdown table conversion not outputting great
@ 2020-03-21 16:33 boardtc
[not found] ` <c6500e0a-01e5-4e88-9df7-b0ee2de29247-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
0 siblings, 1 reply; 4+ messages in thread
From: boardtc @ 2020-03-21 16:33 UTC (permalink / raw)
To: pandoc-discuss
[-- Attachment #1.1: Type: text/plain, Size: 2055 bytes --]
I am attempting to follow the pandoc markdown table help
https://pandoc.org/MANUAL.html#pandocs-markdown but it's nto working out at
all.
Ideally I would like something like:
[image: desired.png]
but I get:
[image: result.png]
the text in my markdown includes. I know it things the first line is a
header, since the bold but the alignment is off and there are no
gridlines...
x 4 6 13 10 8 7 9 11 12
5
--- --- --- --- --- --- --- --- ---
--- ---
y -16 -14 3 -5 -8 -12 -7 -3 0
-14
which produces:
<table>
<thead>
<tr class="header">
<th style="text-align: left;">x</th>
<th style="text-align: left;">4</th>
<th style="text-align: left;">6</th>
<th style="text-align: left;">13</th>
<th style="text-align: left;">10</th>
<th style="text-align: left;">8</th>
<th style="text-align: left;">7</th>
<th style="text-align: left;">9</th>
<th style="text-align: left;">11</th>
<th style="text-align: left;">12</th>
<th style="text-align: left;">5</th>
</tr>
</thead>
<tbody>
<tr class="odd">
<td style="text-align: left;">y</td>
<td style="text-align: left;">-16</td>
<td style="text-align: left;">-14</td>
<td style="text-align: left;">3</td>
<td style="text-align: left;">-5</td>
<td style="text-align: left;">-8</td>
<td style="text-align: left;">-12</td>
<td style="text-align: left;">-7</td>
<td style="text-align: left;">-3</td>
<td style="text-align: left;">0</td>
<td style="text-align: left;">-14</td>
</tr>
</tbody>
</table>
Any thoughts how I can get something which looks half ok?
--
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/c6500e0a-01e5-4e88-9df7-b0ee2de29247%40googlegroups.com.
[-- Attachment #1.2: Type: text/html, Size: 3898 bytes --]
[-- Attachment #2: desired.png --]
[-- Type: image/png, Size: 4748 bytes --]
[-- Attachment #3: result.png --]
[-- Type: image/png, Size: 1622 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Pandoc markdown table conversion not outputting great
[not found] ` <c6500e0a-01e5-4e88-9df7-b0ee2de29247-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
@ 2020-03-21 17:09 ` EBkysko
[not found] ` <5db10487-245b-48f1-a153-09705abdb6d7-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
0 siblings, 1 reply; 4+ messages in thread
From: EBkysko @ 2020-03-21 17:09 UTC (permalink / raw)
To: pandoc-discuss
[-- Attachment #1.1: Type: text/plain, Size: 1414 bytes --]
From the user guide:
Column alignments are determined by the position of the header text
> relative to the dashed line below it
>
so play a bit with it.
for example:
---
title: table examples
header-includes: |
```{=html}
<style>table{border-collapse: collapse} table,th,td{border:1px solid
black} td,th{padding:5px}</style>
```
---
# example 1: centered
x 4 6 13 10 8 7 9 11 12 5
--- --- --- ---- ---- --- --- --- ---- ---- ---
y -16 -14 3 -5 -8 -12 -7 -3 0 -14
# example 2: right aligned
x 4 6 13 10 8 7 9 11 12 5
-- --- --- --- --- --- --- --- --- --- ---
y -16 -14 3 -5 -8 -12 -7 -3 0 -14
(i hope the copy&paste and code formatting in google groups didn't mangle
the code above, sorry if it did)
I only included the css style in the header above for convenience in this
example, compile with standalone if need be. You should put that in your
external css.
--
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/5db10487-245b-48f1-a153-09705abdb6d7%40googlegroups.com.
[-- Attachment #1.2: Type: text/html, Size: 12018 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Pandoc markdown table conversion not outputting great
[not found] ` <5db10487-245b-48f1-a153-09705abdb6d7-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
@ 2020-03-21 17:22 ` EBkysko
[not found] ` <a35d4d3f-996f-42aa-a6ec-73a2f83e9e55-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
0 siblings, 1 reply; 4+ messages in thread
From: EBkysko @ 2020-03-21 17:22 UTC (permalink / raw)
To: pandoc-discuss
[-- Attachment #1.1: Type: text/plain, Size: 615 bytes --]
(
as i feared, code didn't come out right, an extra line has been added
between dashed lines and following rows, disregard it.
... and can't even use a p.a st e bi. n... messages get deleted... fff...
)
--
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/a35d4d3f-996f-42aa-a6ec-73a2f83e9e55%40googlegroups.com.
[-- Attachment #1.2: Type: text/html, Size: 979 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Pandoc markdown table conversion not outputting great
[not found] ` <a35d4d3f-996f-42aa-a6ec-73a2f83e9e55-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
@ 2020-03-21 17:31 ` boardtc
0 siblings, 0 replies; 4+ messages in thread
From: boardtc @ 2020-03-21 17:31 UTC (permalink / raw)
To: pandoc-discuss
[-- Attachment #1.1: Type: text/plain, Size: 850 bytes --]
Thanks you so much for taking the time. I was asked for an attachment the
other day and posted a .md file and it was deleted twice, the rules here
frustrate me!
On Saturday, 21 March 2020 17:22:55 UTC, EBkysko wrote:
>
>
> (
> as i feared, code didn't come out right, an extra line has been added
> between dashed lines and following rows, disregard it.
> ... and can't even use a p.a st e bi. n... messages get deleted... fff...
> )
>
--
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/ea16c482-f198-474e-8191-7dec4c70c7aa%40googlegroups.com.
[-- Attachment #1.2: Type: text/html, Size: 1353 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2020-03-21 17:31 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-21 16:33 Pandoc markdown table conversion not outputting great boardtc
[not found] ` <c6500e0a-01e5-4e88-9df7-b0ee2de29247-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2020-03-21 17:09 ` EBkysko
[not found] ` <5db10487-245b-48f1-a153-09705abdb6d7-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2020-03-21 17:22 ` EBkysko
[not found] ` <a35d4d3f-996f-42aa-a6ec-73a2f83e9e55-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2020-03-21 17:31 ` 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).