lakesare / memcode

Spaced-repetition: with real formatting.
http://memcode.com
MIT License
339 stars 73 forks source link

Fix non breaking spaces when pasting lists #164

Closed daniel-eder closed 2 years ago

daniel-eder commented 2 years ago

When pasting lists from word the pastematcher accidentally generated non breaking spaces between

  • and the the first character in the line. trimLeft() on line 15 fixes this.

    Intentional spaces before the first character will also be trimmed (I see no way to differentiate), however this should be a super-rare occurrence when pasting from word, and can still be fixed in the text editor after pasting.

    See https://github.com/quilljs/quill/issues/1225#issuecomment-992867278