deckar01 / task_list

Markdown Task List feature components
MIT License
9 stars 7 forks source link

rendering of task lists with german keyboard layout #7

Open deckar01 opened 7 years ago

deckar01 commented 7 years ago

From @thojansen on October 13, 2015 11:1

I just noticed that the rendering of task lists does not work correctly when using a german keyboard layout. It eventually work after re-editing the comment a few times at some point, but the effect can be seen as follows.

typed with a german keyboard layout

switched to an english keyboard layout

Any idea what happens here and why this breaks?

_Copied from original issue: github-archive/tasklist#64

deckar01 commented 7 years ago

Reproduced in master.

screen shot 2016-09-27 at 3 56 28 pm

The issue is that this keyboard layout is inserting non-breaking spaces, which aren't matched by \s in ruby. We should use :space: instead.