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

Add support for .mdx files #160

Closed brophdawg11 closed 3 years ago

brophdawg11 commented 3 years ago

Purpose

Add support for auto-update in .mdx files used in Storybook: https://storybook.js.org/docs/react/api/mdx

How important it is

Medium - you can add TOC's but they don't auto-update on save so they get out of sync

Ideal implementation

I think it's as easy as updating https://github.com/naokazuterada/MarkdownTOC/blob/master/markdowntoc/autorunner.py#L10, but I'm not sure how to test locally

naokazuterada commented 3 years ago

@brophdawg11 Sorry for late reply and reaction. Now it released as 4.1.2, please check!