Fix cursor motion in bidi text:

 - Pos object is augmented with a bias property,
 - procedures responsible for horizontal and vertical movement are updated.
Remove useBias parameters
[markdown mode] Fix handling of escaped characters

Issue #2792