Comments (4)
Whilst I think theme awareness would be a good feature, see also the dark theme : https://mermaid-js.github.io/mermaid/#/./theming?id=theme-variables-reference-table
from jupyterlab-markup.
I found a workable solution by altering the background color of a section.
I'll close the issue as this works for me.
from jupyterlab-markup.
I don't think the problem i solved. Please re-open it.
I tried by adding some CSS, I could manage to filter out a non light-theme by using CSS attribute selector, but think the .jp-RenderedMarkdown selector is too broad.
body[data-jp-theme-light="false"] .jp-RenderedMarkdown img{
background: red;
}
Can we possible append classes jupyterlab-markup and appropriate svgbob mermaid to rendered SVG's?
If we had those class names we could easy add a backgroundcolor or whatever in https://github.com/agoose77/jupyterlab-markup/blob/master/style/base.css
from jupyterlab-markup.
Just following this up with a TODO @agoose77 -
- We should add a dependency upon
IThemeManager
so that we can callmermaid.initialize
with a dark/light theme. - Add a configuration option for the dark and light themes
from jupyterlab-markup.
Related Issues (20)
- Binder url not working HOT 2
- Add support for plugin options HOT 1
- Sync scrolling in markdown preview? HOT 4
- Add `[[wiki]]` style link support HOT 1
- Synchronise checkboxes with source
- Separate existing plugins into sub-packages HOT 4
- How do you add plugins? HOT 5
- Feat: support settings reloading
- Support for PlantUML HOT 1
- Broken yaml code block syntax highlighting HOT 2
- Import error during development install HOT 1
- Accessing notebook cell metadata via a BUILTIN plugin HOT 7
- svgbob Code Fence Label inconsistent with sphinx-contrib/svgbob HOT 5
- Support new `IMarkdownParser` interface
- Update to markdown-it 13.x
- Add docs/demo with ReadTheDocs HOT 3
- Document-level rendering? HOT 2
- Explain why I would want this extension
- Support for pythonic preprocessing HOT 1
- Update mermaidjs to support Class diagram HOT 2
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 jupyterlab-markup.