Skip to content

Commit 5bbee2d

Browse files
committed
fix: added TODO comment
1 parent 1a0275b commit 5bbee2d

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/extensions/yfm/Color/index.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,10 @@ export const Color: ExtensionAuto = (builder) => {
3535
if (!hasMark) return true;
3636

3737
// remove mark
38+
// TODO: @makhnatkin currently params[colorMarkName] = '' is sent
39+
// when clicking the same color repeatedly
40+
// because of this we can't determine which color it was, we need to always send the color,
41+
// but handle the removal logic differently
3842
return toggleMark(type, params)(state, dispatch);
3943
}
4044

0 commit comments

Comments
 (0)