Skip to content

Use jog to as the traversal method in filters #11540

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

Merged
merged 11 commits into from
Jan 17, 2025

Conversation

tarleb
Copy link
Collaborator

@tarleb tarleb commented Nov 26, 2024

Use jog instead of walk.

@tarleb tarleb force-pushed the jog-as-default branch 4 times, most recently from ba50d2c to 77dab74 Compare November 27, 2024 11:53
@tarleb tarleb marked this pull request as ready for review November 27, 2024 13:13
@tarleb tarleb changed the title [WIP] Use jog to as the traversal method in filters Use jog to as the traversal method in filters Nov 27, 2024
@tarleb
Copy link
Collaborator Author

tarleb commented Dec 6, 2024

The function used to traverse a node is now always stored in the _quarto.traverse field. It defaults to walk, but is set to jog for most filters.

{ name = "normalize-table-merge-raw-html", filter = table_merge_raw_html() },
{ name = "normalize-table-merge-raw-html",
filter = table_merge_raw_html(),
traverse = 'jog',
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

{
  name =...
  traverser = 'pandoc', -- :walk{}
  filter = {
     ...,
     traverse = 'typewise', -- or 'topdown'
  }
}

@cscheid cscheid merged commit 45fc32a into quarto-dev:main Jan 17, 2025
47 checks passed
@tarleb tarleb deleted the jog-as-default branch January 20, 2025 14:06
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.

2 participants