How to remove a class from a marker that was added by markText

I used cm.getAllMarks(); and I see the specific marker and it’s className, yet setting marker.className to null doesn’t provide any change to the DOM, only to to the marker object, what would be the right way to remove a class from the DOM via codemirror?
Thanks Marijn.

You have to remove the marker. (I don’t think there’s any place in the API where writable properties are used. Don’t just write to properties in the library’s objects—it’ll do either nothing or break stuff.)