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

Fix dingus link when double clicking Markdown code #535

Merged

Conversation

zmwangx
Copy link
Contributor

@zmwangx zmwangx commented Oct 1, 2018

Currently, double clicking on Markdown code on https://spec.commonmark.org/0.28/ always opens https://spec.commonmark.org/dingus/?text= without content prefill. This PR fixes that bug.

Prior to this commit, the link opened is always `/dingus/?text=` (no text),
because `$(this)` is `code.language-markdown`, so `.find`ing `code` in its
descendants turns up nothing.
@jgm jgm merged commit 04b3fde into commonmark:master Oct 2, 2018
@jgm
Copy link
Member

jgm commented Oct 2, 2018

Thanks! BTW, it worked fine before in my browser, but I'll take your word for it that it didn't work in yours.

@zmwangx
Copy link
Contributor Author

zmwangx commented Oct 2, 2018

Hmm, weird, I tested in latest Chrome (69.0.3497.100), Firefox (63.0b10) and Safari (12.1) and none of them worked.

@zmwangx zmwangx deleted the fix-doubleclick-markdown-code-dingus-link branch October 2, 2018 05:59
@jgm
Copy link
Member

jgm commented Oct 2, 2018 via email

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