@@ -267,8 +267,9 @@ public struct MarkupFormatter: MarkupWalker {
267
267
- emphasisMarker: The character to use for emphasis and strong emphasis markers.
268
268
- condenseAutolinks: Print links whose link text and destination match as autolinks, e.g. `<https://swift.org>`.
269
269
- preferredHeadingStyle: The preferred heading style.
270
- - lineLimit : The preferred maximum line length and method for splitting ``Text`` elements in an attempt to maintain that line length.
270
+ - preferredLineLimit : The preferred maximum line length and method for splitting ``Text`` elements in an attempt to maintain that line length.
271
271
- customLinePrefix: An addition prefix to print at the start of each line, useful for adding documentation comment markers.
272
+ - doxygenCommandPrefix: The command command prefix, which defaults to ``DoxygenCommandPrefix/backslash``.
272
273
*/
273
274
public init ( unorderedListMarker: UnorderedListMarker = . dash,
274
275
orderedListNumerals: OrderedListNumerals = . allSame( 1 ) ,
@@ -345,7 +346,7 @@ public struct MarkupFormatter: MarkupWalker {
345
346
/// The length of the last line.
346
347
var lastLineLength = 0
347
348
348
- /// The line number of the most recently printed content.
349
+ /// The line number of the most recently printed content.
349
350
///
350
351
/// This is updated in `addressPendingNewlines(for:)` when line breaks are printed.
351
352
var lineNumber = 0
@@ -543,7 +544,7 @@ public struct MarkupFormatter: MarkupWalker {
543
544
state. currentLength += prefix. count
544
545
state. lastLineLength += prefix. count
545
546
}
546
-
547
+
547
548
result += rawText
548
549
state. currentLength += rawText. count
549
550
state. lastLineLength += rawText. count
@@ -734,7 +735,7 @@ public struct MarkupFormatter: MarkupWalker {
734
735
}
735
736
descendInto ( listItem)
736
737
}
737
-
738
+
738
739
public mutating func visitHeading( _ heading: Heading ) {
739
740
if heading. indexInParent > 0 {
740
741
ensurePrecedingNewlineCount ( atLeast: 2 )
@@ -1153,7 +1154,7 @@ public struct MarkupFormatter: MarkupWalker {
1153
1154
print ( attributes. attributes, for: attributes)
1154
1155
print ( " ) " , for: attributes)
1155
1156
}
1156
-
1157
+
1157
1158
printInlineAttributes ( )
1158
1159
1159
1160
// Inline attributes *can* have their key-value pairs split across multiple
0 commit comments