Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Formatting asterisks divided by space results in console error #337

Closed
mrlugilugi opened this issue Jun 9, 2021 · 0 comments · Fixed by #338
Closed

Formatting asterisks divided by space results in console error #337

mrlugilugi opened this issue Jun 9, 2021 · 0 comments · Fixed by #338
Labels

Comments

@mrlugilugi
Copy link

mrlugilugi commented Jun 9, 2021

Describe the bug
As described in #92 the same errors results from changing formatting of a text like '* *' to an unordered list.

To Reproduce
Steps to reproduce the behavior:

  1. Go to https://easy-markdown-editor.tk/
  2. Enter text '* *' into editor
  3. Select entered text
  4. Click on button to format as unordered list
  5. See error in console

Expected behavior
Selected text should be formatted as unordered list.

Screenshots
image

** Version information **

  • OS: MacOS
  • Browser: Chrome 91
  • EasyMDE version: v2.15.0

Additional context
I tried escaping the regex "*" in

'unordered-list': '*',

like
\\*
and it seems to be a valid regular expression.

@mrlugilugi mrlugilugi added the Bug label Jun 9, 2021
Ionaru added a commit that referenced this issue Jun 16, 2021
…s-as-unordered-list

fix: Formatting asterisks divided by space results in console error #337
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
1 participant