count link + prompt lines for gutter width

This commit is contained in:
tjp 2024-01-08 11:10:36 -07:00
parent a90327bcc0
commit b24735c74c
1 changed files with 1 additions and 1 deletions

View File

@ -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
}
}