redmine_markdown_extra_formatter icon indicating copy to clipboard operation
redmine_markdown_extra_formatter copied to clipboard

toc macro not working

Open ndarilek opened this issue 14 years ago • 3 comments

I'm trying to use the {{toc}} macro in Redmine 1.0.1 with the latest version of the plugin, but am getting the following in my page:

Error executing the toc macro (undefined method `call' for nil:NilClass)

There doesn't appear to be anything else in my logs to help debug this further. Any ideas on what may be wrong?

ndarilek avatar Aug 30 '10 20:08 ndarilek

use single {}'s

Update: use "{>toc}".

jcw avatar Sep 12 '10 16:09 jcw

5ef6a84a948e572e5e03b1887c756f29ebd00404 will fix the problem. It works on Redmine 1.1.2.

miau avatar Apr 22 '11 05:04 miau

Although the patch above will work fine with Redmine after edavis10/redmine@2ad8242ae782ea9d87a0d98f8563199da736bdc7, it might not work with older versions.

So I committed b4db3ef809c7957a14e379826aa666b074f59507 that may work fine with older versions too.

miau avatar Apr 22 '11 07:04 miau