From 6f67216a60fd3ca8f62f0b48704ee25d36124a6f Mon Sep 17 00:00:00 2001 From: Maxime Cannoodt Date: Thu, 23 Jun 2022 21:06:22 +0200 Subject: [PATCH] better rendering --- server/prisma/dev.db | Bin 114688 -> 126976 bytes .../lib/components/MarkdownRenderer.svelte | 6 +++++- webapp/src/lib/renderers/Heading.svelte | 11 ++++++----- webapp/src/routes/note/[id].svelte | 2 +- 4 files changed, 12 insertions(+), 7 deletions(-) diff --git a/server/prisma/dev.db b/server/prisma/dev.db index 2ed7c0624ef9952484ca321332b62ad51ef1970f..3497d5b06db7997c7defcdb80001aa6b0b6448f9 100644 GIT binary patch delta 9552 zcmZ{qxevr{de?V1tQKi^wNNLUP^E~Gd|wh$OM@2iUMb8OG}b~C%8po&D;KGpsM zAw)=Y6cHsQ4T_NXFKEEO2Bm;v8e22(==J-2pYQkc_&2}#*>C>G&;IQn{`Aj&^rIjB z$zT18KmYNc{mozee*CAu`qkgv7k>1|zx&1XM?d-1-~G*R|HDuI_8&g~?H512FaF^l z{q8?~l|T5yU;O>=e)b#mpZwx~{^IZd_MiW=fAfof_3J%UPOoKRPEwR<->Ffja)M=P`3samT41_GI;$YhMp>4Q|X)$c|!^mJop_yd(YG=Dc z%xN<^s+dr9b1-Qzs+AKH=%iEm1T&gv*>0Qhz(h$K#9tJ+VaRqcGBE4t32?4!yB|C< zHA?RzUhG=Qcb3-!tP|xdBO|I~1%YhrJH=t}^vS_xikEFlxd&^D=L^qM#85u7e1qQY z#(jhfgp*zPP|8LO8elQlBX--q_fGQ`FV60O-XRzx+ z;6hmb(@rJ@Bi>*oi*y1_#5d=!$?Q4*onwY{7-Jzmc;X|oHkQ^M)$GB-^HDL@N8#;- zhj=-e(EEsN??6#tK<&7YsYy*{7Q9Xkd3E2={COY#-VnY>m4asdyNCiE`U{@4!T3SJxfKo4goYTv zW-K(J%Fr&&%r1)RXp@_RL}g!Na#S4F$PBH7h7@-UO;T(SemX3^6kz1%Q_f}ZQ8_!5 zar7(ul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svelte +++ b/webapp/src/lib/renderers/Heading.svelte @@ -12,18 +12,19 @@ // $: id = options.headerIds ? options.headerPrefix + slug(text) : undefined; + {#if depth === 1} -

+

{:else if depth === 2} -

+

{:else if depth === 3} -

+

{:else if depth === 4}

{:else if depth === 5} -
+
{:else if depth === 6} -
+
{:else} {raw} {/if} diff --git a/webapp/src/routes/note/[id].svelte b/webapp/src/routes/note/[id].svelte index 912bf72..3dc1f93 100644 --- a/webapp/src/routes/note/[id].svelte +++ b/webapp/src/routes/note/[id].svelte @@ -40,7 +40,7 @@

- Shared 7 days ago + Shared ?? days ago