Files
radicle-explorer/src/base/projects
Alexis Sellier 8e77f9f5ae Load images in markdown documents
This loads images asynchronously inside markdown documents.

Signed-off-by: Alexis Sellier <self@cloudhead.io>
2022-03-21 12:39:39 +01:00
..
2022-02-09 16:03:33 +01:00
2022-02-11 16:21:03 +01:00
2021-12-07 13:48:19 +01:00
2022-02-28 13:39:32 +01:00
2022-02-21 22:42:52 -03:00
2022-02-21 22:42:52 -03:00
2022-02-21 22:42:52 -03:00
2021-06-20 22:18:05 +02:00
2022-02-25 16:03:13 +01:00
2022-03-02 14:41:04 +01:00

<script lang="ts">
  import Markdown from '@app/Markdown.svelte';
  import type * as proj from '@app/project';

  export let content: string;
  export let getImage: (path: string) => Promise<proj.Blob>;
</script>

<style>
  article {
    padding: 2rem;
    background: var(--color-foreground-background-subtle);
    border-radius: 0.5rem;
  }
</style>

<article>
  <Markdown {content} {getImage} />
</article>