fix mermaid

This commit is contained in:
tangly1024
2023-06-24 14:30:27 +08:00
parent c54d248296
commit 587c51b59f
2 changed files with 3 additions and 3 deletions

View File

@@ -70,7 +70,7 @@ const renderMermaid = async() => {
} }
} }
}) })
observer.observe(document.querySelector('#container'), { attributes: true, subtree: true }) observer.observe(document.querySelector('#notion-article'), { attributes: true, subtree: true })
} }
function renderPrismMac() { function renderPrismMac() {

View File

@@ -19,13 +19,13 @@ export const LayoutSlug = props => {
{lock && <ArticleLock validPassword={validPassword} />} {lock && <ArticleLock validPassword={validPassword} />}
{!lock && <div id="notion-article" className="px-2"> {!lock && <div id="notion-article" className="px-2">
{post && <> <>
<ArticleInfo post={post} /> <ArticleInfo post={post} />
<NotionPage post={post} /> <NotionPage post={post} />
<ShareBar post={post} /> <ShareBar post={post} />
<Comment frontMatter={post}/> <Comment frontMatter={post}/>
<ArticleFooter /> <ArticleFooter />
</>} </>
</div>} </div>}
</LayoutBase> </LayoutBase>