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 request] 能不能添加对 Callouts 语法的支持 #203

Closed
alfoil opened this issue Sep 23, 2023 · 10 comments
Closed

[feature request] 能不能添加对 Callouts 语法的支持 #203

alfoil opened this issue Sep 23, 2023 · 10 comments
Labels
enhancement New feature or request

Comments

@alfoil
Copy link

alfoil commented Sep 23, 2023

如题,能不能添加对 Callouts 语法的支持?可以参考 Obsidian 的语法和渲染效果:https://help.obsidian.md/Editing+and+formatting/Callouts

@obgnail obgnail added the enhancement New feature or request label Sep 24, 2023
@obgnail
Copy link
Owner

obgnail commented Sep 25, 2023

@alfoil

新版本已经实现。麻烦试用看看。

@obgnail
Copy link
Owner

obgnail commented Sep 25, 2023

image

数量、类型、颜色、icon 皆可自己定义,请前往配置文件修改:

[[callouts.config.list]]
type = "note"
background_color = "#e1d1eb"
left_line_color = "#6a1b9a"
icon = "\\f040"

@BrazilAmando
Copy link

赞!折叠功能似乎不是很灵敏
image

@obgnail
Copy link
Owner

obgnail commented Sep 25, 2023

目前情况是:fold callout在展开后,不可再折叠回去(除非再次打开此文件)

@obgnail
Copy link
Owner

obgnail commented Sep 25, 2023

@BrazilAmando @alfoil

这个问题已经修复,上到 master,明天会上到新版本。如果急用可以拉一下 master 代码。

@obgnail
Copy link
Owner

obgnail commented Sep 26, 2023

@alfoil @BrazilAmando

已经上线,可以试用看看,有问题麻烦提一下。

@BrazilAmando
Copy link

用的是最新版本,效果实现,不过貌似是通过onmouseover核onmouseout判断折叠隐藏的,不知是否可以实现类似obsidian通过click手动触发折叠隐藏?
image
image
image

@BrazilAmando
Copy link

另外,导出为html文件后,似乎某些样式丢失(如下图中的背景色没了)
image

@obgnail
Copy link
Owner

obgnail commented Sep 29, 2023

@BrazilAmando

fixed

@obgnail
Copy link
Owner

obgnail commented Oct 3, 2023

@BrazilAmando

fixed。如有其他问题,麻烦另开 issue。

@obgnail obgnail closed this as completed Oct 3, 2023
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

3 participants