-
Notifications
You must be signed in to change notification settings - Fork 14
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
Figure identifiers must be lowercase, no spaces, etc, for scroll-to-lightbox-slide to work #869
Comments
Thank you, @cbutcosk, for bringing this to our attention and noting the discrepancy in the documentation. We'll take a closer look and keep you updated. |
Hi @cbutcosk I was able to recreate these errors via testing and actually couldn't even get the preview to work. I noticed the documentation is particularly wrong, as it features examples using periods! So it appears I will absolutely update the documentation to clarify. Can you see any reason why we should push to make |
@Erin-Cecele Great, thanks for updating! You can close this issue for now I think--although updating the code to be more flexible around figure id constraints would be a nice to have ("structure your ids so they're document query selectors" is... weird) it's downstream of some other gotta-fix-that's in the quire runtime. |
Thanks @cbutcosk. Ideally, Quire's handling of As a side note, we also discovered that Quire is converting any |
We are backlogging this issue as we eventually need to determine what subset of valid |
@Erin-Cecele Hah just the issue I mean. On the one hand whatever bugs that relaxing the slugifying of ids introduces need fixed and on the other hand / as a result the js runtime needs some event handling cleanup and more pub data intelligence so it does less direct |
Before proceeding, make sure there isn’t an existing issue for this bug.
Expected Behavior
Adding images to
figures.yaml
that have uppercase letters, periods, or underscores I expect clicking on an image in the essay to still bring up that figure's slide in the lightbox modal.Or, if that's not going to work I expect it to break on build and tell me why. And I expect any constraints on figure identifiers to be documented. :)
Actual Behavior
The figures are processed fine and appear in the essay but clicking on a figure brings you to the start of the lightbox rather than the slide of the figure you clicked. The only way I was able to get the spec data below to build was to replace figure identifiers' uppercase chars with lowercase and all periods /
.
with dashes (underscores as replacements did not work).Note that the quire docs use a lot of figures with '.' in them!
Steps to Reproduce
With this drawn-from-real data:
Version Numbers
[CLI] Command 'info' called with options { debug: true }
[test-latest]
quire-cli 1.0.0-rc.10
quire-11ty 1.0.0-rc.14
starter https://github.com/thegetty/[email protected]
[System]
quire-cli 1.0.0-rc.10
node v18.17.0
npm 9.6.7
os Darwin 22.6.0
Web Browser
Platform: macOS, chrome: latest, safari: 17.0
Relevant Terminal/Shell Output
No response
Supporting Information
No response
The text was updated successfully, but these errors were encountered: