javalent / admonitions

Adds admonition block-styled content to Obsidian.md
MIT License
1.08k stars 71 forks source link

[Bug] MS Doc Syntax Admonitions seems to be broken (LP & Reading) #212

Closed I-Pch closed 2 years ago

I-Pch commented 2 years ago

Hi there 😊 !

So, last night Obsidian was updated from v 0.13.31 to v 0.13.32 and since then, MS Doc Syntax Admonitions (>) seem to be really buggy 😔 ...

I've created 2 customs admonitions for my daily notes which I used for a while now without troubles... I use both of them as MS Doc Syntax Admonitions with no title and no type...

E.g.: my "nav" admonition

Nav1

The "nav" admonition has these settings

Nav2

Which was looking like this (I had to use a code block admonition to be able to take the screenshot below)

Nav3

Using this markdown

> [!nav:  ]
> :fas_home:  [[Periodic Notes#Periodic Notes|Periodic Notes]] ≻ [[2022#2022|2022]] ≻ [[2022-Q1#2022-Q1|Q1]] ≻ [[2022-03#2022-03|3 ・ Mar]] ≻ [[2022-W10#2022-W10|W 10]]
> 
> :fas_map_signs:  ⪻ [[2022-03-09#2022-03-09|2022-03-09]] ・✵・ [[2022-03-11#2022-03-11|2022-03-11]] ⪼
> 
> |||||||
> |:-:|:--|--:|:--|--:|:--|
> | :fas_calendar: | [[2022#2022\|2022]] | :ril_hashtag: :fas_calendar_day: | [[2022-03-10#2022-03-10\|069]] ⦗/ 365 ⦘ | :ril_percent: :fas_calendar: | <progress value="0.189" max="1"></progress> 18.9% |
> | :fas_calendar_alt: | [[2022-Q1#2022-Q1\|Q1]] | :ril_hashtag: :fas_calendar_day: | [[2022-03-10#2022-03-10\|69]] ⦗/ 90 ⦘ | :ril_percent: :fas_calendar_alt: | <progress value="0.7667" max="1"></progress> 76.67% |
> | :fas_calendar_alt: | [[2022-03#2022-03\|3 ・ Mar]] | :ril_hashtag: :fas_calendar_day: | [[2022-03-10#2022-03-10\|10]] ⦗/ 31 ⦘ | :ril_percent: :fas_calendar_alt: | <progress value="0.3226" max="1"></progress> 32.26% |
> | :fas_calendar_week: | [[2022-W10#2022-W10\|W 10]] | :ril_hashtag: :fas_calendar_day: | [[2022-03-10#2022-03-10\|4 ・ Thursday]] | :ril_percent: :fas_calendar_week: | <progress value="0.5714" max="1"></progress> 57.14% |

I first thought it was because of the 2 spaces I used after the colon to be able to not display the icon + type but when I try with only one space after the colon, my admonition appears twice in LP 🤔 (with the wrong color and icon)

Nav4

With only one space after the colon, the ghost admonition disappears but it's still not rendered as it should in LP & Reading mode...

Nav5

And if I add a title, the admonition still doesn't work (it still displays the type, the colon and the title (which get transformed to a full lower case title) with the wrong color)

Nav6

I thought that maybe it was because it's a custom admonition but I get similar results with a classical Quote one 😔 ...

Quote

It's like when trying to either add a title or not displaying one (i.e.: using a colon with the admonition's type) the plugin doesn't seem to recognise the admonition and displays a "default" one (apparently the notes admonition) 😔.

And I insist (😇): everything was working perfectly yesterday morning, before the last update of Obsidian 🤔 ...

I'm on Mac + Obsidian 0.13.32 + Admonition 7.0.4 (Default Obsidian Dark Theme & just 1 CSS Snippet for the progress bar)

I-Pch commented 2 years ago

Seems to be back to normal after Obsidian was updated from v0.13.32 to v0.13.33 🎉 😁 !