Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEATURE] Add support for simpler admonition sytax #406

Closed
HCPlantern opened this issue Jan 6, 2024 · 5 comments · Fixed by #496
Closed

[FEATURE] Add support for simpler admonition sytax #406

HCPlantern opened this issue Jan 6, 2024 · 5 comments · Fixed by #496
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@HCPlantern
Copy link

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

@HCPlantern HCPlantern added the enhancement New feature or request label Jan 6, 2024
@HCPlantern
Copy link
Author

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

@Lruihao
Copy link
Member

Lruihao commented Aug 15, 2024

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

我有关注到这个,只是一直没有时间来开发这个需求。

@Lruihao
Copy link
Member

Lruihao commented Aug 28, 2024

Hugo 已支持 blockquote render hook,这个需求的实现将变得非常简单。

https://gohugo.io/render-hooks/blockquotes/

@Lruihao Lruihao self-assigned this Aug 28, 2024
@Lruihao Lruihao added this to the v0.3.x milestone Aug 28, 2024
@Lruihao Lruihao moved this from To do to In progress in Roadmap of FixIt Aug 29, 2024
@github-project-automation github-project-automation bot moved this from In progress to Done in Roadmap of FixIt Aug 29, 2024
@Lruihao
Copy link
Member

Lruihao commented Aug 29, 2024

已支持,详见文档 https://fixit.lruihao.cn/documentation/content-management/markdown-syntax/extended/#alerts

@Lruihao
Copy link
Member

Lruihao commented Oct 8, 2024

在 0.3.13 版本支持兼容 Obsidian 的 callout 语法。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

2 participants