Skip to content
Discussion options

You must be logged in to vote

Hello,

first of all a big thank you to @mcanouil for analyzing the situation!

After looking deeper into my code I saw that the old format of the args argument (until Quarto 1.3) was only used a few times in my shortcode code.

So I found a way to keep compatibility to older Quarto versions by applying conditionals like so

if (quarto.version < '1.4.0' ) then
    if a[1].format then
        if a[1].format == 'tex' then
            val = a[1].text
        end    
    end
end

and using the new argument format that came with Quarto version 1.4.

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@mcanouil
Comment options

@mcanouil
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by mcanouil
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
needs-repro Issues that are blocked until reporter provides an adequate reproduction lua Issues related to the lua codebase, filter chain, etc shortcodes issues related to shortcodes
2 participants