Skip to content
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

[pyplots] but for markdown #386

Open
gipi opened this issue May 17, 2021 · 4 comments
Open

[pyplots] but for markdown #386

gipi opened this issue May 17, 2021 · 4 comments

Comments

@gipi
Copy link

gipi commented May 17, 2021

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 gipi changed the title pyplots but for markdown [pyplots] but for markdown May 17, 2021
@Kwpolska
Copy link
Member

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
Copy link
Author

gipi commented May 17, 2021

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
Copy link
Member

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

@gipi
Copy link
Author

gipi commented May 18, 2021

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants