marp-team / marpit

The skinny framework for creating slide deck from Markdown
https://marpit.marp.app/
MIT License
963 stars 46 forks source link

Render non-inline svg files #390

Closed OdinOxin closed 6 months ago

OdinOxin commented 6 months ago

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

yhatt commented 6 months ago

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>
yhatt commented 6 months ago

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.