marp-team/marpit

Render non-inline svg files

Closed this issue · 2 comments

Currently it is possible to render svg, when the svg-source is inside the markdown file. I would appreciate to include svgs just as any other image, like

![](./path/to/svgfile.svg)

Thanks

Marpit does not have a restriction you've described. If the path is correct, SVG images should be displayed in the HTML output results.

![](https://marp.app/assets/marp.svg)

![](./path/to/svgfile.svg)

It turns into following:

<p>
  <img src="https://marp.app/assets/marp.svg" />
</p>
<p>
  <img src="./path/to/svgfile.svg" />
</p>

We close this issue as an invalid, but feel free to reopen if you still have faced with this issue. I might be able to find solutions when provided more specific structure of your Markdown or image files.