Skip to content

Conversation

@renkun-ken
Copy link
Member

Follows up #163
Closes REditorSupport/vscode-R#218

This PR extracts existing code section support for R script to get_r_document_section_symbols and implements get_rmd_document_section_symbols for R markdown document.

It finds all lines starting with hashes as markdown title and excludes those inside a code block or the front matter in the beginning.

The sections are hierarchical and also include function definitions in Rmd code blocks.

Screenshot in VSCode:

image

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature request] Support outline for Rmarkdown

3 participants