markdown-toc icon indicating copy to clipboard operation
markdown-toc copied to clipboard

Generate/update TOC doesn't respond

Open Willowlark opened this issue 6 years ago • 5 comments

Clicking on the option does nothing in VSC. This is a recent issue, possibly a new update broke your code? receives the error 'extension.updateMarkdownToc' failed

Willowlark avatar Sep 19 '17 12:09 Willowlark

Error identified: Using % for jekyll links causes it to fail. Kind of annoying if you want to link to another page in the header.

Willowlark avatar Sep 19 '17 18:09 Willowlark

yes got the same issue having a "%" in a title like this :

# Helloz %

then update / insert toc leads to

Running the contributed command:'extension.updateMarkdownToc' failed.

eMerzh avatar Oct 13 '17 09:10 eMerzh

Fails to generate a TOC on Linux, but works on MacOS.

rajinder-yadav avatar Jun 17 '18 23:06 rajinder-yadav

un-installing and reinstalling fixed the issue. Better to delete the extension folder manually and do a clean install.

rajinder-yadav avatar Jun 17 '18 23:06 rajinder-yadav

It fails on the decodeURI call because of a malformed %-encoding. I think the decodeURI call can be removed altogether, it was introduced in 768dc313 but without a clear reason why. anchor-markdown-header now supports emoji.

mcornella avatar Sep 23 '20 21:09 mcornella