Best way to rebase slideshow backgrounds? #9401
Unanswered
dude-at-RA
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm converting markdown to revealjs html, using
background-image
as an attribute on headers. During the build, we also use therebase_relative_paths
extension for markdown.It looks like rebase_relative_paths only works on images and links. Does anyone have a snazzy way to rebase the paths in attributes as well?
Currently I'm doing this with a few passes of pandoc and a few lua filters that do the following:
background-image
attribute at the Blocks level and add an image below with the same path (pandoc command 1)rebase_relative_paths
extension to adjust the image paths. move the image path back to the header attribute, then remove the added image (pandoc command 2)This works, but I suspect there might be an easier way to do this.
Beta Was this translation helpful? Give feedback.
All reactions