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

Closing fenced code block tag yields extra language completion #1156

Open
mjf opened this issue Nov 15, 2024 · 1 comment
Open

Closing fenced code block tag yields extra language completion #1156

mjf opened this issue Nov 15, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@mjf
Copy link

mjf commented Nov 15, 2024

When typing

```bla
something
```<--- OOPS!

Can this be fixed, please? It's quite annonying and unexpected behaviour.

Idea: What about to insert the closing tag automatically, as SB does for parens, for example?

```bla<enter>
<caret here on empty line>
```<--- closed automaticaly
@mjf mjf changed the title Closing fence tag yields language completion Closing fenced code block tag yields extra language completion Nov 15, 2024
@zefhemel zefhemel added the enhancement New feature or request label Nov 15, 2024
@zefhemel
Copy link
Collaborator

This would be nice, but it's not the same as closing brackets so it would be a bit more involved to implement. The way I currently work around this is using various slash commands that are in the Core library like /query which inserts a fenced code block properly. Not ideal, but it works: https://silverbullet.md/Library/Core/Snippet/query

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants