Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

Correctly handle `[[` autoclosing in Markdown (#24662)

Peter Tripp7378ab9ba551
diff --git a/crates/languages/src/markdown/config.toml b/crates/languages/src/markdown/config.toml
index af20aa49ba0..f6e15118d89 100644
--- a/crates/languages/src/markdown/config.toml
+++ b/crates/languages/src/markdown/config.toml
@@ -3,6 +3,7 @@ grammar = "markdown"
path_suffixes = ["md", "mdx", "mdwn", "markdown", "MD"]
word_characters = ["-"]
block_comment = ["<!-- ", " -->"]
+autoclose_before = "}])>"
brackets = [
{ start = "{", end = "}", close = true, newline = true },
{ start = "[", end = "]", close = true, newline = true },