Open muschellij2 opened 6 years ago
Are you sure it's a pander
issue? Eg pander
is generating some markdown failling pandoc
? Checking the below:
root@56d2b523ff38:/tmp$ /usr/bin/pandoc -v
pandoc 2.1.1
Compiled with pandoc-types 1.17.3, texmath 0.10.1, skylighting 0.6
Default user data directory: /root/.pandoc
Copyright (C) 2006-2018 John MacFarlane
Web: http://pandoc.org
This is free software; see the source for copying conditions.
There is no warranty, not even for merchantability or fitness
for a particular purpose.
root@56d2b523ff38:/tmp$ /usr/bin/pandoc -t html
---------------------
V1 V2 V3
----- ------- -------
hey DICOM NIfTI
---------------------
<table style="width:31%;">
<colgroup>
<col style="width: 8%" />
<col style="width: 11%" />
<col style="width: 11%" />
</colgroup>
<thead>
<tr class="header">
<th style="text-align: center;">V1</th>
<th style="text-align: center;">V2</th>
<th style="text-align: center;">V3</th>
</tr>
</thead>
<tbody>
<tr class="odd">
<td style="text-align: center;">hey</td>
<td style="text-align: center;">DICOM</td>
<td style="text-align: center;">NIfTI</td>
</tr>
</tbody>
</table>
It may not be a pander issue exactly, but using knitr::kable
doesn't
throw the error. Have you tried using rmarkdown::render
and not
pandoc
? It may be the combination of the render
and pander
that's
causing an issue.
John
On Tue, Mar 6, 2018 at 5:17 AM, Gergely Daróczi notifications@github.com wrote:
Are you sure it's a pander issue? Eg pander is generating some markdown failling pandoc? Checking the below:
root@56d2b523ff38:/tmp$ /usr/bin/pandoc -v pandoc 2.1.1 Compiled with pandoc-types 1.17.3, texmath 0.10.1, skylighting 0.6 Default user data directory: /root/.pandoc Copyright (C) 2006-2018 John MacFarlane Web: http://pandoc.org This is free software; see the source for copying conditions. There is no warranty, not even for merchantability or fitness for a particular purpose.
root@56d2b523ff38:/tmp$ /usr/bin/pandoc -t html
V1 V2 V3
hey DICOM NIfTI
V1 V2 V3 hey DICOM NIfTI — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/Rapporter/pander/issues/320#issuecomment-370733185, or mute the thread https://github.com/notifications/unsubscribe-auth/ABBnroyjFlAmxg1U4hl9Xg9ztPrIePeUks5tbmJIgaJpZM4Scm4f .
I have the same error trying to render the following markdown table:
"Code | Rendered math |
---|---|
$x$ |
$x$ |
$\theta$ |
$\theta$ |
$x_i^2$ |
$x_i^2$ |
$\frac{1}{n}\sum_{i=1}^n x_i$ |
$\frac{1}{n} \sum_{i=1}^n x_i$ |
$\frac{1}{n}\sum_{i=1}^n (x_i-\bar x)^2$ |
$\frac{1}{n} \sum_{i=1}^n \bar (x_i - x)^2$" |
It seems to have to do with the length of the last cell in the last line, as if I shorten it, I don't get the error.
Example Rmd where this occurs:
break_pandoc.zip
I have
pander * 0.6.1 2017-08-06 CRAN (R 3.4.1)
and I get the following error:Session Information