-
Notifications
You must be signed in to change notification settings - Fork 146
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
How to achieve incremental bullets? #36
Comments
Thanks for opening the issue. The bullet showing before the content is a
known issue definitely needs to be fixed. It might take me a few days to
get to it. In the meantime you could try the Markdown shortcode or raw HTML
and do it the Reveal.js way.
https://github.com/hakimel/reveal.js/blob/master/README.md#fragments
Le mar. 21 mai 2019 à 18:28, Carlos Cámara <[email protected]> a
écrit :
… I am wondering if there is a way to achieve incremental bullets
functionality.
I know we can use fragments in either verbose or compact notation, but
both of them parse the * character used for bullets as a character, not a
bullet. On the other hand, if I put the bullet outside the fragment, the
bullet point gets rendered even though its content is not yet visible.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#36>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AABKVOLKKH5M3C5QI4QMA7DPWQPKZANCNFSM4HOMXK2A>
.
|
Ok, thank you. Yes, it was my intention to use this workaround, but I was wondering if there was a native reveal-hugo way to do it. |
Would love to see this feature as well. My current workaround might be useful to others:
|
@mtlynch 's solution didn't work for me on the latest Hugo (though in hindsight, it might be due to the change in how the delimiters work; it's possible that using Regardless, I still find that to be a clunky workaround, so I fiddled around with a new shortcode and came up with this:
Which is then used like this:
The advantage to this is that it's more succinct (no individual fragment items), more semantic (puts the fragment class on the list items, instead of on a wrapper span), and includes the bullets. (Note: using the It could be improved by taking an option for the list type and not totally blowing up on nested lists. I will probably end up resolving the latter before too long, as I'm actively dealing with this for a presentation I need this week, and I might deal with the former at some point, just because I'm a completionist. It's a quick and dirty first draft, though. |
Nested lists are proving to be more of an endeavor than I had anticipated, so I won't be able to get to it at the moment, but perhaps someone could pick up from here. My initial thought was to just nest the lists with nested shortcodes:
That...technically....kind of....works....in the sense that it does create the sublist and doesn't totally blow up. However, it puts the sublist into its own list item, kind of like this:
when it should be this:
This results in double-bullets and I think an extra bullet (I don't feel like testing it again right now -- I already feel like I'm going cross-eyed from this presentation -- but IIRC, it put the opening UL into its own LI tag and the rest of the sublist into its own, too). Whatever the rendering details, it's very much incorrect, but it's somewhat close. I just don't really know how to get it over the finish line at the moment, and I have a sneaking suspicion there might be a cleaner way to do this and I just don't know what that is (perhaps the answer to his will help with how to handle definition lists...). |
For those who want to use no shortcodes and don't care if the whole presentation has incremental bullets:
Would love to be able to toggle it with a config option, so you can set it via the front-matter, but I can't get it to work.
Tried adding this if-Block around it, but then it doesn't work any more. I'm new to hugo, so maybe someone can help me :) |
You might simulate the wanted result by using hugo goldmark attributes and some inline styles: in your [markup.goldmark.parser.attribute]
block = true Then in your markdown - One
{ class="fragment" style="display: list-item"}
- Two
{ class="fragment" style="display: list-item"}
- Three
{ class="fragment" style="display: list-item"} The |
I am wondering if there is a way to achieve incremental bullets functionality.
I know we can use fragments in either verbose or compact notation, but both of them parse the
*
character used for bullets as a character, not a bullet. On the other hand, if I put the bullet outside the fragment, the bullet point gets rendered even though its content is not yet visible.The text was updated successfully, but these errors were encountered: