Skip to content

Commit 59ed1cb

Browse files
committed
up
1 parent 1006b1c commit 59ed1cb

File tree

6 files changed

+8
-102
lines changed

6 files changed

+8
-102
lines changed

package.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,12 @@
1616
"test:unit": "vitest"
1717
},
1818
"devDependencies": {
19-
"@magidoc/plugin-svelte-marked": "^4.1.2",
2019
"@playwright/test": "^1.40.1",
2120
"@sveltejs/adapter-auto": "^3.0.1",
2221
"@sveltejs/adapter-vercel": "^4.0.3",
2322
"@sveltejs/kit": "^2.0.6",
2423
"@sveltejs/vite-plugin-svelte": "^3.0.1",
2524
"@tailwindcss/typography": "^0.5.10",
26-
"@types/marked": "^6.0.0",
2725
"@typescript-eslint/eslint-plugin": "^6.16.0",
2826
"@typescript-eslint/parser": "^6.16.0",
2927
"autoprefixer": "^10.4.16",

pnpm-lock.yaml

Lines changed: 0 additions & 92 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/app.pcss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,6 @@
132132
@apply border-border;
133133
}
134134
body {
135-
@apply bg-background text-foreground;
135+
@apply bg-background text-foreground font-base;
136136
}
137137
}

src/lib/components/ui/article/article.svelte

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
1-
<article class={cn('prose lg:prose-lg xl:prose-xl 2xl:prose-2xl', c)}><Markdown {source} /></article>
1+
<article class={cn('prose lg:prose-lg xl:prose-xl 2xl:prose-2xl', c)}>{@html source}</article>
22

33
<script lang="ts">
44
import {cn} from '$lib/utils';
5-
import Markdown from '@magidoc/plugin-svelte-marked';
6-
5+
76
// PROPS ---------------------------------------------------------------------------------------------------------------------------------
87
export let source: string;
98

src/routes/originaux/+page.server.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ export const prerender = true;
33
import {cacheImage, findEntries, findEntry} from '$lib/server';
44
import {zImage} from '$lib/server/schemas';
55
import {zContentEntry} from '@niama/notion-tools';
6+
import {marked} from 'marked';
67
import {z} from 'zod';
78
import type {PageServerLoad} from './$types';
89

@@ -32,5 +33,5 @@ export const load: PageServerLoad = async () => {
3233
.filter(({data: {count}}) => count > 0)
3334
.map(({data: {image, title}, slug}) => ({href: `/originaux/${slug}`, image, title}));
3435

35-
return {body, items, title: data.title};
36+
return {body: await marked(body), items, title: data.title};
3637
};

src/routes/originaux/+page.svelte

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
<!-- <Section intent="primary" {title}>
1+
<Section intent="primary" {title}>
22
<Article source={body} />
3-
</Section> -->
3+
</Section>
44
<Section grid={items}>
55
{#each items as item, index}<Item {index} {...item} />{/each}
66
</Section>
77

88
<script lang="ts">
9-
// import {Article} from '$lib/components/ui/article';
9+
import {Article} from '$lib/components/ui/article';
1010
import {Item} from '$lib/components/ui/item';
1111
import {Section} from '$lib/components/ui/section';
1212

0 commit comments

Comments
 (0)