We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 35e0768 commit fca1a53Copy full SHA for fca1a53
1 file changed
Sources/MarkdownToAttributedString/MarkdownElementAttribute.swift
@@ -305,7 +305,10 @@ public extension StringAttrs {
305
306
// Returns true of the attrs includes a container block element.
307
var hasContainerBlock: Bool {
308
- return hasMarkdownElementType(.orderedList) || hasMarkdownElementType(.unorderedList) || hasMarkdownElementType(.codeBlock)
+ return hasMarkdownElementType(.orderedList)
309
+ || hasMarkdownElementType(.unorderedList)
310
+ || hasMarkdownElementType(.listItem)
311
+ || hasMarkdownElementType(.codeBlock)
312
}
313
314
func markdownElementAttrForElementType(_ elementType: MarkupType) -> MarkdownElementAttribute? {
0 commit comments