Skip to content

Commit 336f374

Browse files
committed
feat
1 parent 63e89ac commit 336f374

File tree

3 files changed

+4
-35
lines changed

3 files changed

+4
-35
lines changed

components/MermaidWrapper.jsx

Lines changed: 0 additions & 18 deletions
This file was deleted.

data/blog/visualizing-long-term-heart-rate-and-electrocardiogram-data-with-matplotlib.mdx renamed to data/blog/visualizing-long-term-heart-rate-and-electrocardiogram-data-with-matplotlib.asd

File renamed without changes.

next.config.js

Lines changed: 4 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,5 @@
11
const withBundleAnalyzer = require('@next/bundle-analyzer')({
22
enabled: process.env.ANALYZE === 'true',
3-
// options: {
4-
// remarkPlugins: [require('mdx-mermaid').default],
5-
// rehypePlugins: [],
6-
// },
7-
// scripts: [
8-
// 'https://cdn.jsdelivr.net/npm/mermaid/dist/mermaid.min.js',
9-
// 'static/init.js',
10-
// ],
11-
// markdownPlugins: [ (md) => {
12-
// md.renderer.rules.fence_custom.mermaid = (tokens, idx, options, env, instance) => {
13-
// return `<div class="mermaid">${tokens[idx].content}</div>`;
14-
// };
15-
// }],
163
});
174

185
// You might need to insert additional domains in script-src if you are using external services
@@ -116,10 +103,10 @@ module.exports = withBundleAnalyzer({
116103
'react-dom': 'preact/compat',
117104
});
118105

119-
// config.entry = {
120-
// myCustomScript1: 'https://cdn.jsdelivr.net/npm/mermaid/dist/mermaid.min.js',
121-
// myCustomScript2: './static/init.js',
122-
// };
106+
config.entry = {
107+
myCustomScript1: 'https://cdn.jsdelivr.net/npm/mermaid/dist/mermaid.min.js',
108+
myCustomScript2: './static/init.js',
109+
};
123110

124111
}
125112

0 commit comments

Comments
 (0)