@@ -239,6 +239,7 @@ public struct MarkupFormatter: MarkupWalker {
239
239
var thematicBreakCharacter : ThematicBreakCharacter
240
240
var thematicBreakLength : UInt
241
241
var emphasisMarker : EmphasisMarker
242
+ var strongEmphasisMarker : EmphasisMarker
242
243
var condenseAutolinks : Bool
243
244
var preferredHeadingStyle : PreferredHeadingStyle
244
245
var preferredLineLimit : PreferredLineLimit ?
@@ -254,7 +255,8 @@ public struct MarkupFormatter: MarkupWalker {
254
255
- defaultCodeBlockLanguage: The default language string to use when code blocks don't have a language and will be printed as fenced code blocks.
255
256
- thematicBreakCharacter: The character to use for thematic breaks.
256
257
- 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.
258
260
- condenseAutolinks: Print links whose link text and destination match as autolinks, e.g. `<https://swift.org>`.
259
261
- preferredHeadingStyle: The preferred heading style.
260
262
- 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 {
267
269
thematicBreakCharacter: ThematicBreakCharacter = . dash,
268
270
thematicBreakLength: UInt = 5 ,
269
271
emphasisMarker: EmphasisMarker = . star,
272
+ strongEmphasisMarker: EmphasisMarker = . star,
270
273
condenseAutolinks: Bool = true ,
271
274
preferredHeadingStyle: PreferredHeadingStyle = . atx,
272
275
preferredLineLimit: PreferredLineLimit ? = nil ,
@@ -277,6 +280,7 @@ public struct MarkupFormatter: MarkupWalker {
277
280
self . defaultCodeBlockLanguage = defaultCodeBlockLanguage
278
281
self . thematicBreakCharacter = thematicBreakCharacter
279
282
self . emphasisMarker = emphasisMarker
283
+ self . strongEmphasisMarker = strongEmphasisMarker
280
284
self . condenseAutolinks = condenseAutolinks
281
285
self . preferredHeadingStyle = preferredHeadingStyle
282
286
self . preferredLineLimit = preferredLineLimit
@@ -841,9 +845,9 @@ public struct MarkupFormatter: MarkupWalker {
841
845
}
842
846
843
847
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)
845
849
descendInto ( strong)
846
- print ( String ( repeating: formattingOptions. emphasisMarker . rawValue, count: 2 ) , for: strong)
850
+ print ( String ( repeating: formattingOptions. strongEmphasisMarker . rawValue, count: 2 ) , for: strong)
847
851
}
848
852
849
853
public mutating func visitText( _ text: Text ) {
0 commit comments