File tree Expand file tree Collapse file tree 3 files changed +8
-2
lines changed Expand file tree Collapse file tree 3 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ const parseMarkdown = (raw: string) => {
20
20
. use ( remarkParse )
21
21
. use ( remarkGfm )
22
22
. use ( remarkMath )
23
- . use ( remarkRehype )
23
+ . use ( remarkRehype , { allowDangerousHtml : true } )
24
24
. use ( rehypePrism , {
25
25
ignoreMissing : true ,
26
26
} )
Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ export default (props: Props) => {
46
46
47
47
return (
48
48
< Markdown
49
- class = { `prose prose-neutral dark:prose-invert fg-base! max-w-3xl -my-4 ${ props . class ?? '' } ` }
49
+ class = { `prose prose-neutral dark:prose-invert fg-base! max-w-3xl ${ props . class ?? '' } ` }
50
50
text = { localText ( ) }
51
51
showRawCode = { props . showRawCode }
52
52
/>
Original file line number Diff line number Diff line change @@ -17,6 +17,12 @@ export default defineConfig({
17
17
presetIcons ( ) ,
18
18
presetTypography ( {
19
19
cssExtend : {
20
+ '*:first-child' : {
21
+ 'margin-top' : 0 ,
22
+ } ,
23
+ '*:last-child' : {
24
+ 'margin-bottom' : 0 ,
25
+ } ,
20
26
'h1' : {
21
27
'font-size' : '1.25em' ,
22
28
'margin' : '1rem 0' ,
You can’t perform that action at this time.
0 commit comments