javalent / admonitions

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

Microsoft syntax not working for indented items? #207

Closed fgimian closed 2 years ago

fgimian commented 2 years ago

Hey there folks, thanks so much for this wonderful extension. I've discovered one little issue with the Microsoft syntax.

Given this Markdown:

Hello there, let's test the Microsoft syntax:

```ad-note
This is a code block note that's not intended, it works well!

[!note] This is a Microsoft note that's not indented, it works great!

OK, now let's get into a list:

  1. This is the first item

    This is a code block note that's indented, it still works!
  2. This is the second item

    [!note] This is a Microsoft note that's indented, it's busted :()

  3. And another

The output is as follows:

image

As you can see, the Microsoft syntax doesn't seem to work on indented notes. I've used a 4 space indent for this file.

Any ideas? Fotis

valentine195 commented 2 years ago

Obsidian has added MSDoc-syntax callouts to the insider build as a core feature. I am tagging this as wontfix.