1

这是我从 pandoc 获得的示例降价代码:

### Header

Paragraph

- Item
- Item

<table>
//COMPLEX TABLE WITH NESTED CELLS GOES HERE AS RAW HTML//
</table>

Paragraph

降价文件将与 Hugo 一起使用,所以我需要用{{< rawhtml >}}. 所以,我正在寻找的输出是:

### Header

Paragraph

- Item
- Item

{{< rawhtml >}}
<table>
//COMPLEX TABLE WITH NESTED CELLS GOES HERE AS RAW HTML//
</table>
{{< /rawhtml >}}

Paragraph

我可以使用正则表达式来做到这一点。但是有没有更简单/更优雅的方式?也许 pandoc 过滤器?

4

0 回答 0