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

[feat] ::: info 支持自定义标题 #83

Open
NipGeihou opened this issue Oct 21, 2024 · 2 comments
Open

[feat] ::: info 支持自定义标题 #83

NipGeihou opened this issue Oct 21, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@NipGeihou
Copy link

我是一个obsidian新手,正在尝试使用obsidian来管理基于vuepress的博客内容,通过Any Block插件后文章中的vuepress“自定义容器”正常显示,但如果使用了自定义标题则会丢失了样式。

正常显示:

::: tip
这是一个提示
:::

无法正常显示:

::: danger STOP
危险区域,禁止通行
:::

Markdown Extensions | VuePress

@LincZero
Copy link
Collaborator

LincZero commented Oct 21, 2024

未支持,可以支持

在未支持之前,这里给点临时方案:

callout/alert语法

obsidian人惯用的callout/alert语法:

(obsidian的人一般都是用这种语法的。可以在vuepress中安装mdit插件 markdown-it-obsidian-callout 以在vuepress中支持该语法)

Note

例如这样

> [!note] title
> content

使用引用块处理器

::: add([!note] title)|quote
content
:::

@LincZero LincZero added the enhancement New feature or request label Oct 21, 2024
@LincZero LincZero changed the title ::: info可以显示自定义标题吗 [feat] ::: info支持自定义标题 Oct 21, 2024
@LincZero LincZero changed the title [feat] ::: info支持自定义标题 [feat] ::: info支持自定义标题 Oct 21, 2024
@LincZero LincZero changed the title [feat] ::: info支持自定义标题 [feat] ::: info 支持自定义标题 Oct 21, 2024
@NipGeihou
Copy link
Author

未支持,可以支持

在未支持之前,这里给点临时方案:

callout/alert语法

obsidian人惯用的callout/alert语法:

(obsidian的人一般都是用这种语法的。可以在vuepress中安装mdit插件 markdown-it-obsidian-callout 以在vuepress中支持该语法)

Note

例如这样

> [!note] title
> content

使用引用块处理器

::: add([!note] title)|quote
content
:::

感谢您的临时方案,已安装markdown-it-obsidian-callout在新的文章中使用,效果很棒,同时期待对::: info title的支持,使得在旧文章也能正常显示。

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
None yet
Development

No branches or pull requests

2 participants