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

Links in angle brackets #166

Merged
merged 2 commits into from
Sep 30, 2016
Merged

Conversation

dbkr
Copy link
Contributor

@dbkr dbkr commented Sep 29, 2016

This adds behaviour for angle brackets to match the current behaviour for brackets, braces and parentheses, meaning that <http://example.com> will now not include the final '>' (but http://example.com/foo_<bar> will).

Tests included for both of these cases.

I've also broken it up into two commits, one with the functional change and one whitespace commit changing the whitespace on other lines to match, so suggest reading the two commits separately.

Make "<http://example.com>" parse the same as "(http://example.com)"
by adding angle bracket versions of the existing logic for braces,
brackets and parentheses.

This breaks the indenting in parser.js: I'll fix this in a
separate commit to make the diffs legible.
Move the RHS of the assignments over to match the angle bracket
lines.
Copy link
Owner

@nfrasser nfrasser left a comment

Choose a reason for hiding this comment

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

👍 awesome, thanks for this @dbkr!

@nfrasser nfrasser merged commit fbc8c3a into nfrasser:master Sep 30, 2016
dbkr added a commit to element-hq/element-web that referenced this pull request Oct 4, 2016
dbkr added a commit to matrix-org/matrix-react-sdk that referenced this pull request Oct 4, 2016
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.

2 participants