obsidian-codemirror-options
obsidian-codemirror-options copied to clipboard
code will not show highlighting in preview mode
version:0.9.0 If I enable "Use CodeMirror for syntax highlighting in preview mode", all the code highlighting will have no effect for java/JAVA/Java/bash(only shell is ok). I just want to show the line number. Is it a bug?
I believe this should be fixed in the new 0.9.1 release
I believe this should be fixed in the new 0.9.1 release
One more bug and a not fixed bug.
-
If I don't specify the language name, the preview code is too hard to watch(This happened in the previous and the latest version)
-
The bug is still be there.
(Switch theme function in the Style Settings won't work until the option is enabled,)
I believe this should be fixed in the new 0.9.1 release Maybe another bug? If I combine codemirror with admonition, the symbols are hard to see clearly in preview mode. And theme in preview mode is different from edit mode. No matter how I switch code theme, the color won't change in the preview mode when combine with admonition. Line number also disappeared!
I'll look into these but the nested code blocks inside of admonitions is going to be a bit tricky to sort out. You're seeing different highlighting because that's Prism.JS highlighting the code on the right side vs. CodeMirror. I'll see what I can do.