You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The auto-generated ID of #1-section-1 is not a valid querySelector and throws an error when selected in the sidebar (in src/Home.vue#jumpToHash). So it needs to be quoted, e.g.
(NOTE: CSS.escape will cover more cases, but the MDN compatibility matrix shows some notable holes, e.g. Safari on IOS, and the generated hash avoid most other issues anyway as far as I can tell)
Alternatively, a more robust hash could be generated in this situation. Or as a workaround, just never start a section heading with a number :-)
The text was updated successfully, but these errors were encountered:
If a section heading starts with a number, e.g.
## 1. Section 1
The auto-generated ID of
#1-section-1
is not a valid querySelector and throws an error when selected in the sidebar (in src/Home.vue#jumpToHash). So it needs to be quoted, e.g.(NOTE: CSS.escape will cover more cases, but the MDN compatibility matrix shows some notable holes, e.g. Safari on IOS, and the generated hash avoid most other issues anyway as far as I can tell)
Alternatively, a more robust hash could be generated in this situation. Or as a workaround, just never start a section heading with a number :-)
The text was updated successfully, but these errors were encountered: