Open jbarratt opened 10 years ago
This could be an option... half-way, but probably more quick than a full implementation...
Ok. Architecturally could this be done as an extension or would it need to be injected more directly into the slide rendering pipeline?
The slide rendering pipeline is in charge of reveal.js, so probably you have to touch the reveal source... or write a reveal plugin... The other option, I personally would follow, is essentially work with the reveal preprocessor as a model, be able to detect the HTML comment, and later pass this info to a custom template... and pack all these things inside an extension.
Reveal.js supports setting
data-background
attributes on the<section>
elements;data-background
,data-background-size
, anddata-background-repeat
.One idea I had was to add a generic attribute-management capability via HTML comments, as they are ignored by markdown, directly in the slide, like so:
Then the slide renderer could pick anything attribute-shaped and stick it into the
section
tag.