hiroppy / fusuma

✍️ Fusuma makes slides with Markdown easily.
https://hiroppy.github.io/fusuma
5.41k stars 194 forks source link

[feature request] ToC subsection support #181

Open 5n7-sk2 opened 5 years ago

5n7-sk2 commented 5 years ago

Type

Feature Request

I want to display subsections in ToC like below.

1. sec1 --------------- 1
  1.1 subsec1 ------- 2
  1.2 subsec2 ------- 3

You used to say that it is difficult to customize ToC because the component is provided by webSlides, but I think the feature is in demand, or can I already do that?

hiroppy commented 5 years ago

can I already do that?

Nope, I want to implement this feature. So we have to implement fusuma's comment before.

https://github.com/hiroppy/fusuma/blob/master/packages/mdx-loader/src/mdxPlugin.js#L41

memo: https://codepen.io/webslides/pen/VMZJwj