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

Remove special chars #1387

Merged
merged 17 commits into from Oct 7, 2017
Merged

Remove special chars #1387

merged 17 commits into from Oct 7, 2017

Conversation

marcoscaceres
Copy link
Member

@marcoscaceres marcoscaceres mentioned this pull request Oct 6, 2017
@dontcallmedom
Copy link
Member

I only glanced through the changes, but it looks like it only special-cases parenthesis, where I think it would make more sense to only keep alphanumeric characters plus a few punctuations. If not, we should at least further special-case " since that created validity bugs

@marcoscaceres
Copy link
Member Author

Good point. I’ll restrict to ascii and just lower-case everything.

@marcoscaceres
Copy link
Member Author

I added some error recovery to lessen the impact a bit. Legacy fragments generated by ReSpec get converted to the new format. Custom ones that an author might have included (e.g., id="foo()") get left alone.

@marcoscaceres marcoscaceres merged commit 7a9a1e8 into develop Oct 7, 2017
@marcoscaceres marcoscaceres deleted the remove_special_chars branch October 7, 2017 08:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Parentheses in IDs
2 participants