Skip to content

Don't show a preview for a playground link if wrapped in < > #218

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
Oct 24, 2022

Conversation

Retsam
Copy link
Contributor

@Retsam Retsam commented Oct 22, 2022

Allow the preview to be suppressed by escaping the url in <> - this can be useful if you've already sent the code (or most of it) in a previous message.

Also refactors the regex parsing into a single function, rather than exporting the regex and using it throughout. Seemed clearer than adding more one-off logic in the places that consume the Regex.

@robertt robertt merged commit da1f2c0 into typescript-community:master Oct 24, 2022
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.

3 participants