mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-16 14:40:12 +01:00
🎨 Enable or disable all CSS and JS code snippets https://github.com/siyuan-note/siyuan/issues/9860
This commit is contained in:
parent
5bf45bfde2
commit
81780c81c8
3 changed files with 18 additions and 1 deletions
|
|
@ -16,6 +16,18 @@
|
|||
|
||||
package conf
|
||||
|
||||
type Snpt struct {
|
||||
EnabledCSS bool `json:"enabledCSS"`
|
||||
EnabledJS bool `json:"enabledJS"`
|
||||
}
|
||||
|
||||
func NewSnpt() *Snpt {
|
||||
return &Snpt{
|
||||
EnabledCSS: true,
|
||||
EnabledJS: true,
|
||||
}
|
||||
}
|
||||
|
||||
type Snippet struct {
|
||||
ID string `json:"id"`
|
||||
Name string `json:"name"`
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue