-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: pass imported images to node as src when relative
- Loading branch information
1 parent
8ef4c23
commit b63bbaa
Showing
8 changed files
with
75 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
<script context="module"> | ||
export { default as Heading } from './mock.svelte'; | ||
export { default as Image } from './mock.svelte'; | ||
</script> |
Binary file removed
BIN
-3.14 KB
packages/process/tests/processor/images - enhanced - automatic/image.jpeg
Binary file not shown.
Binary file removed
BIN
-3.14 KB
packages/process/tests/processor/images - enhanced - manually/image.jpeg
Binary file not shown.
1 change: 1 addition & 0 deletions
1
packages/process/tests/processor/images - enhanced - node/compiled.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<script>import * as INTERNAL__NODES from 'tests/nodes/module.svelte';import IMAGE__1 from './image.jpeg';import IMAGE__2 from '../images/image.jpeg';</script><article><p><INTERNAL__NODES.Image src={IMAGE__1} alt=""></INTERNAL__NODES.Image> <INTERNAL__NODES.Image src={IMAGE__2} alt=""></INTERNAL__NODES.Image> <INTERNAL__NODES.Image src="image.jpeg" alt=""></INTERNAL__NODES.Image> <INTERNAL__NODES.Image src="/image.jpeg" alt=""></INTERNAL__NODES.Image> <INTERNAL__NODES.Image src="https://github.com/logo.jpeg" alt=""></INTERNAL__NODES.Image></p></article> |
9 changes: 9 additions & 0 deletions
9
packages/process/tests/processor/images - enhanced - node/config.mjs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import { markdoc } from '../../../dist/module.js'; | ||
import { absoulute } from '../../utils.mjs'; | ||
|
||
export default markdoc({ | ||
nodes: absoulute(import.meta.url, '../../nodes/module.svelte'), | ||
enhancedImages: { | ||
mode: 'automatic', | ||
}, | ||
}); |
5 changes: 5 additions & 0 deletions
5
packages/process/tests/processor/images - enhanced - node/source.markdoc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
![](./image.jpeg) | ||
![](../images/image.jpeg) | ||
![](image.jpeg) | ||
![](/image.jpeg) | ||
![](https://github.com/logo.jpeg) |
Binary file not shown.