@@ -248,6 +248,7 @@ public struct MarkupFormatter: MarkupWalker {
248248 var thematicBreakCharacter : ThematicBreakCharacter
249249 var thematicBreakLength : UInt
250250 var emphasisMarker : EmphasisMarker
251+ var strongEmphasisMarker : EmphasisMarker
251252 var condenseAutolinks : Bool
252253 var preferredHeadingStyle : PreferredHeadingStyle
253254 var preferredLineLimit : PreferredLineLimit ?
@@ -264,7 +265,8 @@ public struct MarkupFormatter: MarkupWalker {
264265 - defaultCodeBlockLanguage: The default language string to use when code blocks don't have a language and will be printed as fenced code blocks.
265266 - thematicBreakCharacter: The character to use for thematic breaks.
266267 - thematicBreakLength: The length of printed thematic breaks.
267- - emphasisMarker: The character to use for emphasis and strong emphasis markers.
268+ - emphasisMarker: The character to use for emphasis markers.
269+ - strongEmphasisMarker: The character to use for strong emphasis markers.
268270 - condenseAutolinks: Print links whose link text and destination match as autolinks, e.g. `<https://swift.org>`.
269271 - preferredHeadingStyle: The preferred heading style.
270272 - lineLimit: The preferred maximum line length and method for splitting ``Text`` elements in an attempt to maintain that line length.
@@ -277,6 +279,7 @@ public struct MarkupFormatter: MarkupWalker {
277279 thematicBreakCharacter: ThematicBreakCharacter = . dash,
278280 thematicBreakLength: UInt = 5 ,
279281 emphasisMarker: EmphasisMarker = . star,
282+ strongEmphasisMarker: EmphasisMarker = . star,
280283 condenseAutolinks: Bool = true ,
281284 preferredHeadingStyle: PreferredHeadingStyle = . atx,
282285 preferredLineLimit: PreferredLineLimit ? = nil ,
@@ -288,6 +291,7 @@ public struct MarkupFormatter: MarkupWalker {
288291 self . defaultCodeBlockLanguage = defaultCodeBlockLanguage
289292 self . thematicBreakCharacter = thematicBreakCharacter
290293 self . emphasisMarker = emphasisMarker
294+ self . strongEmphasisMarker = strongEmphasisMarker
291295 self . condenseAutolinks = condenseAutolinks
292296 self . preferredHeadingStyle = preferredHeadingStyle
293297 self . preferredLineLimit = preferredLineLimit
@@ -862,9 +866,9 @@ public struct MarkupFormatter: MarkupWalker {
862866 }
863867
864868 public mutating func visitStrong( _ strong: Strong ) {
865- print ( String ( repeating: formattingOptions. emphasisMarker . rawValue, count: 2 ) , for: strong)
869+ print ( String ( repeating: formattingOptions. strongEmphasisMarker . rawValue, count: 2 ) , for: strong)
866870 descendInto ( strong)
867- print ( String ( repeating: formattingOptions. emphasisMarker . rawValue, count: 2 ) , for: strong)
871+ print ( String ( repeating: formattingOptions. strongEmphasisMarker . rawValue, count: 2 ) , for: strong)
868872 }
869873
870874 public mutating func visitText( _ text: Text ) {
0 commit comments