aboutsummaryrefslogtreecommitdiff
path: root/src/Text/Pandoc/Class/Sandbox.hs
AgeCommit message (Collapse)AuthorFilesLines
2021-08-28Add `--sandbox` option.John MacFarlane1-0/+50
+ Add sandbox feature for readers. When this option is used, readers and writers only have access to input files (and other files specified directly on command line). This restriction is enforced in the type system. + Filters, PDF production, custom writers are unaffected. This feature only insulates the actual readers and writers, not the pipeline around them in Text.Pandoc.App. + Note that when `--sandboxed` is specified, readers won't have access to the resource path, nor will anything have access to the user data directory. + Add module Text.Pandoc.Class.Sandbox, defining `sandbox`. Exported via Text.Pandoc.Class. [API change] Closes #5045.