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

data-fragment-index are not correctly rendered on code blocks #532

Closed
jtama opened this issue Apr 29, 2024 · 0 comments
Closed

data-fragment-index are not correctly rendered on code blocks #532

jtama opened this issue Apr 29, 2024 · 0 comments

Comments

@jtama
Copy link
Contributor

jtama commented Apr 29, 2024

Hi,
I want to synchronized step-by-step syntax highlighting and fragments block on a slide.

For this I used the following :

[.fragment, java, highlight="1|3|5", step=0]
----
Optional<String> foo();

Optional<String> bar();

Optional<String> foobar();
----

[.fragment,data-fragment-index=0]
Foo
[.fragment,data-fragment-index=1]
Bar
[.fragment,data-fragment-index=2]
Foobar

But that doesn't work because of how code block are rendered (the attribute is assigned on the div .listingblock element.

I have a workaround for this and will make a PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant