count link + prompt lines for gutter width
This commit is contained in:
parent
a90327bcc0
commit
b24735c74c
|
@ -132,7 +132,7 @@ func parseGemtextDoc(body []byte, softWrap int) (string, []Link, error) {
|
|||
|
||||
links := 0
|
||||
for _, item := range gemdoc {
|
||||
if item.Type() == gemtext.LineTypeLink {
|
||||
if item.Type() == gemtext.LineTypeLink || item.Type() == gemtext.LineTypePrompt {
|
||||
links += 1
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue