mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-06-08 07:26:47 +00:00
fix mermaid
This commit is contained in:
@@ -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() {
|
||||||
|
|||||||
@@ -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>
|
||||||
|
|||||||
Reference in New Issue
Block a user