Dear All,
I've been using Sphinx for my personal website for the past years and realized that I more have a blog with posts and few pages and did the conversion to Nikola in the past days. I also took the opportunity to switch to Markdown as I use it with R and Stack Overflow and everywhere else as well.
Previously I used the figure directive with caption a lot. Markdown does have them with the implicit figures extension. Pandoc has it, and I tried to pass it as a Pandoc option. But apparently Nikola uses Python-Markdown, so I installed the figureAltCaption Python module and added it to the extensions. It ran through, but still I do not have implicit figure captions.
MARKDOWN_EXTENSIONS = [Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â
   'markdown.extensions.fenced_code',                                        Â
   'markdown.extensions.codehilite',                                         Â
   'markdown.extensions.extra',                                              Â
   'figureAltCaption',                                                       Â
]
Second I have set in my Sphinx theme to have a local table of contents in the sidebar. There are a handful of very long (over 10k words) posts that would benefit from a local table of contents. I saw that the Nikola manual is written in reST and uses the contents directive. I would like to use that also in those posts.
Is there a possibility to use both features with Markdown? I could convert these few posts back to reST and use the contents directive, but for the figures I would need to write HTML manually. I could do that, but I'd prefer to have the directive. Can this be accomplished somehow?
Best regards,
Martin