plugins icon indicating copy to clipboard operation
plugins copied to clipboard

[pyplots] but for markdown

Open gipi opened this issue 4 years ago • 4 comments

I would like to use the pyplots plugin but I'm using markdown and the plugin is not compatible with that: is it possible to modify the plugin to use also markdown or I need to create a new plugin (extending ShortcodePlugin)?

gipi avatar May 17 '21 13:05 gipi

The plugin could be rewritten as a shortcode plugin which also can run inside reST, as done in core with eg. charts or post-list.

Kwpolska avatar May 17 '21 14:05 Kwpolska

Ok the problem is that is not backward compatible, i.e., it's not more supported someting like .. pyplots::. Moreover, for charts it's present a shortcode but also a directive (nikola/plugins/compile/rest/chart.py).

gipi avatar May 17 '21 21:05 gipi

That approach of having both a directive and a shortcode is what I was thinking of.

Kwpolska avatar May 17 '21 21:05 Kwpolska

This means that I need to add a new plugin since I don't see a way to let nikola accepting two plugins from the same code.

gipi avatar May 18 '21 08:05 gipi