From b161102897371a445f53fe32c39a796989452de7 Mon Sep 17 00:00:00 2001 From: John Schember Date: Sun, 18 Sep 2011 18:52:47 -0400 Subject: [PATCH] TXT Markdown Input: Change handling of _ to work mid word. _ will need to be escaped as \_ to not be changed to a style. --- src/calibre/ebooks/markdown/markdown.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/calibre/ebooks/markdown/markdown.py b/src/calibre/ebooks/markdown/markdown.py index caadce2924..46ac21983c 100644 --- a/src/calibre/ebooks/markdown/markdown.py +++ b/src/calibre/ebooks/markdown/markdown.py @@ -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 thisorthat +#SMART_EMPHASIS = True # this_or_that does not become thisorthat +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"