javalent / admonitions

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

Feature request: Indentation #176

Closed Calorion closed 2 years ago

Calorion commented 2 years ago

Would it be possible to make Admonition invokable with indents rather than backticks?

valentine195 commented 2 years ago

Actually, maybe. Let me look into it. But I would recommend using the MSDoc syntax.

Calorion commented 2 years ago

Here's the thing though: There's a lot of non-coders who would like to use indents for formatting rather than code blocks. So ideally I'd like the default admonition to be invoked with only an indent, and multiple indents to create nesting.

copeugne commented 2 years ago

I don't think that it is a good idea, I prefer admonition being more specific to invoke, I use tabs for other things. But why not making it optional.

Calorion commented 2 years ago

Oh, definitely it would be an option. Those that like their code blocks will want things as they are. This wouldn't be the default.

valentine195 commented 2 years ago

This can now be done with the Microsoft Document Syntax.

Calorion commented 2 years ago

I'm not sure how this works. Plain indents are still code blocks, not Admonition blocks.

valentine195 commented 2 years ago

This is how you do it:

    [!quote]
    This is an admonition!

Please read through the section I linked to in this comment for the syntax.

Calorion commented 2 years ago

Thanks, but that’s not quite the same thing as the default admonition being able to be invoked with only an indent.