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

Plugin no longer working in Sublime 3 Build 3059 #25

Closed codecypher closed 10 years ago

codecypher commented 10 years ago

I enjoy the plugin and I have been using it for quite a while. However, it recently stopped working and I tested it on files that worked previously and even a simple plain markdown file. I consistently get the error "cannot find TOC tags" in the sublime status bar at the bottom, but otherwise nothing happens. It was working until recently. Any ideas on how to troubleshoot?

naokazuterada commented 10 years ago

On v1.3.0, I implemented "ignoring toc tags in codeblock". https://github.com/naokazuterada/MarkdownTOC/commit/a26a9ebb33ddeb27fea92aca9c61046a6654304a

Would you check is your TOC tag in codeblock? If it's not in, please write down here your "not-working" sample.

codecypher commented 10 years ago

No, my TOC tag is not in a codeblock. I'm trying to run "Tools > MarkdownTOC > Insert TOC" from the menu.

Here is a code sample::

Sample.md

Header 2

This is bold and bold.

Header 2

This is bold and bold.

Lists

An unordered list:

An ordered list:

  1. First item
  2. Second item
  3. Third item

To put a blockquote within a list item, the blockquote’s > delimiters need to be indented:

To put a code block within a list item, the code block needs to be indented twice — 8 spaces or two tabs.

It’s worth noting that it’s possible to trigger an ordered list by accident, by writing a number-period-space sequence at the beginning of a line. To avoid this, you can backslash-escape the period.

  1. What a great season.

Links

Inline-style

Inline-style links use parentheses immediately after the link text. For example: This is a link. This is a link with title.

Reference-style

Reference-style links allow you to refer to your links by names, which you define elsewhere in your document:

naokazuterada commented 10 years ago

Thanks for reporting.

Sorry, I found error in my code..., and fixed it. Please try again after update plugin.

https://github.com/naokazuterada/MarkdownTOC/releases/tag/1.3.1

codecypher commented 10 years ago

Plugin is working now, thank you. :)