Skip to content

Commit

Permalink
Updates
Browse files Browse the repository at this point in the history
  • Loading branch information
fritx committed Oct 24, 2024
1 parent 30f5e6e commit 9e795ec
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 10 deletions.
9 changes: 2 additions & 7 deletions vendor/blog.js
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,8 @@
})
}

var isMermaidLoaded = false

function onMainRendered(isPopState) {
mainTitle = $('#main-page').find('h1, h2, h3, h4, h5, h6').first().text().trim()
var navTitle = autoTitleFavicon(mainTitle)
Expand Down Expand Up @@ -524,13 +526,6 @@
// -- Optional: history.pushState API (PJAX) for silent internal page navigation
preferPJAX()

// supports mermaid diagrams
mermaid.mermaidAPI.initialize({ startOnLoad: false })
// https://mermaid-js.github.io/mermaid/#/usage?id=calling-mermaidinit
mermaid.parseError = function (err, hash) {
console.error('mermaid.parseError', err, hash)
}

var renderer = new marked.Renderer()

// 实现trello的 超链接效果 自动识别github issues
Expand Down
3 changes: 0 additions & 3 deletions vendor/mermaid-9.1.6.min.js

This file was deleted.

3 changes: 3 additions & 0 deletions vendor/mermaid-9.1.7.min.js

Large diffs are not rendered by default.

0 comments on commit 9e795ec

Please sign in to comment.