@@ -8,7 +8,9 @@ public class Config
88 public UnknownTagsOption UnknownTags { get ; set ; } = UnknownTagsOption . PassThrough ;
99
1010 public bool GithubFlavored { get ; set ; } = false ;
11-
11+
12+ public bool SlackFlavored { get ; set ; } = false ;
13+
1214 public bool SuppressDivNewlines { get ; set ; } = false ;
1315
1416 public bool RemoveComments { get ; set ; } = false ;
@@ -31,10 +33,19 @@ public class Config
3133 public TableWithoutHeaderRowHandlingOption TableWithoutHeaderRowHandling { get ; set ; } =
3234 TableWithoutHeaderRowHandlingOption . Default ;
3335
36+ private char _listBulletChar = '-' ;
37+
3438 /// <summary>
3539 /// Option to set a different bullet character for un-ordered lists
3640 /// </summary>
37- public char ListBulletChar { get ; set ; } = '-' ;
41+ /// <remarks>
42+ /// This option is ignored when <see cref="SlackFlavored"/> is enabled.
43+ /// </remarks>
44+ public char ListBulletChar
45+ {
46+ get => SlackFlavored ? '•' : _listBulletChar ;
47+ set => _listBulletChar = value ;
48+ }
3849
3950 /// <summary>
4051 /// Option to set a default GFM code block language if class based language markers are not available
@@ -52,14 +63,17 @@ public enum UnknownTagsOption
5263 /// Include the unknown tag completely into the result. That is, the tag along with the text will be left in output.
5364 /// </summary>
5465 PassThrough ,
66+
5567 /// <summary>
5668 /// Drop the unknown tag and its content
5769 /// </summary>
5870 Drop ,
71+
5972 /// <summary>
6073 /// Ignore the unknown tag but try to convert its content
6174 /// </summary>
6275 Bypass ,
76+
6377 /// <summary>
6478 /// Raise an error to let you know
6579 /// </summary>
@@ -72,6 +86,7 @@ public enum TableWithoutHeaderRowHandlingOption
7286 /// By default, first row will be used as header row
7387 /// </summary>
7488 Default ,
89+
7590 /// <summary>
7691 /// An empty row will be added as the header row
7792 /// </summary>
@@ -90,10 +105,12 @@ public enum TableWithoutHeaderRowHandlingOption
90105 /// Determines whether url is allowed: WhitelistUriSchemes contains no elements or contains passed url.
91106 /// </summary>
92107 /// <param name="scheme">Scheme name without trailing colon</param>
93- internal bool IsSchemeWhitelisted ( string scheme ) {
108+ internal bool IsSchemeWhitelisted ( string scheme )
109+ {
94110 if ( scheme == null ) throw new ArgumentNullException ( nameof ( scheme ) ) ;
95- var isSchemeAllowed = WhitelistUriSchemes == null || WhitelistUriSchemes . Length == 0 || WhitelistUriSchemes . Contains ( scheme , StringComparer . OrdinalIgnoreCase ) ;
111+ var isSchemeAllowed = WhitelistUriSchemes == null || WhitelistUriSchemes . Length == 0 ||
112+ WhitelistUriSchemes . Contains ( scheme , StringComparer . OrdinalIgnoreCase ) ;
96113 return isSchemeAllowed ;
97114 }
98115 }
99- }
116+ }
0 commit comments