Skip to content

removing images from epub for typst/pdf conversion #10299

Answered by tarleb
jarnowic asked this question in Q&A
Discussion options

You must be logged in to vote

This Lua filter should do:

funtion Image (img)
    return img.caption
end

It replaces the image with the image caption. One could also use return img.src to use the image path as the placeholder.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by jarnowic
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants