Ionaru / easy-markdown-editor

EasyMDE: A simple, beautiful, and embeddable JavaScript Markdown editor. Delightful editing for beginners and experts alike. Features built-in autosaving and spell checking.
https://stackblitz.com/edit/easymde
MIT License
2.45k stars 319 forks source link

Changing formatting from Ordered list to Unordered list fails, results in console error #92

Closed roryok closed 5 years ago

roryok commented 5 years ago

Describe the bug Changing formatting from Ordered list to Unordered list fails, results in console error Uncaught SyntaxError: Invalid regular expression: /*/: Nothing to repeat

To Reproduce Steps to reproduce the behavior:

  1. Go to 'https://easymde.tk/'
  2. Enter some text
  3. Select, click on "ordered list" button from toolbar
  4. Click on "unordered" list

Expected behavior List will change from ordered to unordered

Screenshots Nothing happens, error appears in console.

Version information

roryok commented 5 years ago

I added a PR for a workaround here: https://github.com/Ionaru/easy-markdown-editor/pull/93

Ionaru commented 5 years ago

Good find! I'll review the PR.