+ {#if highlight.title} ++ {/each} +{@html sanitize(highlight.title.join("\n").trim())}
+ {/if} + + {#if highlight.description} + {#each highlight.description as segment} +{@html sanitize(segment)}
+ {/each} + {/if} + + {$_("document.noteLink")} + +
{#each segments as segment} -{/each} diff --git a/src/lib/components/documents/stories/NoteHighlights.stories.svelte b/src/lib/components/documents/stories/NoteHighlights.stories.svelte new file mode 100644 index 000000000..4526b46a4 --- /dev/null +++ b/src/lib/components/documents/stories/NoteHighlights.stories.svelte @@ -0,0 +1,24 @@ + + +{@html segment}
+{@html sanitize(segment)}
{/each}