Skip to content
Discussion options

You must be logged in to vote

Make your function external to your filter and import the Lua module inside your filters.

local utils = require("relative/path-to/file.lua")

source: https://www.lua.org/pil/8.1.html

This being said, I'm not sure to understand why you would make two filters in the first place here while one seems to be enough to handle both cases.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@adamiturabi
Comment options

@mcanouil
Comment options

mcanouil Jul 7, 2025
Collaborator

@cderv
Comment options

cderv Jul 7, 2025
Maintainer

Answer selected by adamiturabi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
extensions relates to Quarto extensions mechanism lua Issues related to the lua codebase, filter chain, etc
3 participants