Skip to content

Remove unnecessary check for hrule in parseListMarker #85

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

Merged
merged 2 commits into from
Mar 30, 2015

Conversation

colinodell
Copy link
Member

By the time parseListMarker is called, the hrule block start was already
tried. In case it matches, no further block starts are tried. So the
later check is not necessary and can be removed.

Mirrors commonmark/commonmark.js#19

By the time parseListMarker is called, the hrule block start was already
tried. In case it matches, no further block starts are tried. So the
later check is not necessary and can be removed.

Mirrors commonmark/commonmark.js#19
@colinodell colinodell added this to the Version 0.8 milestone Mar 30, 2015
@colinodell colinodell self-assigned this Mar 30, 2015
@colinodell colinodell added the performance Something could be made faster or more efficient label Mar 30, 2015
colinodell added a commit that referenced this pull request Mar 30, 2015
Remove unnecessary check for hrule when parsing lists
@colinodell colinodell merged commit d28b14a into master Mar 30, 2015
@colinodell colinodell deleted the remove-unnecessary-check branch March 30, 2015 12:05
@colinodell colinodell restored the remove-unnecessary-check branch March 30, 2015 12:05
@colinodell colinodell deleted the remove-unnecessary-check branch March 30, 2015 12:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
performance Something could be made faster or more efficient
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant