@@ -248,6 +248,7 @@ public struct MarkupFormatter: MarkupWalker {
248
248
var thematicBreakCharacter : ThematicBreakCharacter
249
249
var thematicBreakLength : UInt
250
250
var emphasisMarker : EmphasisMarker
251
+ var strongEmphasisMarker : EmphasisMarker
251
252
var condenseAutolinks : Bool
252
253
var preferredHeadingStyle : PreferredHeadingStyle
253
254
var preferredLineLimit : PreferredLineLimit ?
@@ -264,7 +265,8 @@ public struct MarkupFormatter: MarkupWalker {
264
265
- defaultCodeBlockLanguage: The default language string to use when code blocks don't have a language and will be printed as fenced code blocks.
265
266
- thematicBreakCharacter: The character to use for thematic breaks.
266
267
- 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.
268
270
- condenseAutolinks: Print links whose link text and destination match as autolinks, e.g. `<https://swift.org>`.
269
271
- preferredHeadingStyle: The preferred heading style.
270
272
- 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 {
277
279
thematicBreakCharacter: ThematicBreakCharacter = . dash,
278
280
thematicBreakLength: UInt = 5 ,
279
281
emphasisMarker: EmphasisMarker = . star,
282
+ strongEmphasisMarker: EmphasisMarker = . star,
280
283
condenseAutolinks: Bool = true ,
281
284
preferredHeadingStyle: PreferredHeadingStyle = . atx,
282
285
preferredLineLimit: PreferredLineLimit ? = nil ,
@@ -288,6 +291,7 @@ public struct MarkupFormatter: MarkupWalker {
288
291
self . defaultCodeBlockLanguage = defaultCodeBlockLanguage
289
292
self . thematicBreakCharacter = thematicBreakCharacter
290
293
self . emphasisMarker = emphasisMarker
294
+ self . strongEmphasisMarker = strongEmphasisMarker
291
295
self . condenseAutolinks = condenseAutolinks
292
296
self . preferredHeadingStyle = preferredHeadingStyle
293
297
self . preferredLineLimit = preferredLineLimit
@@ -862,9 +866,9 @@ public struct MarkupFormatter: MarkupWalker {
862
866
}
863
867
864
868
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)
866
870
descendInto ( strong)
867
- print ( String ( repeating: formattingOptions. emphasisMarker . rawValue, count: 2 ) , for: strong)
871
+ print ( String ( repeating: formattingOptions. strongEmphasisMarker . rawValue, count: 2 ) , for: strong)
868
872
}
869
873
870
874
public mutating func visitText( _ text: Text ) {
0 commit comments