dillonzq / LoveIt

❤️A clean, elegant but advanced blog theme for Hugo 一个简洁、优雅且高效的 Hugo 主题
https://hugoloveit.com
MIT License
3.38k stars 1.07k forks source link

[FEATURE] Add support for simpler admonition sytax #879

Open HCPlantern opened 1 month ago

HCPlantern commented 1 month ago

Describe the feature you want 描述你的功能需求

希望能够简化 admonition 的语法,或者提供另一个语法选择。

现在的语法:

{{< admonition tip "This is a tip" false >}}
一个 **技巧** 横幅
{{< /admonition >}}

希望能够提供的语法:

> [!tip]- This is a tip
> 一个 **技巧** 横幅

Useful reference 有价值的参考

可以参考 Obsidian 的 callout 语法:https://help.obsidian.md/Editing+and+formatting/Callouts

Github 目前也已支持这种语法,见 https://github.com/orgs/community/discussions/16925