File tree Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change 11
11
use League \CommonMark \Extension \CommonMark \Node \Inline \Link ;
12
12
use League \CommonMark \Extension \CommonMark \Node \Block \Heading ;
13
13
use League \CommonMark \Extension \CommonMark \Node \Inline \Strong ;
14
+ use League \CommonMark \Extension \CommonMark \Node \Block \ListItem ;
14
15
use League \CommonMark \Extension \CommonMark \Node \Block \BlockQuote ;
15
16
use League \CommonMark \Extension \CommonMark \CommonMarkCoreExtension ;
16
17
use League \CommonMark \Extension \DefaultAttributes \DefaultAttributesExtension ;
@@ -31,7 +32,7 @@ public static function convertToHtml(string $markdown): string
31
32
},
32
33
],
33
34
Table::class => [
34
- 'class ' => 'table ' ,
35
+ 'class ' => [ 'table ' , ' table-responsive ' ] ,
35
36
],
36
37
Paragraph::class => [
37
38
'class ' => ['' ],
@@ -49,6 +50,9 @@ public static function convertToHtml(string $markdown): string
49
50
Code::class => [
50
51
'class ' => 'block bg-gray-800 text-gray-300 rounded-lg p-4 shadow-lg text-sm font-mono overflow-x-auto ' ,
51
52
],
53
+ ListItem::class => [
54
+ 'class ' => 'list-disc list-inside ' ,
55
+ ],
52
56
],
53
57
];
54
58
// Configure the Environment with all the CommonMark parsers/renderers
Original file line number Diff line number Diff line change 1
1
<template >
2
2
3
- <Head title =" Posts" />
3
+ <Head title =" All Posts" />
4
4
<section class =" relative md:py-24 py-16" >
5
5
<div class =" container relative" >
6
6
<div class =" grid lg:grid-cols-3 md:grid-cols-2 grid-cols-1 gap-6" >
@@ -33,7 +33,8 @@ export default {
33
33
name: ' Posts' ,
34
34
components: {
35
35
BlogCard,
36
- Pagination
36
+ Pagination,
37
+ Head,
37
38
},
38
39
props: {
39
40
posts: {
You can’t perform that action at this time.
0 commit comments