You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 12, 2026. It is now read-only.
Repository navigation
This repository was archived by the owner on May 12, 2026. It is now read-only.
Inconsistent editor color in definition list #2893
When I create an definition list that consists of a bullet list, the editor highlights in inconsistently. The first line is highlighted just like text, the next lines like a bullet list. This creates a bit of a chaotic page if you use these lists a lot.
This is what it looks like in the preview (this is fine, just so you know what I am talking about):
This is what it looks like in the editor (all items should be blue, however the first one of each definition is white):
Expected behavior
The first line of the bullet list in a definition should look like the other lines (in my case blue, not white). Like this (this is the coloring of a list):
Environment
Version: 0.11.13
There is a $22.00 open bounty on this issue. Add more on Issuehunt.
Does CodeMirror take care of the highlighting? Or is it done by our own repo?
I tracked down the highlighting up till here browser/components/CodeEditor.js
@ZeroX-DG seems like it cannot be done through that. The problem is upstream with CodeMirror. The highlighting doesn't work for indentation from them. We cannot solve it by overriding the css in our custom mode. A possible fix is we let cm-variable-2 color to be the normal black.
Activity
IssueHuntBot commentedon Feb 28, 2019
@BoostIO has funded $20.00 to this issue. See it on IssueHunt
ekoeditaa commentedon Mar 12, 2019
Can I take this up? Thanks!
ekoeditaa commentedon Mar 13, 2019
Does CodeMirror take care of the highlighting? Or is it done by our own repo?
I tracked down the highlighting up till here
browser/components/CodeEditor.jsZeroX-DG commentedon Mar 13, 2019
@ekoeditaa yes, CodeMirror take care of the highlighting so this probably an upstream issue. However, Boostnote also has a custom mode here https://github.com/BoostIO/Boostnote/tree/master/extra_scripts/codemirror/mode/bfm
ekoeditaa commentedon Mar 14, 2019
@ZeroX-DG Seems like the first bullet list is missing
cm-variable-2class. How can I add it dynamically? Can it be done from the bfm grunt task too?ZeroX-DG commentedon Mar 18, 2019
@ekoeditaa Yes, you should do it in the bfm grunt task because the style file will be overridden when the task is executed
ekoeditaa commentedon Mar 23, 2019
@ZeroX-DG seems like it cannot be done through that. The problem is upstream with CodeMirror. The highlighting doesn't work for indentation from them. We cannot solve it by overriding the css in our custom mode. A possible fix is we let
cm-variable-2color to be the normal black.IssueHuntBot commentedon May 14, 2019
@0maxxam0 has funded $2.00 to this issue.
shriram-svg commentedon May 11, 2026
Submitted a fix for this funded issue: #3788