Introduce OPTIONs for strong_em_symbol

This commit is contained in:
André van Delft
2021-04-18 18:13:29 +02:00
parent e877602a5e
commit 29c794e17d
3 changed files with 18 additions and 8 deletions

View File

@@ -19,6 +19,10 @@ SETEXT = UNDERLINED
SPACES = 'spaces'
BACKSLASH = 'backslash'
# Strong and emphasis style
ASTERISK = '*'
UNDERSCORE = '_'
def escape(text):
if not text:
@@ -50,7 +54,7 @@ class MarkdownConverter(object):
autolinks = True
heading_style = UNDERLINED
bullets = '*+-' # An iterable of bullet types.
strong_em_symbol = '*'
strong_em_symbol = ASTERISK
newline_style = SPACES
class Options(DefaultOptions):