Vscode-markdown: [Feature Request] support `[TOC]`

Created on 28 May 2019  路  5Comments  路  Source: yzhang-gh/vscode-markdown

Auto create table of contents in preview when get [TOC]

Feature Markdown dialect

Most helpful comment

Thanks for the feedback.

Currently, for compatibility reason, we are not going to support it. But I will leave this open to collect more feedback.

All 5 comments

Thanks for the feedback.

Currently, for compatibility reason, we are not going to support it. But I will leave this open to collect more feedback.

Just to add a slightly different variant on the request - I'd be very interested in support for [[_TOC_]] as it's in many Gitlab projects I work in. https://docs.gitlab.com/ee/user/markdown.html#table-of-contents

This might be part of the Gitlab Flavored Markdown(GLF) spec, but I'm not sure.
https://docs.gitlab.com/ee/user/markdown.html#gitlab-flavored-markdown-gfm

Ah, my mistake. My request was to have the TOC syntax cause a full table of contents to be displayed in the markdown preview, but this project doesn't have a preview command. Looks like markdown-preview-enhanced does this for [TOC], but I'll have to see if there are any VSCode extensions that support the Gitlab syntax.

Please see FAQ for more information.

Thanks! In case it's helpful to others, here's the one that did what I was describing above. https://marketplace.visualstudio.com/items?itemName=wibblemonkey.markdown-auto-toc

Was this page helpful?
0 / 5 - 0 ratings

Related issues

rdhar picture rdhar  路  4Comments

jerry-sky picture jerry-sky  路  4Comments

chuyangliu picture chuyangliu  路  5Comments

lotapp picture lotapp  路  3Comments

akshaybabloo picture akshaybabloo  路  3Comments