`insertNewline ContinueMarkup()` behaves wierdly with code and list

When you have this code

- text
  ```js|

and you invoke insertNewlineContinueMarkup(), it works fine and the result is:

- text
  ```js
  |

However, when the code is this:

- ```js|

then the result is

- ```js
- |

which is really wierd. In my opinion it shouldn’t add -.

This patch should help.

1 Like