自動生成される目次に、原稿中の見出しを含めてほしい
toc: true 自動生成した目次には、出版物を構成する各原稿の title だけが含まれるようになっています。
https://docs.vivliostyle.org/#/ja/vivliostyle-cli#%E7%9B%AE%E6%AC%A1%E3%81%AE%E4%BD%9C%E6%88%90
実際の本作りでは、原稿の中にある h1 や h2 などの見出しを目次に含めたいことが多いと思いますが、そのためには、現状は自分で(手動で)目次を作る必要があります。そこで、目次自動作成機能で、h1 や h2 などの見出しを目次に含められるとよい思います。どのレベルの見出しまで含めるかも指定できるとうれしいです。
this is what i need as well. i need at least h2.
how do i create table of contents manually with h2?
edit: found https://docs.vivliostyle.org/#/vivliostyle-cli#creating-table-of-contents-yourself but i think using unified with remark-toc would be better. idk if there's docs to using unified.
can't find it. plz let me know if i can use unified for book generated with npm create book my-book command :)