-
Notifications
You must be signed in to change notification settings - Fork 185
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
Backslash in hover popup is not shown #2158
Comments
Minimal reproduce: mdpopups.show_popup(view, mdpopups.md2html(view, mdpopups.format_frontmatter({'markdown_extensions': [{'pymdownx.escapeall': {}}]}) + '__A\\B\\C\\Foo__')) I'll have to throw it at @facelessuser :) |
Please reference the documentation for the plugin: https://facelessuser.github.io/pymdown-extensions/extensions/escapeall/. If you have any questions or confusion about its behavior after reading, please feel free to ask. I feel like the documentation is pretty clear, but I'm happy to update if there is anything unclear. |
Right, makes sense. The PR that added |
Though the So it appears that we might still need |
🤷🏻 If you are using unescaped HTML characters, you run the risk of things breaking. In this case, HTML entities or escapes for HTML characters should most likely be used, but EscapeAll is a great alternative. Something like The original Markdown spec does not include Anyways, some or even all CommonMark parsers may support escaped EscapeAll has a very specific goal in what it is doing. I wanted |
On the other hand, pyright doesn't seem to be formatting the content in a way that needs this workaround anymore:
So it seems like we can drop it after all. |
To summarize, both of the cases that needed |
@facelessuser as I've pointed out in here and in #2163 (comment), removing the In case we'd need that (I guess we'll run without |
It is certainly possible, you'd have to create an issue upstream. I haven't been updating the Sublime version of Python Markdown or Pymdown Extensions (which contains the EscapeAll extension) as I've been waiting for Package Control to finally update to allow Python 3.8 dependencies. I'd really, really like to see Package Control update things for Python 3.8 before updating all the dependencies as I don't want to backport all the current changes back to Python 3.3, but maybe we could backport this specific change if I'm going to be waiting another 2 years for Package Control 😩. Create an issue on the Pymdown Extensions repo and I can look into it and figure out how we might move forward. |
Describe the bug
As the title.
Original response payload:
To Reproduce
Steps to reproduce the behavior:
Foo
Expected behavior
The backslashes show as-is.
Screenshots
Environment (please complete the following information):
The text was updated successfully, but these errors were encountered: