Comments (2)
@coolboy0961 修好了,你这么写
// config mermaid init call
// http://knsv.github.io/mermaid/#configuration
//
// You can edit the 'MERMAID_CONFIG' variable below.
MERMAID_CONFIG = {
startOnLoad: false,
gantt: {
barHeight: 20,
//barHeight: 40,
fontSize: 15,
//fontSize: 50,
axisFormatter: [
// Within a day
["%I:%M %p", function(d) {
return d.getHours();
}],
// Monday a week
["%m/%d", function(d) {
return d.getDay() == 1;
}],
// Day within a week (not monday)
["%m/%d", function(d) {
return d.getDay() && d.getDate() != 1;
}],
// within a month
["%m/%d", function(d) {
return d.getDate() != 1;
}],
// Month
["%y-%m", function(d) {
return d.getMonth();
}]
]
}
}
我改了下逻辑,不再用 module.exports
了。
from vscode-markdown-preview-enhanced.
可以正常显示了!非常感谢!
from vscode-markdown-preview-enhanced.
Related Issues (20)
- [BUG] Backlinks aren't recognized in documents when they have a header
- [Feature Request] 如何保存完整的FAQ到本地?
- [BUG] incorrectly when import section of a markdown file mutiple times or nested
- [BUG] Preview功能出现严重BUG!
- [BUG] Error: Failed to launch the browser process! HOT 1
- [BUG] Preview breaks when switching editor vindow and going back to preview
- [BUG] The anchor tag includes unnecessary characters and attributes.
- [Feature Request] preview the (ka-)tex inside html blocks
- [Feature Request] editble live preview HOT 1
- 显示不了图片 HOT 1
- [BUG] Use a combination of tab indentation and three backticks to nest snippets. HOT 1
- [Feature Request] mermaid 和graphviz渲染图缩放 (Zoom support)
- [BUG]
- [Feature Request] 有机化学方程式不支持 HOT 2
- [BUG] center title HOT 2
- [BUG] 无法显示 jfif 图片
- [BUG] Presentation refreshes when running code chunk
- [BUG] 长代码显示不新起一页,现在的代码显示太别扭了 HOT 1
- [BUG] HOT 4
- [Feature Request] enhanced checkbox `- [ ]` to more, for examples, `- [/]` for 'In Progress', `- [-]` for 'Cancelled', `- [>]` for 'Rescheduled', `- [<]` for 'Scheduled'
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vscode-markdown-preview-enhanced.