Skip to content

Commit

Permalink
Fix. 修复代码块中出现转义字符的错误
Browse files Browse the repository at this point in the history
  • Loading branch information
RavelloH committed Oct 28, 2024
1 parent 194733b commit be2fb8d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/manage/posts/draft/[slug]/page.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ export default async function DraftContent(params) {
</div>

<div id='articles-body'>
<MDXRemote source={post.content.replaceAll('{', '\\{')} components={{ a: Link }} />
<MDXRemote source={post.content} components={{ a: Link }} />
</div>
<div id='articles-footer'>
<hr />
Expand Down

0 comments on commit be2fb8d

Please sign in to comment.