mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-17 23:20:13 +01:00
🎨 查询嵌入块支持设置是否显示面包屑 https://github.com/siyuan-note/siyuan/issues/6184
This commit is contained in:
parent
82ffe82c81
commit
3bc24f89c5
10 changed files with 62 additions and 35 deletions
|
|
@ -17,14 +17,14 @@
|
|||
package conf
|
||||
|
||||
type Editor struct {
|
||||
FontSize int `json:"fontSize"`
|
||||
FontFamily string `json:"fontFamily"`
|
||||
CodeSyntaxHighlightLineNum bool `json:"codeSyntaxHighlightLineNum"`
|
||||
CodeTabSpaces int `json:"codeTabSpaces"` // 代码块中 Tab 转换空格数,配置为 0 则表示不转换
|
||||
CodeLineWrap bool `json:"codeLineWrap"` // 代码块是否自动折行
|
||||
CodeLigatures bool `json:"codeLigatures"` // 代码块是否连字
|
||||
DisplayBookmarkIcon bool `json:"displayBookmarkIcon"`
|
||||
DisplayNetImgMark bool `json:"displayNetImgMark"`
|
||||
FontSize int `json:"fontSize"` // 字体大小
|
||||
FontFamily string `json:"fontFamily"` // 字体
|
||||
CodeSyntaxHighlightLineNum bool `json:"codeSyntaxHighlightLineNum"` // 代码块是否显示行号
|
||||
CodeTabSpaces int `json:"codeTabSpaces"` // 代码块中 Tab 转换空格数,配置为 0 则表示不转换
|
||||
CodeLineWrap bool `json:"codeLineWrap"` // 代码块是否自动折行
|
||||
CodeLigatures bool `json:"codeLigatures"` // 代码块是否连字
|
||||
DisplayBookmarkIcon bool `json:"displayBookmarkIcon"` // 是否显示书签图标
|
||||
DisplayNetImgMark bool `json:"displayNetImgMark"` // 是否显示网络图片角标
|
||||
GenerateHistoryInterval int `json:"generateHistoryInterval"` // 生成历史时间间隔,单位:分钟
|
||||
HistoryRetentionDays int `json:"historyRetentionDays"` // 历史保留天数
|
||||
Emoji []string `json:"emoji"` // 常用表情
|
||||
|
|
@ -35,6 +35,7 @@ type Editor struct {
|
|||
FullWidth bool `json:"fullWidth"` // 是否使用最大宽度
|
||||
KaTexMacros string `json:"katexMacros"` // KeTex 宏定义
|
||||
ReadOnly bool `json:"readOnly"` // 只读模式
|
||||
EmbedBlockBreadcrumb bool `json:"embedBlockBreadcrumb"` // 嵌入块是否显示面包屑
|
||||
}
|
||||
|
||||
func NewEditor() *Editor {
|
||||
|
|
@ -55,5 +56,6 @@ func NewEditor() *Editor {
|
|||
FullWidth: true,
|
||||
KaTexMacros: "{}",
|
||||
ReadOnly: false,
|
||||
EmbedBlockBreadcrumb: false,
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue