Skip to content

Commit

Permalink
feat: 支持 mermaid
Browse files Browse the repository at this point in the history
  • Loading branch information
brzhang666 committed Nov 3, 2023
1 parent 64f270d commit c462334
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
5 changes: 5 additions & 0 deletions public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -39,5 +39,10 @@
<!-- built files will be auto injected -->
</body>
<script src="https://cdn-doocs.oss-cn-shenzhen.aliyuncs.com/gh/wechatsync/article-syncjs@latest/dist/main.js"></script>
<!-- 支持一下 mermaid -->
<script type="module">
import mermaid from 'https://cdn.jsdelivr.net/npm/mermaid@10/dist/mermaid.esm.min.mjs';
mermaid.initialize({ startOnLoad: true });
</script>
</html>

2 changes: 1 addition & 1 deletion src/assets/example/theme-css.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
按Ctrl+F可格式化
按Ctrl/Command+F可格式化
*/
/* 一级标题样式 */
h1 {
Expand Down
3 changes: 2 additions & 1 deletion src/assets/scripts/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ export default {
value: `rgba(250, 81, 81, 1)`,
desc: `热情活泼`,
},
// { label: `微信绿`, value: `rgb(26, 173, 25,1)`, desc: `经典微信绿` },
],
codeThemeOption: [
{
Expand Down Expand Up @@ -86,4 +87,4 @@ export default {
rows: 1,
cols: 1,
},
}
};

Check failure on line 90 in src/assets/scripts/config.js

View workflow job for this annotation

GitHub Actions / build-preview

Delete `;`

Check failure on line 90 in src/assets/scripts/config.js

View workflow job for this annotation

GitHub Actions / build-preview

Extra semicolon

0 comments on commit c462334

Please sign in to comment.