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

[WIP] Use jog to as the traversal method in filters #11540

Draft
wants to merge 32 commits into
base: main
Choose a base branch
from

Conversation

tarleb
Copy link
Collaborator

@tarleb tarleb commented Nov 26, 2024

Use jog instead of walk.

This behaves mostly like the built-in `assert`, but respects the general
Quarto scaffolding.
This also fixes unwanted behavior of `as_blocks`, which would treat a
list of Inline elements as a list of singleton Plain elements, leading
to bad results.
This also fixes unwanted behavior of `as_blocks`, which would treat a
list of Inline elements as a list of singleton Plain elements, leading
to bad results.
This allows to get reproducible output when running the filter multiple
times.
If the metadata object is modified in a filter, then it should be
returned, as otherwise the changes might be lost.
The `long` field of a caption can never be nil, but it can be an empty
list.
Jog can be enable on a per-filter basis by setting the `traverse` field
to `jog`.
The exception is `normalize-combine-2`, which causes test failures when
using `jog`.
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

Successfully merging this pull request may close these issues.

1 participant