如何在 jekyll markdown 中嵌入 SVG 代码(Github)?

How to embed SVG code inside jekyll markdown (on Github)?

我天真地认为在我的 post.md 页面中添加带有内容的 <svg> 标签会很容易,就像这样:

---
published: true
title: Embeded SVG
---
## title

<svg width="400" height=300>
    <circle cx="150" cy="100" r="10" fill="blue"/>
</svg>

但我没有显示图像,而是显示了 SVG 代码(在 Firefox 中)。到目前为止还没有找到任何看起来很简单的东西的解决方案。是否可以在 jekyll / liquid markdown 中使用?

注意:我阅读了include an SVG (hosted on github) in MarkDown,但是:

您可以 disable kramdown 专门针对您的 svg :

{::nomarkdown}
<svg width="400" height=300>
    <circle cx="150" cy="100" r="10" fill="blue"/>
</svg>
{:/}