Skip to content

Outline view for Markdown Preview #342919

Open

Agent suggestions

Public preview

Description

@michael1006

When viewing a Markdown document in Markdown Preview mode, have the Outline view display the table of contents exactly the same way it already does in Text Editor mode and Markdown Editor mode. It currently instead displays "The active editor cannot provide outline information."

This feature was previously requested in May 2026 but only got 16 of the 20 required votes: #316113

So I'm creating this new issue to try again to get 20 votes, because this is really important for navigating long documents when using VS Code for reading Markdown (like the many Markdown documents that LLM's create).

Note that this feature was recently provided (literally last week) for Markdown Editor mode: #328567

I tried using Markdown Editor mode, but it is not suitable because I want to basic viewing things like scroll downwards and upwards with the arrow keys or with space and shift+space, and Markdown Editor doesn't support any of those when in non-edit mode. In non-edit mode, pressing any navigation key just triggers a visual "shine" effect on the lock/edit toggle in the top-right corner. So it is broken as a basic viewer for navigating and reading.

Activity

  1. michael1006 commented on Oct 28, 2026

    @michael1006
    Author

    Tushar Sadhwani (@tusharsadhwani) Alberto Fabbri (@AlbertoFabbri93) Lucas Parzianello (@lucaspar) voidexpr Chloe Lee (@chloelee767) festoney8 (@festoney8) Peilin Li (@Ross-Li)

    You all upvoted the same issue #316113 but it didn't get to 20 votes. Would you mind upvoting this one to try to get to 20? Thank you!

  2. michael1006 commented on Oct 28, 2026

    @michael1006
    Author

    Matsuyanagi (@Matsuyanagi) Dao-you (@Dao-you) The 99's Puppycat (@huyhoang160593) Victor L. (@Atreyu-94) John Veness (@JohnVeness)

    You all upvoted the similar issue #328567 -- if you are interested in this one as well, would you mind upvoting so this one can get to 20? Thank you!

  3. westurner commented on Nov 23, 2026

    @westurner

    Which part of the codebase needs to be changed for this feature to be implemented?

    • v1.145.3 does not seem to have working outline view for markdown preview
    • didn't this feature already work fine?
    • did something more recent than this commit break outline view?
    • IIUC this commit added outline view for Markdown Preview?: 97212c3
    • add tests for this to prevent regressions
  4. westurner commented on Nov 23, 2026

    @westurner

    Is there another issue for Ctrl-F?

    • add support for Ctrl-F in Markdown Preview that searches the Code and/or Preview and/or the Outline
    • add support for 'Add to chat' in Markdown Preview and in Markdown Outline
  5. michael1006 commented on Nov 23, 2026

    @michael1006
    Author

    Wes Turner (@westurner) I don't know if the feature ever "already worked fine", but I haven't seen it.

    And the commit you are referring to, that you are asking whether it added it -- 97212c3 -- that added outline view for Markdown Editor mode, not Markdown Preview mode. The main description at the top of this issue describes that addition/commit, where it says "Note that this feature was recently provided (literally last week) for Markdown Editor mode".

    I don't know anything about Ctrl+F, I think that would need to be a separate issue if you have one. But on my Mac, Cmd+F seems to be working properly for me for searching text within the Markdown Preview.

  6. westurner commented on Nov 23, 2026

    @westurner
  7. michael1006 commented on Nov 23, 2026

    @michael1006
    Author

    Wes Turner (@westurner)

    There is currently a separate Ctrl-F dialogue/state for the Markdown Editor
    as for the Markdown Preview. Is that intended or aaccidental UI design?

    I don't know, but I think that would be a separate issue, not part of outline view. This issue is just about outline view for Markdown Preview mode, not any other issues related to Markdown viewing/editing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions