Skip to content

Commit f234087

Browse files
committed
[BUGFIX] use asset plugin to copy images
fixes #1088
1 parent 98b7d58 commit f234087

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
<img src="{{- node.url -}}" alt="{{- node.altText -}}"/>
1+
<img src="{%- if node.value is external_target -%} {{ node.value }} {%- else -%} {{ asset(node.value) }} {%- endif -%}" alt="{{- node.altText -}}"/>

tests/Integration/tests/markdown/image-md/expected/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<div class="section" id="markdown-image">
33
<h1>Markdown Image</h1>
44

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

77
</div>
88
<!-- content end -->

tests/Integration/tests/markdown/image-md/input/skip

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)