Skip to content
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

Lineblock attributes not parsed correctly #35

Open
andrewpbray opened this issue Jun 14, 2024 · 0 comments
Open

Lineblock attributes not parsed correctly #35

andrewpbray opened this issue Jun 14, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@andrewpbray
Copy link
Contributor

A lineblock specified like the following reads in just fine:

| {#something .cr-poem cr-id="mylimerick" myattr="true"}
| The limerick packs [laughs anatomical]{#cr-laughs}
|   In space that is quite economical.

However this one,

| {cr-id="mylimerick"}
| The limerick packs [laughs anatomical]{#cr-laughs}
|   In space that is quite economical.

Throws an error in the console: TypeError: Cannot read properties of undefined (reading 'classList') that occurs here.

focusedSticky.classList.add("cr-active");

Check the Lua script - may need to add an empty classlist to line blocks.

@andrewpbray andrewpbray added the bug Something isn't working label Jun 14, 2024
@andrewpbray andrewpbray self-assigned this Jun 14, 2024
@andrewpbray andrewpbray added this to the post-positconf-24 milestone Aug 5, 2024
@andrewpbray andrewpbray removed this from the post-positconf-24 milestone Sep 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant