-
Notifications
You must be signed in to change notification settings - Fork 38
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Right-side TOC "macro" doesn't work when using markdown syntax #12
Comments
I'm confronting the same problem. Is there any progress on this? |
Oops - hit the wrong button there! I had modified the redmine regexp to make things work on my local installation. If I get some time I'll look into it in the coming weeks to see if there's any way to patch it from the plugin. |
any news for this issue ? |
Indeed it would be very nice to have this issue fixed... |
I haven't had a chance to turn my changes into something that can work from the plugin. I do have the setup working with modified redmine code, but I don't think that's an acceptable solution. |
I'm happy to report that I figured out how to spell right-side TOC with markdown:
Thanks @joerocklin, your clue regarding TOC_RE was most helpful. |
The right-side toc format "macro" (put in quotes because it's not really a macro, but uses the macro markup) uses the format
{{>toc}}
. The markdown html highlighter seems to take the bare>
at the beginning and turn it into>
. The regexp that redmine is using to look for the TOC alignment is:(found in redmine/app/helpers/application_helper.rb on line 881 as of version 2.0.3)
Unfortunately, just changing the
TOC_RE
definition won't solve the problem as thereplace_toc
method which uses the regex looks for the>
character explicitly. Perhaps a replacementreplace_toc
method should be supplied with this plugin to handle this case?The text was updated successfully, but these errors were encountered: