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
I am encountering some occasional problems when using fragments with lists. I am new to Hugo (great work on the theme BTW) so I am not sure if I am missing something or this is a bug.
Take this for example:
# Foo
Foo: bar.
__Foo Bar__: {{% fragment %}} __Foo__ {{% /fragment %}} {{% fragment %}} __Bar__ {{% /fragment %}}
{{% fragment %}}
* Foo
* Bar
{{% /fragment %}}
I would expect the third fragment containing the list to be hidden but it is not (theme is "moon"). Am I missing something, is this a scenario where one should use the reveal markdown processor or use HTML directly?
What about "fragment lists" where each item appears after another. What would be the go-to solution there?
The text was updated successfully, but these errors were encountered:
I tried to reproduce this one but couldn't. When I load a slide with that code on it, the fragment with the list is hidden at first and then appears after advancing forward. Also used moon theme. Do you any additional code or repo you could point me to for testing?
Fragment lists are a challenge with reveal-hugo right now, this is something that should be addressed. The best workaround for now is something like this:
frag is the same as fragment, just a more terse way to write it (fragment should work too though). The downside is that you'll see the empty bullets, I couldn't figure out a way to get rid of those (other than adding CSS/JS). Another workaround would be a write the slide with the Reveal.js markdown until reveal-hugo supports this better.
I tried making a small repro case (does not include the theme directory but it was the most recent version of the repo). Maybe you can check if this reproduces for you using this: Repro
It seems not to happen consistently. I`ve also seen the syntax work as you describe while experimenting around but with this it happens to consistently on my machine.
Okay those are two viable work-arounds. Thanks. It would be a great enhancement to have this supported in the theme directly.
I am encountering some occasional problems when using fragments with lists. I am new to Hugo (great work on the theme BTW) so I am not sure if I am missing something or this is a bug.
Take this for example:
The text was updated successfully, but these errors were encountered: