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

Apply [.step] to something that is not a list #347

Closed
slonopotamus opened this issue Feb 20, 2020 · 6 comments
Closed

Apply [.step] to something that is not a list #347

slonopotamus opened this issue Feb 20, 2020 · 6 comments

Comments

@slonopotamus
Copy link
Contributor

I would like to reveal several sentences one-by-one.

There's a nice [.step] feature that does exactly that. But I cannot figure out what should be the syntax if I want to apply it to something that is not a list.

The best thing I could invent is:

= Title
:revealjsdir: https://cdn.jsdelivr.net/npm/[email protected]

== !

[.step]
--
One

Two
--

But this way, both sentences are immediately shown when you open the slide.

This also doesn't work:

= Title
:revealjsdir: https://cdn.jsdelivr.net/npm/[email protected]

== !

--
[.step]
One

[.step]
Two
--

I'm not sure, but this issue could be a duplicate of #140

@slonopotamus
Copy link
Contributor Author

slonopotamus commented Feb 25, 2020

Okay, it is possible:

= Title
:revealjsdir: https://cdn.jsdelivr.net/npm/[email protected]

== !

[.fragment]
--
One
--

[.fragment]
--
Two
--

@ggrossetie
Copy link
Member

Do you want to document this feature here: https://github.com/asciidoctor/asciidoctor-reveal.js#fragments?
I think it would be simplified right?

= Title
:revealjsdir: https://cdn.jsdelivr.net/npm/[email protected]

== !

[.fragment]
One

[.fragment]
Two

@slonopotamus
Copy link
Contributor Author

Oh, I completely forgot about this issue. Yeah, I believe documentation needs to cover this topic.

@ggrossetie
Copy link
Member

Let's do that once the migration to Antora is completed.

@slonopotamus
Copy link
Contributor Author

I am actually going to close this as a duplicate of #140.

@ggrossetie
Copy link
Member

Thanks, I wasn't aware of #140! 👍

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

No branches or pull requests

3 participants