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

diagram filter should transfer class and style attributes #214

Open
PeterSommerlad opened this issue Jan 13, 2022 · 0 comments
Open

diagram filter should transfer class and style attributes #214

PeterSommerlad opened this issue Jan 13, 2022 · 0 comments

Comments

@PeterSommerlad
Copy link

I made the following addition:

        -- Now, transfer the attribute "name" from the code block to the new
        -- image block. It might gets used by the figure numbering lua filter.
        -- If the figure numbering gets not used, this additional attribute
        -- gets ignored as well.
        if block.attributes["name"] then
            imgObj.attributes["name"] = block.attributes["name"]
        end
    
        if block.attributes["style"] then
            imgObj.attributes["style"] = block.attributes["style"]
        end
        if block.attributes["class"] then
            imgObj.attributes["class"] = block.attributes["class"]
        end
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

No branches or pull requests

1 participant