@@ -239,6 +239,7 @@ public struct MarkupFormatter: MarkupWalker {
239239 var thematicBreakCharacter : ThematicBreakCharacter
240240 var thematicBreakLength : UInt
241241 var emphasisMarker : EmphasisMarker
242+ var strongEmphasisMarker : EmphasisMarker
242243 var condenseAutolinks : Bool
243244 var preferredHeadingStyle : PreferredHeadingStyle
244245 var preferredLineLimit : PreferredLineLimit ?
@@ -254,7 +255,8 @@ public struct MarkupFormatter: MarkupWalker {
254255 - defaultCodeBlockLanguage: The default language string to use when code blocks don't have a language and will be printed as fenced code blocks.
255256 - thematicBreakCharacter: The character to use for thematic breaks.
256257 - thematicBreakLength: The length of printed thematic breaks.
257- - emphasisMarker: The character to use for emphasis and strong emphasis markers.
258+ - emphasisMarker: The character to use for emphasis markers.
259+ - strongEmphasisMarker: The character to use for strong emphasis markers.
258260 - condenseAutolinks: Print links whose link text and destination match as autolinks, e.g. `<https://swift.org>`.
259261 - preferredHeadingStyle: The preferred heading style.
260262 - lineLimit: The preferred maximum line length and method for splitting ``Text`` elements in an attempt to maintain that line length.
@@ -267,6 +269,7 @@ public struct MarkupFormatter: MarkupWalker {
267269 thematicBreakCharacter: ThematicBreakCharacter = . dash,
268270 thematicBreakLength: UInt = 5 ,
269271 emphasisMarker: EmphasisMarker = . star,
272+ strongEmphasisMarker: EmphasisMarker = . star,
270273 condenseAutolinks: Bool = true ,
271274 preferredHeadingStyle: PreferredHeadingStyle = . atx,
272275 preferredLineLimit: PreferredLineLimit ? = nil ,
@@ -277,6 +280,7 @@ public struct MarkupFormatter: MarkupWalker {
277280 self . defaultCodeBlockLanguage = defaultCodeBlockLanguage
278281 self . thematicBreakCharacter = thematicBreakCharacter
279282 self . emphasisMarker = emphasisMarker
283+ self . strongEmphasisMarker = strongEmphasisMarker
280284 self . condenseAutolinks = condenseAutolinks
281285 self . preferredHeadingStyle = preferredHeadingStyle
282286 self . preferredLineLimit = preferredLineLimit
@@ -841,9 +845,9 @@ public struct MarkupFormatter: MarkupWalker {
841845 }
842846
843847 public mutating func visitStrong( _ strong: Strong ) {
844- print ( String ( repeating: formattingOptions. emphasisMarker . rawValue, count: 2 ) , for: strong)
848+ print ( String ( repeating: formattingOptions. strongEmphasisMarker . rawValue, count: 2 ) , for: strong)
845849 descendInto ( strong)
846- print ( String ( repeating: formattingOptions. emphasisMarker . rawValue, count: 2 ) , for: strong)
850+ print ( String ( repeating: formattingOptions. strongEmphasisMarker . rawValue, count: 2 ) , for: strong)
847851 }
848852
849853 public mutating func visitText( _ text: Text ) {
0 commit comments