Skip to content

Commit

Permalink
[BUGFIX] use asset plugin to copy images
Browse files Browse the repository at this point in the history
fixes #1088
  • Loading branch information
jaapio authored and linawolf committed Oct 2, 2024
1 parent 98b7d58 commit c138df6
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<img src="{{- node.url -}}" alt="{{- node.altText -}}"/>
<img src="{%- if node.value is external_target -%} {{ node.value }} {%- else -%} {{ asset(node.value) }} {%- endif -%}" alt="{{- node.altText -}}"/>
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<div class="section" id="markdown-image">
<h1>Markdown Image</h1>

<p><img src="hero-illustration.svg" alt="Hero Illustrations"/></p>
<p><img src="/hero-illustration.svg" alt="Hero Illustrations"/></p>

</div>
<!-- content end -->
1 change: 0 additions & 1 deletion tests/Integration/tests/markdown/image-md/input/skip

This file was deleted.

0 comments on commit c138df6

Please sign in to comment.