getnikola / plugins

Extra plugins for Nikola
https://plugins.getnikola.com/
MIT License
57 stars 93 forks source link

[pyplots] but for markdown #386

Open gipi opened 3 years ago

gipi commented 3 years ago

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)?

Kwpolska commented 3 years ago

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.

gipi commented 3 years ago

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).

Kwpolska commented 3 years ago

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

gipi commented 3 years ago

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.