File tree 5 files changed +18
-4
lines changed
5 files changed +18
-4
lines changed Original file line number Diff line number Diff line change 9
9
10
10
<div class =" flex flex-col" >
11
11
<span class =" bg-blue-ic self-start px-4 py-3 font-bold" >Description</span >
12
- <div class = " max-w-[50rem] border border-white p-4 " >
13
- {{ data?.shortDescription }}
14
- </div >
12
+ <div
13
+ class = " mardown max-w-[50rem] border border-white p-4 "
14
+ v-html = " description " > </div >
15
15
</div >
16
16
</div >
17
17
</template >
18
18
19
19
<script setup lang="ts">
20
20
import type { Category } from ' #shared/types' ;
21
+ import { marked } from ' marked' ;
21
22
22
23
// Get the slug from URL and fetch the category details
23
24
const route = useRoute ();
@@ -38,6 +39,11 @@ if (error.value) {
38
39
});
39
40
}
40
41
42
+ const description = ref <string >(' ' );
43
+ onMounted (async () => {
44
+ description .value = await marked (data .value ?.shortDescription || ' ' );
45
+ });
46
+
41
47
// NOTE: the following is decrepecated as per Directors' decision.
42
48
// shortDescription is the only available description for now.
43
49
Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ useHead({
36
36
</script >
37
37
38
38
<template >
39
- <div class =" flex flex-col gap-5" >
39
+ <div class =" flex flex-col gap-5 pb-10 " >
40
40
<div v-if =" store.profile?.role !== 'hacker'" >
41
41
<DashboardButton v-model =" showAdminButtons" background =" bg-red-ic" >
42
42
Admin Panels
Original file line number Diff line number Diff line change 23
23
"hono" : " ^4.5.5" ,
24
24
"hono-passkit-webservice" : " ^1.0.2" ,
25
25
"lucia" : " ^3.2.0" ,
26
+ "marked" : " ^15.0.6" ,
26
27
"matter-js" : " ^0.20.0" ,
27
28
"nodemailer" : " ^6.10.0" ,
28
29
"nunjucks" : " ^3.2.4" ,
1340
1341
1341
1342
"mark.js" : [
" [email protected] " ,
" " , {},
" sha512-1I+1qpDt4idfgLQG+BNWmrqku+7/2bi5nLf4YwF8y8zXvmfiTBY3PV3ZibfrjBueCByROpuBjLLFCajqkgYoLQ==" ],
1342
1343
1344
+ "marked" : [
" [email protected] " ,
" " , {
"bin" : {
"marked" :
" bin/marked.js" } },
" sha512-Y07CUOE+HQXbVDCGl3LXggqJDbXDP2pArc2C1N1RRMN0ONiShoSsIInMd5Gsxupe7fKLpgimTV+HOJ9r7bA+pg==" ],
1345
+
1343
1346
"marky" : [
" [email protected] " ,
" " , {},
" sha512-q9JtQJKjpsVxCRVgQ+WapguSbKC3SQ5HEzFGPAJMStgh3QjCawp00UKv3MTTAArTmGmmPUvllHZoNbZ3gs0I+Q==" ],
1344
1347
1345
1348
"math-intrinsics" : [
" [email protected] " ,
" " , {},
" sha512-/IXtbwEk5HTPyEwyKX6hGkYXxM9nbj64B+ilVJnC/R6B0pH5G4V3b0pVbL7DBj4tkhBAppbQUlf6F6Xl9LHu1g==" ],
Original file line number Diff line number Diff line change 70
70
"hono" : " ^4.5.5" ,
71
71
"hono-passkit-webservice" : " ^1.0.2" ,
72
72
"lucia" : " ^3.2.0" ,
73
+ "marked" : " ^15.0.6" ,
73
74
"matter-js" : " ^0.20.0" ,
74
75
"nodemailer" : " ^6.10.0" ,
75
76
"nunjucks" : " ^3.2.4" ,
Original file line number Diff line number Diff line change 28
28
@apply -right-4;
29
29
}
30
30
}
31
+
32
+ .markdown ul {
33
+ @apply ml-4 list-disc;
34
+ }
You can’t perform that action at this time.
0 commit comments