summaryrefslogtreecommitdiffstats
path: root/vendor/github.com/gomarkdown/markdown/ast/node.go
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/github.com/gomarkdown/markdown/ast/node.go')
-rw-r--r--vendor/github.com/gomarkdown/markdown/ast/node.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/vendor/github.com/gomarkdown/markdown/ast/node.go b/vendor/github.com/gomarkdown/markdown/ast/node.go
index 1d558dd3..8f802db8 100644
--- a/vendor/github.com/gomarkdown/markdown/ast/node.go
+++ b/vendor/github.com/gomarkdown/markdown/ast/node.go
@@ -92,6 +92,12 @@ type Container struct {
*Attribute // Block level attribute
}
+// return true if can contain children of a given node type
+// used by custom nodes to over-ride logic in canNodeContain
+type CanContain interface {
+ CanContain(Node) bool
+}
+
// AsContainer returns itself as *Container
func (c *Container) AsContainer() *Container {
return c