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] 隐藏代码块标题 | Hide block title #462

Closed
Ryaang opened this issue Jul 22, 2024 · 3 comments
Closed

[FEATURE] 隐藏代码块标题 | Hide block title #462

Ryaang opened this issue Jul 22, 2024 · 3 comments
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@Ryaang
Copy link
Member

Ryaang commented Jul 22, 2024

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

希望可以自定义配置隐藏代码块的标题,否则大量代码堆积看起来有点乱


I hope to customize the title of the hidden code block, otherwise a large number of code stacks will look a bit messy, reference effect

image

Useful reference 有价值的参考

参考效果

@Ryaang Ryaang added the enhancement New feature or request label Jul 22, 2024
@Lruihao
Copy link
Member

Lruihao commented Jul 22, 2024

好想法👍,将在即将发布的 v0.3.9 加上这个功能。

在以往版本中,如果想隐藏代码块标题,可以使用 markdown 得代码块缩进语法,即代码块整体缩进4个空格而不使用 ``` 包裹。

@Lruihao Lruihao self-assigned this Jul 22, 2024
@Lruihao Lruihao added this to the v0.3.x milestone Jul 22, 2024
@Lruihao
Copy link
Member

Lruihao commented Jul 24, 2024

page.code.enable=false 时不显示代码块 header (复制编辑等功能同时关闭)

[params.page.code]
  enable = false
image

@Lruihao
Copy link
Member

Lruihao commented Jul 24, 2024

  • 额外增加针对单个代码块的参数
image

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

No branches or pull requests

2 participants