Having separate image sets requires hand-authoring the gallery ID.
Possible Solution
In the most general sense, allow the gallery option to take a Union[Callable,str] and if it's a Callable, call the function (but only at the start of the element render). Then provide a usable function like autoincrement that just provides an auto-incrementing gallery ID (as this doesn't have to be stable across pageviews, it just needs to be unique per lightbox on any given page).
Expected Behavior
Provide some mechanism for allowing each image set to have its own unique gallery ID. For example, if you have an entry like:
the resulting HTML would be something like:
Current Behavior
Having separate image sets requires hand-authoring the gallery ID.
Possible Solution
In the most general sense, allow the
gallery
option to take aUnion[Callable,str]
and if it's a Callable, call the function (but only at the start of the element render). Then provide a usable function likeautoincrement
that just provides an auto-incrementing gallery ID (as this doesn't have to be stable across pageviews, it just needs to be unique per lightbox on any given page).Steps to Reproduce (for bugs)
1. 2. 3. 4.
Context