MSzturc / obsidian-advanced-slides

Create markdown-based reveal.js presentations in Obsidian
https://mszturc.github.io/obsidian-advanced-slides/
MIT License
987 stars 82 forks source link

Fragment behavior breaks when using emphasis/bold #232

Open biscotty666 opened 1 year ago

biscotty666 commented 1 year ago

Describe the bug Bold and emphasized text breaks fragment behavior. For example:

__But...__ Then some more text <!-- element class="fragment" -->

The words "Then some more text" is persistent while the word "But" appears in sequence as expected

Samples to Reproduce Steps & Examples to reproduce the behavior: Create a slide/note with the above fragment. Removing the __s around "But" makes it behave normally

Expected behavior A clear and concise description of what you expected to happen. The entire line is treated as a fragment, not just the emphasized text

image

biscotty666 commented 1 year ago

If I wrap the line in a ::: block and apply the "fragment" to the block I can get both the bold and the non-bold text to appear together, which is better, but I'd still like the word "But" to appear, followed by "Then some more text". Adding fragment tags within in block seems to have no effect.

"Then some more text" is no longer persistent:

::: block <!-- element class="fragment" -->
__But...__ Then some more text
:::

But this, which would seem the logical way to reveal "Then some more text" after revealing "But":

::: block <!-- element class="fragment" -->
__But...__ 
Then some more text <!-- element class="fragment" -->
:::

actually makes "Then some more text" persistent again!

I'm still working towards understanding how/where to place these tags.

biscotty666 commented 1 year ago

I guess I'll continue the convo with myself.

The fragment class seems poorly behaved. Any in-line styling breaks a paragraph into parts. So

We need to apply the principles of Zettelkasten using powerful tools such as Obsidian <!-- element class="fragment" -->

reveals the entire sentence but

We need to apply the principles of Zettelkasten using powerful tools such as **Obsidian** <!-- element class="fragment" -->

Applies the fragment class only to **Obsidian** while the rest of the paragraph becomes persistent.

Another oddity. I can get the paragraph to behave properly with

We need to apply the principles of Zettelkasten using powerful tools such as <!-- element class="fragment" -->
<span class="obs-emph">**Obsidian**</span> <!-- element class="fragment" -->

But the <span> styling is then ignored.

Is this project being maintained? I don't see any activity or response to issues for 3 months. I'm not complaining, just would like to know the status of this really cool project.

biscotty666 commented 1 year ago
::: block  <!-- element class="fragment" -->
We need to apply the principles of Zettelkasten using powerful tools such as
<span class="obs-emph">**Obsidian**</span> 
:::

Will make both parts fade in together, but the <span></span> is ignored.

BTW styling of headers seems to be ignored as well.