blob: 072aa3ccd28d99b71b40c977c1e15e0ff5b3bb0b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
package lightgallery
import (
"time"
"github.com/yuin/goldmark/ast"
)
// LightGalleryBlock represents a light gallery block in the AST
type LightGalleryBlock struct {
ast.BaseBlock
Images []LightGalleryImage
Location *time.Location
}
type LightGalleryImage struct {
URL string
Caption string
}
var KindLightGalleryBlock = ast.NewNodeKind("LightGalleryBlock")
// Dump implements ast.Node.Dump
func (n *LightGalleryBlock) Dump(source []byte, level int) {
ast.DumpHelper(n, source, level, nil, nil)
}
// Kind implements ast.Node.Kind
func (n *LightGalleryBlock) Kind() ast.NodeKind {
return KindLightGalleryBlock
}
|