naokazuterada / MarkdownTOC

SublimeText3 plugin which generate a table of contents (TOC) in a markdown document.
https://packagecontrol.io/packages/MarkdownTOC
MIT License
301 stars 48 forks source link

Is it possible to render TOC markdown as HTML? #77

Closed Kshitiz-Sharma closed 8 years ago

Kshitiz-Sharma commented 8 years ago

Has HTML rendering been considered in mtoc's design? If not, do we have any plans to make it integrate better with the Preview plugin?

Consider following markdown with TOC:

markdown

On converting to HTML with Preview plugin it looks like this:

result
naokazuterada commented 8 years ago

Is it possible to render TOC markdown as HTML?

It's not possible.

This plugin does only 'creating toc'. HTML rendering feature is out of this plugin's purpose so far.

naokazuterada commented 8 years ago

@Kshitiz-Sharma

I found a way. Use bracket="round" then the sublimetext-markdown-preview plugin will render the result you want.

<!-- MarkdownTOC bracket="round" -->

- [test](#test)

<!-- /MarkdownTOC -->

# test

Maybe the sublimetext-markdown-preview plugin doesn't support "Markdown standard reference-style links". See also this section of our document.