【发布时间】:2020-05-19 05:30:35
【问题描述】:
我正在创建一个 gatsby 网站,其中包含从 markdown 生成的页面。目前,每个降价文件都在一个单独的目录中。该目录中还有一个.html 文件。有没有办法可以在markdown中使用该html文件,而不是作为代码sn-p,而是作为实际的html?
例如,如果我的降价文件是:
This is markdown
import:bar.html
而bar.html 是:
<div>This is html</div>
输出将是:
<p>This is markdown</p>
<div>This is html</div>
【问题讨论】:
标签: javascript reactjs gatsby