Typora – Export HTML with TOC on Left Panel

Spent some time to research on this, and finally found a solution.

Source:

https://www.v2ex.com/t/549551

https://github.com/icanleric/other/blob/master/Typora%202%20Html%E5%B8%A6%E7%9B%AE%E5%BD%95.md


from v2ex.com

The implementation is very easy, only need to insert 3 lines of code to the heading part.

I made a few changes to the original JS and CSS file to make it more suitable with the Typora Newsprint theme.

Below is the compressed version:

Below is the uncompressed version.

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.