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

Issue with Github pages: rendering of headers not working #81

Closed jonasbn closed 7 years ago

jonasbn commented 7 years ago

I have been playing around with Github pages over the holiday and applying use of Github pages and themes is easier than ever.

But it seems that the themes do not render heading of pages correctly, when using MarkdownTOC.

See my Today I Learned repository for example, I have tried other themes with the same result.

I suspect that the Markdown renderers are confused by the leading anchors. I am working on a fix, but I cannot run the unit-test suite as described in the contribution guidelines and the guide by randy3k - any advice most welcome:

ERROR: Start directory is not importable: '/Users/jonasbn/Library/Application Support/Sublime Text 3/Packages/MarkdownTOC/tests'

How do I get the unit-test suite to work on the Github repository instead of the installed package?

Merry x-mas,

jonasbn

naokazuterada commented 7 years ago

But it seems that the themes do not render heading of pages correctly, when using MarkdownTOC.

Why don't you set autoanchor=false to avoid this issue?

How do I get the unit-test suite to work on the Github repository instead of the installed package?

I have no idea, sorry. But you can run it on travis-ci server.

jonasbn commented 7 years ago

Thanks @naokazuterada I will do some more experimentation :-)

jonasbn commented 7 years ago

Works like a charm @naokazuterada - thanks