From 8a1cf4d4995529f9892bf346dbcc1e2fa310257a Mon Sep 17 00:00:00 2001 From: Yuantian Ding <42363762+YuantianDing@users.noreply.github.com> Date: Mon, 12 Jan 2026 11:06:11 -0500 Subject: [PATCH] Add structured outline for Markdown (#45643) Just make outline of markdown to be structured: image Release Notes: - Added structured outline for Markdown. - Also fixed the breadcrumb display in Issue [#45663](https://github.com/zed-industries/zed/issues/45663). --- crates/languages/src/markdown/outline.scm | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/crates/languages/src/markdown/outline.scm b/crates/languages/src/markdown/outline.scm index 3f8311136cd072e6a23975d610ef9f3783986eb1..dcca3db4d4cb920a7d9f939dc99197d139c3c2e6 100644 --- a/crates/languages/src/markdown/outline.scm +++ b/crates/languages/src/markdown/outline.scm @@ -1,5 +1,3 @@ -(atx_heading - . - (_) @context - . - (_) @name ) @item +(section + (atx_heading + . (_) @context . (_) @name)) @item