[#7889] Add parameter to bypass the limit for markdown conversion
diff --git a/Allura/allura/lib/app_globals.py b/Allura/allura/lib/app_globals.py
index 05fc254..7a13969 100644
--- a/Allura/allura/lib/app_globals.py
+++ b/Allura/allura/lib/app_globals.py
@@ -70,8 +70,8 @@
 
 class ForgeMarkdown(markdown.Markdown):
 
-    def convert(self, source):
-        if len(source) > asint(config.get('markdown_render_max_length', 40000)):
+    def convert(self, source, render_limit=True):
+        if render_limit and len(source) > asint(config.get('markdown_render_max_length', 40000)):
             # if text is too big, markdown can take a long time to process it,
             # so we return it as a plain text
             log.info('Text is too big. Skipping markdown processing')
@@ -113,7 +113,7 @@
 
         # Convert the markdown and time the result.
         start = time.time()
-        html = self.convert(source_text)
+        html = self.convert(source_text, render_limit=False)
         render_time = time.time() - start
 
         threshold = config.get('markdown_cache_threshold')
diff --git a/Allura/development.ini b/Allura/development.ini
index 20ef1ca..c81ed24 100644
--- a/Allura/development.ini
+++ b/Allura/development.ini
@@ -442,7 +442,7 @@
 ; posts. Remove entirely to cache nothing.
 markdown_cache_threshold = .1
 ; markdown text longer than max length will not be converted to html
-markdown_render_max_length = 999999999
+markdown_render_max_length = 100000
 ; Don't add rel=nofollow to these domains when generating links from Markdown content
 ;nofollow_exempt_domains =