Skip to content

Commit e90f539

Browse files
committed
fix(submit): clarify comment about non-list block element check
Explain why `isBlockElement` is reached only for non-list elements: lists are detected and accumulated earlier via `isListItem`.
1 parent a6b3f18 commit e90f539

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

cmd/submit.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -693,7 +693,8 @@ func unwrapParagraphs(text string) string {
693693
continue
694694
}
695695

696-
// Non-list block elements (headers, blockquotes, rules, tables)
696+
// Non-list block elements (headers, blockquotes, rules, tables). Lists
697+
// are handled above via isListItem so they accumulate continuations.
697698
if isBlockElement(trimmed) {
698699
flushParagraph()
699700
result = append(result, line)

0 commit comments

Comments
 (0)