【问题标题】:Pandoc markdown vertical lines in grid网格中的 Pandoc Markdown 垂直线
【发布时间】:2014-11-03 15:37:22
【问题描述】:

我使用 Pandoc (http://johnmacfarlane.net/pandoc/README.html) 及其 Markdown 处理器。当我使用 Pandoc 将下面的网格转换为 PDF(直接通过 LaTeX)时,PDF 中没有垂直线。如何获得?

+---------------+---------------+--------------------+
| Fruit         | Price         | Advantages         |
+===============+===============+====================+
| Bananas       | $1.34         | - built-in wrapper |
|               |               | - bright color     |
+---------------+---------------+--------------------+
| Oranges       | $2.10         | - cures scurvy     |
|               |               | - tasty            |
+---------------+---------------+--------------------+

【问题讨论】:

  • 我相信您可以更改 Pandoc 用于生成 PDF 的 LaTeX 模板...

标签: text markdown pandoc


【解决方案1】:

目前没有办法添加垂直线,除了后处理pandoc的latex输出,根据这个bughttps://github.com/jgm/pandoc/issues/922#issuecomment-38586467

【讨论】:

    【解决方案2】:

    我不知道有什么方法可以直接做到这一点。我知道的唯一解决方案是使用 pandoc 转换为 LaTeX,然后在 LaTeX 中编辑表格格式。

    【讨论】: