Skip to content
Discussion options

You must be logged in to vote

Oh, I'm sorry, it's not a Quarto bug (whew!), it's a simple copy-paste mistake I made. The correct filter is this, it just needs to increment that counter:

local id = 1
function Callout(callout)
  if callout.attr.identifier ~= "" then
    -- callout already has an id
    return nil
  end
  callout.attr.identifier = "nte-unique" .. tostring(id)
  id = id + 1
  return quarto.Callout(callout)
end

Replies: 4 comments 17 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
10 replies
@cscheid
Comment options

@coatless
Comment options

@cscheid
Comment options

@coatless
Comment options

@coatless
Comment options

Comment options

You must be logged in to vote
7 replies
@cscheid
Comment options

@cscheid
Comment options

@cscheid
Comment options

Answer selected by normansimonr
@cscheid
Comment options

@pglpm
Comment options

@mcanouil
Comment options

@pglpm
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
callouts Issues with Callout Blocks. lua Issues related to the lua codebase, filter chain, etc
5 participants