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

fix: wrong ordered list regexp when extending list by pressing the enter key #925

Merged
merged 5 commits into from
Apr 23, 2020

Conversation

js87zz
Copy link
Contributor

@js87zz js87zz commented Apr 22, 2020

Please check if the PR fulfills these requirements

  • It's the right issue type on the title
  • When resolving a specific issue, it's referenced in the PR's title (e.g. fix #xxx[,#xxx], where "xxx" is the issue number)
  • The commit message follows our guidelines
  • Tests for the changes have been added (for bug fixes/features)
  • Docs have been added/updated (for bug fixes/features)
  • It does not introduce a breaking change or has a description of the breaking change

Description

  • extend the ordered list by pressing the enter key when ordered list should include space like below
    • 1. a

Thank you for your contribution to TOAST UI product. 🎉 😘 ✨

@js87zz js87zz changed the title fix: wrong ordered list regexp fix: wrong ordered list regexp when extending list by pressing the enter key Apr 22, 2020
@@ -6,7 +6,7 @@
import CodeMirror from 'codemirror';

/*eslint-disable */
var listRE = /^(\s*)(>[> ]*|[*+-] \[[x ]\]\s|[*+-]\s|(\d+)([.)]))(\s*)/,
var listRE = /^(\s*)(>[> ]*|[*+-] \[[x ]\]\s|[*+-]\s|(\d+)([.)]\s))(\s*)/,

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

마크다운 스펙상의 문제는 해결이 됐는데, 사실 보고된 이슈는 다른 문제입니다.
코드 블록 내에서도 똑같이 발생하는 게 더 문제라서..
현재 커서 위치 혹은 툴바 state를 확인해서 코드 블록 내부에서는 동작하지 않도록 막는 처리를 해 줘야 할 것 같습니다.

Copy link
Member

@seonim-ryu seonim-ryu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[4/23] 고생하셨습니다! 👍

@js87zz js87zz force-pushed the fix/continuelist-regexp branch from 55c285c to ede3fbd Compare April 23, 2020 06:07
@js87zz js87zz merged commit 25fbfcc into master Apr 23, 2020
@js87zz js87zz deleted the fix/continuelist-regexp branch April 23, 2020 06:07
@seonim-ryu seonim-ryu added the Bug label Apr 23, 2020
@seonim-ryu seonim-ryu added this to the 2.1.0 milestone Apr 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants