mdx-analyzer
mdx-analyzer copied to clipboard
outline pane
Subject of the feature
VSCode has a outline panel, which works for markdown files, but currently not for mdx files. It would be great if it would!
Problem
Currently, the ouline pane shows a "No symbols found in document" message.
Expected behavior
Document outline should be accessible in outline pane.
Alternatives
Manually switch the language from "Markdown React" to "Markdown" to get the outline.
for markdown this is handled by this DocumentSymbolProvider
, but no idea how to reuse this for mdx
mdx
requires runtime info, so I think it can not be fully supported, but for previewing simple mdx as markdown, it may be good to have. But I personally don't have much experience on VSCode extension, PR welcome.
For me the code outline works in mdx. Not sure if something has changed?
@Temez1 Check the file type info in the status bar. If you see Markdown instead of Markdown React, then it must be something/where else to change the file type mapping.
The initial IntelliSense added support for document symbols (used by for example the outline pane and breadcrumbs). Currently only JavaScript symbols are supported. I’ll use this issue to track support for markdown headings.
Released in [email protected]
, @mdx-js/[email protected]
:tada: