cben / mathdown

Collaborative markdown with math
https://www.mathdown.net
Other
420 stars 46 forks source link

cursor invisible in column 0 #179

Open cben opened 6 years ago

cben commented 6 years ago

The cursor is invisible when at left-most position.

codemirror.css sets:

.CodeMirror pre {
  padding: 0 4px; /* Horizontal padding of content */
}

This is overridden by my renderLine callback for indented soft-wrapping, it sets style="text-indent: -0ex; padding-left: 0ex;" on the pre element :-(

Chromium 63.0.3239.108, Linux, but probably everywhere.