TXT Markdown Input: Change handling of _ to work mid word. _ will need to be escaped as \_ to not be changed to a style.

This commit is contained in:
John Schember 2011-09-18 18:52:47 -04:00
parent 8f95d10d27
commit b161102897

View File

@ -65,7 +65,8 @@ Constants you might want to modify
COMMAND_LINE_LOGGING_LEVEL = CRITICAL
TAB_LENGTH = 4 # expand tabs to this many spaces
ENABLE_ATTRIBUTES = True # @id = xyz -> <... id="xyz">
SMART_EMPHASIS = True # this_or_that does not become this<i>or</i>that
#SMART_EMPHASIS = True # this_or_that does not become this<i>or</i>that
SMART_EMPHASIS = False # this_or_that needs to have _ escaped as \_.
DEFAULT_OUTPUT_FORMAT = 'xhtml1' # xhtml or html4 output
HTML_REMOVED_TEXT = "[HTML_REMOVED]" # text used instead of HTML in safe mode
BLOCK_LEVEL_ELEMENTS = re.compile("p|div|h[1-6]|blockquote|pre|table|dl|ol|ul"