Skip to content

Commit

Permalink
fix: article format
Browse files Browse the repository at this point in the history
  • Loading branch information
xnought committed Feb 8, 2024
1 parent 0c10651 commit ee68836
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions frontend/src/lib/ArticleEditor.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
} from "flowbite-svelte";
import Markdown from "./Markdown.svelte";
import References from "./References.svelte";
import EntryCard from "./EntryCard.svelte";
export let refs = "";
export let content = "";
</script>
Expand Down Expand Up @@ -43,15 +44,12 @@
</TabItem>
<TabItem title="preview">
{#if content.length > 0 || refs.length > 0}
<Card class="max-w-full">
<Heading tag="h4">Article</Heading>
<EntryCard title="Article">
<Markdown text={content} />
</Card>

<Card class="max-w-full mt-5">
<Heading tag="h4">References</Heading>
</EntryCard>
<EntryCard title="References">
<References bibtex={String.raw`${refs}`} />
</Card>
</EntryCard>
{:else}
No content to render/preview
{/if}
Expand Down

0 comments on commit ee68836

Please sign in to comment.