Comments (11)
I also found this comment from another, closed, issue. Maybe it's related.
The only thing that seems to be removed is the support of other theme choices (forest/dark), but with the new default theme, perhaps I don't need other themes anymore :)
from vscode-mermaid-editor.
Thank you for your report!
I couldn't reproduce it but could you try to check the place in which your config file is put once again? It must be the same directory as your mmd file when you describe ./config.json
from vscode-mermaid-editor.
As you can see from the screenshot, both files are on the same directory. But the preview still show the default
theme. FWIW I also have few other extension for markdown and a couple other for mermaid (Markdown Preview Mermaid Support and Mermaid Markdown Syntax Highlighting) but AFAIK those shouldn't interfere with this extension's preview.
from vscode-mermaid-editor.
Thank you for quick response. Um, does the situation continue even when you edit .mmd
file? I'm asking it because mermaid-editor only refresh the diagram when .mmd
file is updated.
Or did you find any other operation to get out from the symptom?
from vscode-mermaid-editor.
The one I showed in the screenshot is something that I freshly made to demonstrate the issue. So since I start writing the mermaid file, it never uses the dark
theme, ever. It's always use the default
theme, despite the fact that I already set the theme to dark
in the config.json
.
from vscode-mermaid-editor.
I seem to be having the same issue. It doesn't actually bother me because I used "default"
anyway, but let me know if there's anything you'd like me to help with or test to fix it
from vscode-mermaid-editor.
@tomoyukim I just found your VSC package and like it very much.
I'd like to add to the conversation that changing the background and the config-file just works via global settings. The "magic comments" instead have no effect at all.
from vscode-mermaid-editor.
@tomoyukim Update: All of a sudden even the global configuration has not effect anymore.
Here a png-file of a test that I created 4 days ago...with theme 'forest'.
from vscode-mermaid-editor.
Thank you for your patience and help. I found an error parsing attributes in the document with CRLF. It was fixed in v 0.11.0 and please check it out!
from vscode-mermaid-editor.
@tomoyukim Thank you. Works like a charm.
from vscode-mermaid-editor.
@tomoyukim I'm not sure this is fixed. My setup is something like this:
.
├── .vscode
│ └── settings.json
└── src
├── config.json
└── diagrams
diagrams
is a directory with .mmd
files, but its not really relevant here I think.
The settings.json
looks like this:
{
"mermaid-editor.preview.defaultMermaidConfig": "./src/config.json"
}
Even rendering a very trivial diagram such as
sequenceDiagram
A ->>+ B: Foo
B ->>- A: Bar
results in
config.json
is as follows:
{
"theme": "dark",
"deterministicIds": true
}
from vscode-mermaid-editor.
Related Issues (20)
- Mindmap graphs not working HOT 2
- Publish mermaid-editor on https://open-vsx.org/ HOT 2
- Sequence Diagram new syntaxes not working
- Are diagrams rendered fully offline without 3rd party services? HOT 1
- Allow user to provide `mermaidPath`? HOT 4
- Ghost padding on state diagram child states when zoomed in
- Copying image not working HOT 4
- The erDiagram gets to to wide and impossible to read HOT 1
- Markdown inside nodes is not rendered properly HOT 2
- Mindmap not working HOT 1
- autonumber in sequence diagram not working HOT 1
- Preview for class diagram with namespaces doesn't work HOT 4
- vs code, invalid syntax error on preview with plugin due to tildes HOT 1
- weekday not working in gantt chart
- preview won't work with exegesis HOT 1
- No support for auto-closing quote marks or toggling comments
- ZOOM_MAX_SCALE Limiting Readability of Large Diagrams HOT 1
- Local Image Inserts Don't Work HOT 1
- <br> renders as <br/> instead a newline in timeline diagram
- Support automatic theme switching
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-mermaid-editor.