mirror of
https://github.com/ChenQihan666/MyBlog-Next.git
synced 2026-08-14 11:29:33 +08:00
feat: add Shiki transformers for better syntax highlighting (#534)
* refactor: organize prose related styles inside nested prose * feat: add Shiki transformers for better syntax highlighting * chore: update blog posts using Shiki transformers Closes #210
This commit is contained in:
@@ -103,7 +103,10 @@ const nextPost =
|
||||
<Datetime {pubDatetime} {modDatetime} {timezone} size="lg" class="my-2" />
|
||||
<EditPost class="max-sm:hidden" {hideEditPost} {post} />
|
||||
</div>
|
||||
<article id="article" class="mx-auto prose mt-8 max-w-app">
|
||||
<article
|
||||
id="article"
|
||||
class="mx-auto prose mt-8 max-w-app prose-pre:bg-(--shiki-light-bg) dark:prose-pre:bg-(--shiki-dark-bg)"
|
||||
>
|
||||
<Content />
|
||||
</article>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user