Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Render non-inline svg files #390

Closed
OdinOxin opened this issue May 5, 2024 · 2 comments
Closed

Render non-inline svg files #390

OdinOxin opened this issue May 5, 2024 · 2 comments
Labels
invalid This doesn't seem right

Comments

@OdinOxin
Copy link

OdinOxin commented May 5, 2024

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
Copy link
Member

yhatt commented May 5, 2024

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 yhatt added the invalid This doesn't seem right label May 5, 2024
@yhatt
Copy link
Member

yhatt commented May 17, 2024

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.

@yhatt yhatt closed this as completed May 17, 2024
@yhatt yhatt closed this as not planned Won't fix, can't repro, duplicate, stale May 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
invalid This doesn't seem right
Projects
None yet
Development

No branches or pull requests

2 participants