-
-
Notifications
You must be signed in to change notification settings - Fork 79
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
Escape characters are being included in titles #34
Comments
For example, JIRA urls often have brackets: |
I'm guessing fix the bug that link title is not escaped by chitsaou · Pull Request #32 · chitsaou/copy-as-markdown caused this change |
Ah, so that was intentional. Bummer. Github always seemed to be ok with brackets and underscores, even if stackoverflow wasn't (for instance, in #31 the example is Can you make this a setting that we can disable? Typically, I use this extension just to get the page title so the link makes sense when I paste it in hipchat or other non-markdown textboxes, so it isn't only useful for markdown :) |
Also, http://daringfireball.net/projects/markdown/dingus handles unescaped stuff just fine, e.g. |
Thanks for your suggestion. You're right, most Markdown processors handle this with no problem. I understand that it could be a little bit annoying when there is no escape problem in the text, and in most cases, the text should be fine. The only case I found so far is incomplete bracket like I will think about the need of this feature and put my thoughts here. |
The only case that mentioned in #31 is on https://chat.stackoverflow.com IMHO this doesn't make it necessary to escape all the unescaped chars. |
I think this is not solvable with one solution working for all. Maybe an option to turn escaping on/off and keeping the default as off would work for most? |
Sorry for late response. I will add an option for this. |
Hey, I have made it an option. It is now disabled by default. It may take some time for Chrome / Firefox web stores to distribute new versions worldwide, but should not be too long. For Chrome: Go to "Extensions" page, find "Copy as Markdown" and click "options" to enable it. For Firefox: Go to "Add Ons" page, find "Copy as Markdown" and click "Preferences". Feel free to give me any suggestions :) |
Cool! 👍 |
I think this is new with Version: 1.1.0, Updated: January 11, 2016. When you use it on a page with underscores or brackets (probably other chars), the backslash appears in the title when it shouldn't, e.g. a page with the title
[a_b]
is being copied as[\[a\_b\]](http://example.com)
The text was updated successfully, but these errors were encountered: