You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
406 B
20 lines
406 B
5 years ago
|
package org
|
||
|
|
||
|
func isSecondBlankLine(d *Document, i int) bool {
|
||
|
if i-1 <= 0 {
|
||
|
return false
|
||
|
}
|
||
|
t1, t2 := d.tokens[i-1], d.tokens[i]
|
||
|
if t1.kind == "text" && t2.kind == "text" && t1.content == "" && t2.content == "" {
|
||
|
return true
|
||
|
}
|
||
|
return false
|
||
|
}
|
||
|
|
||
|
func isImageOrVideoLink(n Node) bool {
|
||
|
if l, ok := n.(RegularLink); ok && l.Kind() == "video" || l.Kind() == "image" {
|
||
|
return true
|
||
|
}
|
||
|
return false
|
||
|
}
|