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

Hashtag + text without space (ex: #foo) inside code-block is auto-deleted #203

Open
cloverich opened this issue Jun 30, 2024 · 0 comments
Open
Labels
bug Something isn't working

Comments

@cloverich
Copy link
Owner

Another title for this issue could be: Disable markdown shortcuts when inside code blocks, quotes, and other block-level elements

  • Go inside a code block
  • Try typing a comment like #comment
  • It will be removed as you type

I think course of events is:

  • Typing #foo triggers the markdown shortcut for headings
  • It realizes you are inside a codeblock and bails out (normalization? ¯_(ツ)_/¯ )

So need to somehow tell the markdown shortcut handler that within the context of a code block it should stfu. It still works for bold I bet, but that shouldn't either.

@cloverich cloverich added the bug Something isn't working label Jun 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant