You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@allura.apache.org by ke...@apache.org on 2022/02/11 17:36:48 UTC
[allura] 11/12: [#8408] raise markdown limits now
This is an automated email from the ASF dual-hosted git repository.
kentontaylor pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/allura.git
commit ba59afa27efd01837f41b9c6765ff5c997f4059c
Author: Dave Brondsema <db...@slashdotmedia.com>
AuthorDate: Tue Feb 8 16:47:11 2022 -0500
[#8408] raise markdown limits now
---
Allura/allura/lib/app_globals.py | 2 +-
Allura/development.ini | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/Allura/allura/lib/app_globals.py b/Allura/allura/lib/app_globals.py
index 44d81f3..834075b 100644
--- a/Allura/allura/lib/app_globals.py
+++ b/Allura/allura/lib/app_globals.py
@@ -78,7 +78,7 @@ log = logging.getLogger(__name__)
class ForgeMarkdown(markdown.Markdown):
def convert(self, source, render_limit=True):
- if render_limit and len(source) > asint(config.get('markdown_render_max_length', 40000)):
+ if render_limit and len(source) > asint(config.get('markdown_render_max_length', 80000)):
# 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')
diff --git a/Allura/development.ini b/Allura/development.ini
index 6f4a084..eb024f8 100644
--- a/Allura/development.ini
+++ b/Allura/development.ini
@@ -589,7 +589,7 @@ site_notification.impressions = 0
; 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 = 100000
+markdown_render_max_length = 200000
; Don't add rel=nofollow to these domains when generating links from Markdown content
;nofollow_exempt_domains =