🎨 Add field disabledInPublish to the code snippet to indicate whether it is disabled in the publish service https://github.com/siyuan-note/siyuan/issues/15806

Signed-off-by: Daniel <845765@qq.com>
This commit is contained in:
Daniel 2025-09-09 09:18:12 +08:00
parent 2f70ef43a1
commit 93422c134d
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
5 changed files with 23 additions and 7 deletions

View file

@ -29,9 +29,10 @@ func NewSnpt() *Snpt {
}
type Snippet struct {
ID string `json:"id"`
Name string `json:"name"`
Type string `json:"type"` // js/css
Enabled bool `json:"enabled"`
Content string `json:"content"`
ID string `json:"id"`
Name string `json:"name"`
Type string `json:"type"` // js/css
Enabled bool `json:"enabled"`
DisabledInPublish bool `json:"disabledInPublish"`
Content string `json:"content"`
}