-
-
Notifications
You must be signed in to change notification settings - Fork 179
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
Allow list items etc. to terminate paragraphs #411
Conversation
index.tsx
Outdated
break | ||
} | ||
match += line + '\n' | ||
if (/^\s*$/.test(line)) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would this be equivalent?
if (/^\s*$/.test(line)) { | |
if (!line.trim()) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Trim appears to be significantly faster, so let's go with that
@probablyup bump! |
Just wanted to quickly say I haven't forgotten about this! I've had COVID since the new year and am finally starting to feel normal again. Should have some time for OSS work this weekend. |
index.tsx
Outdated
break | ||
} | ||
match += line + '\n' | ||
if (/^\s*$/.test(line)) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Trim appears to be significantly faster, so let's go with that
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for your patience on this!
This is another stab at #256. Unlike #291, I'm matching the paragraph imperatively rather than with a regex.
Fixes #256.