Pages or directories at the root level that start with a number break the pdf generation
geealbers opened this issue · 3 comments
Before proceeding, check to make sure there isn’t an existing issue for this bug.
- I have searched the existing issues and determined this is a new bug.
Steps to reproduce
- Start a new project
- Rename a directory and/or a markdown file in the
content
directory so that it starts with a number (0–9). - run
quire build
and thenquire pdf
Actual behavior
An error is thrown and the pdf is not generated
Error: Evaluation failed: DOMException: Failed to execute 'querySelector' on 'Element': '#10-intro' is not a valid selector.
Expected behavior
The PDF would generate and no error would be thrown.
Sub-directories and markdown pages within directories can have file names that start with numbers and not break the PDF. So the actual behavior is inconsistent. It's also problematic that the error doesn't happen until the user tries to generate the PDF as this is often late into the development process. Also that the error messaging isn't helpful unless one happens to know id
selectors can't start with numbers.
Version numbers
macOS Ventura 13.2.1 (22D68)
Node 18.16.0
Quire CLI 1.0.0-rc.7
Quire 11ty 1.0.0-rc.10
What browsers are you seeing the problem on?
No response
Relevant Terminal/Shell output
No response
Supporting Information
No response
We have confirmed that the reported issue is a bug. It has been added to our development queue. Stay tuned for updates.
Our developers are currently working on this issue. Please check back for updates.
This was fixed in PR #808. Issue is now closed.