diff options
author | Waylan Limberg <waylan@gmail.com> | 2010-07-06 16:30:11 -0400 |
---|---|---|
committer | Waylan Limberg <waylan@gmail.com> | 2010-07-06 16:30:11 -0400 |
commit | 018aa73e82941288a1178ded751cf29d9bc13581 (patch) | |
tree | 38a87c7f51eddf389fb0455c112e7bbb6bbf448a /markdown/util.py | |
parent | 03bf339b594db40592d3a4848ec1e5402a371df2 (diff) | |
download | markdown-018aa73e82941288a1178ded751cf29d9bc13581.tar.gz markdown-018aa73e82941288a1178ded751cf29d9bc13581.tar.bz2 markdown-018aa73e82941288a1178ded751cf29d9bc13581.zip |
Moved a bunch of global variables to the instance of the Markdown class.
Diffstat (limited to 'markdown/util.py')
-rw-r--r-- | markdown/util.py | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/markdown/util.py b/markdown/util.py index 9d1531a..f41469b 100644 --- a/markdown/util.py +++ b/markdown/util.py @@ -15,18 +15,10 @@ Constants you might want to modify ----------------------------------------------------------------------------- """ - -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 -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" "|script|noscript|form|fieldset|iframe|math" "|ins|del|hr|hr/|style|li|dt|dd|thead|tbody" "|tr|th|td") -DOC_TAG = "div" # Element used to wrap document - later removed - # Placeholders STX = u'\u0002' # Use STX ("Start of text") for start-of-placeholder ETX = u'\u0003' # Use ETX ("End of text") for end-of-placeholder |