mirror of
https://github.com/gra0007/obsidian-css-inlay-colors.git
synced 2026-07-22 05:18:59 +00:00
Fix colors not showing in lists in editing/live preview
This commit is contained in:
parent
1bda7b41b6
commit
d7863691be
2 changed files with 6 additions and 1 deletions
5
.changes/fix-lists.md
Normal file
5
.changes/fix-lists.md
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
"obsidian-css-inlay-colors": patch:fix
|
||||
---
|
||||
|
||||
Fix inlay not showing for colors in an ordered/unordered list in live preview mode
|
||||
|
|
@ -65,7 +65,7 @@ function createColorWidgets(view: EditorView) {
|
|||
from,
|
||||
to,
|
||||
enter: (node) => {
|
||||
if (node.name === 'inline-code') {
|
||||
if (node.name.includes('inline-code')) {
|
||||
const color = view.state.sliceDoc(node.from, node.to)
|
||||
|
||||
// Not a valid color
|
||||
|
|
|
|||
Loading…
Reference in a new issue