feat: add JSON export filtering and robust boolean coercion#24
Open
mcanouil wants to merge 2 commits into
Open
feat: add JSON export filtering and robust boolean coercion#24mcanouil wants to merge 2 commits into
mcanouil wants to merge 2 commits into
Conversation
Adds whitelist (json-include), blacklist (json-exclude), sensitive-path redaction (json-exclude-sensitive, default true), and a server-context warning (json-warn-on-server, default true) for the JSON metadata export. The json toggle now accepts raw Lua booleans, Pandoc MetaBool, and case-insensitive 'true'/'false' strings, removing the brittle string comparison on a stringified value. Module-level configuration state is reset at the start of each Meta pass so batch renders do not leak settings between documents. Documents the JSON export schema and the new filtering options in the README and example, and bumps the install snippets to 1.5.0.
Defer version bumps in _extension.yml, README install snippet, and example.qmd install snippet to the release workflow, matching repo convention. Move the new CHANGELOG entries under '## Unreleased' and drop the duplicate docs bullet that was already captured under the '### Documentation' subsection.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
json-includewhitelist of dot-separated paths to keep in the JSON export.json-excludeblacklist of dot-separated paths to drop from the JSON export.json-exclude-sensitive(defaulttrue) which redacts host filesystem paths:quarto.doc.input_file,quarto.doc.output_file,quarto.project.directory,quarto.project.output_directory,pandoc.PANDOC_SCRIPT_FILE.json-warn-on-server(defaulttrue) which emits a warning when JSON export is enabled in a detected CI or server context (CI,GITHUB_ACTIONS,GITLAB_CI,CIRCLECI,TRAVIS,JENKINS_URL,BUILDKITE,TF_BUILD).jsontoggle now accepts raw Lua booleans, PandocMetaBool, and the strings'true'/'false'(case-insensitive), replacing the brittle string comparison.Metapass to prevent cross-document leakage in batch renders._extension.ymlto1.5.0.