Skip to content

--safe option that only allows safe plotting options #52

@mgajda

Description

@mgajda

While diversity is great feature, sometimes one would like to call pandoc-plot on Markdown of unknown origin.
In such case it would be nice to have --safe option that disables all those plotting libraries that can execute arbitrary code.

This would probably allow only gnuplot, graphviz, plantuml, and ggplot2 without shell escape.

To disable shell escape in gnuplot it may be sufficient to run with environment variable set: SHELL=/bin/false gnuplot.
As far as I know graphviz and plantuml allow no shell escape.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions