Add minimal affiliated keyword support. Just captions for now

This commit is contained in:
Niklas Fasching 2018-12-03 19:18:25 +01:00
parent 2399fec2eb
commit 043095e672
7 changed files with 138 additions and 8 deletions

View file

@ -17,3 +17,10 @@ func isEmptyLineParagraph(n Node) bool {
}
return false
}
func isImageOrVideoLink(n Node) bool {
if l, ok := n.(RegularLink); ok && l.Kind() == "video" || l.Kind() == "image" {
return true
}
return false
}