From 5d28e009c91f5bccfbb03b913ca226955b028cee Mon Sep 17 00:00:00 2001 From: Maxime Cannoodt Date: Fri, 24 Jun 2022 21:23:56 +0200 Subject: [PATCH] callout --- server/prisma/dev.db | Bin 126976 -> 139264 bytes .../lib/marked/renderers/Blockquote.svelte | 8 +++- .../src/lib/marked/renderers/Callout.svelte | 37 ++++++++++++++++++ 3 files changed, 43 insertions(+), 2 deletions(-) create mode 100644 webapp/src/lib/marked/renderers/Callout.svelte diff --git a/server/prisma/dev.db b/server/prisma/dev.db index 547f79b25cc704ca29369e2d4a94dc49d04a852e..a8c27bf68a0707986a90484fa8c236eefd09c3d2 100644 GIT binary patch delta 7591 zcmZvh$q&S6de*y1Ix`|2HE;q&MAMz458gMS&dB>x-uLne@8!Mha(TPdj5tLa5NKEq zTv1Ro2+@iV7bM7yKOrZ?jei4ALI{VkN|vfVS@nHi)%!lb=lOp2zkc+y|Ni5D{`+5n zUwrY!cmLuiKm8K?;UE9I@yCDfn?Jce_~N@?e*OG|-}&Z0eezD4NV2)pzrEe?9to_c;Z@1oi7@ zhZbIwqn^I~Cx85l|MJJb_;Sns_U~O&`0^{@i?4tme*W!OpMT|i`=g(J^{2(pfA7~{ z{2L$s^5_5NxBue5`iS_-rJ#*qpg%J1-l&phcfiQ1Mvv5I!^fHu42NGQfWF2=y#jd3 zau|Oa?l$BAA+^b*ICW3PoIo`F$1=xdz7M<5#8@MC1CQf48?cs^KA}1 zvr^y#1jBM8UIQXYdeWG@5i-Qepv!4p{CSrLpflcj>|{znK{_mIFI=cM8pnpdNuZiT zC3tpaJ$*zn|66`JffJBsx=1 zWFHmk9z+1D0g)fn7Dx_hkX>)@bF%h~uG0yV3uh*e9`)WnO4dC&^fYDzKv1I?H>e&LQjc!m9~*+_ z+~l@*E`BNOZmOQLzRx9@h3EvVCTzW3!lOW*BnI?n=J}$Pjl7461}%uVO;0lK2U2$^ zG<`zvhx*x`*#u$-ZU$yLRwQ5MDa7>KaEK!{%cp5)z}*;EXfSY0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mZoTz|ru4eS$Qr4g&*&{6qzNMxBibOY%AR`L_ZE8004N6v%CC+`_c^UeO7j$$u^Q jCvUCyXO`vZoXp-}y;)GeooBLs4@dLFp6wHR81s_>-257h diff --git a/webapp/src/lib/marked/renderers/Blockquote.svelte b/webapp/src/lib/marked/renderers/Blockquote.svelte index 5b7dac1..6960026 100644 --- a/webapp/src/lib/marked/renderers/Blockquote.svelte +++ b/webapp/src/lib/marked/renderers/Blockquote.svelte @@ -1,11 +1,15 @@ {#if isCallout} -

IS CALLOUT!!

+ + + {:else}

diff --git a/webapp/src/lib/marked/renderers/Callout.svelte b/webapp/src/lib/marked/renderers/Callout.svelte new file mode 100644 index 0000000..c6cde67 --- /dev/null +++ b/webapp/src/lib/marked/renderers/Callout.svelte @@ -0,0 +1,37 @@ + + +

+
+ [{type}] + {title} +
+
+ +
+