You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Support relative paths
- Abstract different approaches
to resolve a given string
- Provide an option to not log resolve failures --
we don't want to pollute logs in editor+preview mode
when resolve works on each source file edit
- Make `ImageSourceResolver.resolve` return null
if a given string cannot be resolved
Making Coil try to render something by an obscure string
can lead to unexpected behavior (exceptions at least)
Copy file name to clipboardExpand all lines: platform/jewel/markdown/core/src/main/kotlin/org/jetbrains/jewel/markdown/rendering/ImageSourceResolver.kt
Copy file name to clipboardExpand all lines: platform/jewel/markdown/core/src/test/kotlin/org/jetbrains/jewel/markdown/rendering/DefaultImageSourceResolverTest.kt
+34-10Lines changed: 34 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -2,24 +2,27 @@
2
2
packageorg.jetbrains.jewel.markdown.rendering
3
3
4
4
importjunit.framework.TestCase
5
+
importjunit.framework.TestCase.assertNull
6
+
importorg.jetbrains.jewel.markdown.assertNotNull
5
7
importorg.junit.Test
6
8
7
9
publicclassDefaultImageSourceResolverTest {
8
10
@Test
9
-
publicfun`resolveImageSource returns raw destination for full URI`() {
11
+
publicfun`resolves full URI as raw destination`() {
10
12
val fullUri ="https://example.com/image.png"
11
13
12
-
val result =DefaultImageSourceResolver.resolve(fullUri)
14
+
val result =DefaultImageSourceResolver().resolve(fullUri)
0 commit comments