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

Make Horizontal Rule compatible with Typography extension #1241

Merged
merged 1 commit into from
May 3, 2021

Conversation

chrisarmstrong
Copy link
Sponsor Contributor

@chrisarmstrong chrisarmstrong commented Apr 28, 2021

The Typography extension automatically converts two hyphens -- into an em dash , which means typing three hyphens in a row results in an em dash and a hyphen –-, instead of triggering an hr.

I propose adding the –- pattern to this extension‘s nodeInputRule so typing three hyphens in a row will still trigger an hr, even if 'smart dashes' are enabled via the Typography extension or otherwise.

They Typography extension automatically converts two hyphens `--` into an em dash `–`, which means typing three hyphens in a row results in an em dash and a hyphen `–-`, instead of triggering an hr. 

I propose adding the `–-` pattern to this `nodeInputRule` so typing three hyphens in a row will still trigger an hr, even if 'smart dashes' are enabled via the Typography extension or otherwise.
@chrisarmstrong chrisarmstrong changed the title Make compatible with Typography extension Make Horizontal Rule compatible with Typography extension Apr 28, 2021
@philippkuehn
Copy link
Contributor

Good idea!

@philippkuehn philippkuehn merged commit 5d50c11 into ueberdosis:main May 3, 2021
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.

None yet

2 participants