From ca13c28a3fd965532a9b4ad68d72dd397d117878 Mon Sep 17 00:00:00 2001 From: sawka Date: Sun, 17 Sep 2023 01:35:41 -0700 Subject: [PATCH] minor bugs in markdown renderer, up max size to 200k --- src/view/markdown.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/view/markdown.tsx b/src/view/markdown.tsx index c9cf6d2bc..8b1fceee5 100644 --- a/src/view/markdown.tsx +++ b/src/view/markdown.tsx @@ -9,7 +9,7 @@ import { Markdown } from "../elements"; type OV = mobx.IObservableValue; -const MaxMarkdownSize = 50000; +const MaxMarkdownSize = 200000; @mobxReact.observer class SimpleMarkdownRenderer extends React.Component< @@ -44,7 +44,7 @@ class SimpleMarkdownRenderer extends React.Component< let dataBlob = this.props.data; if (dataBlob == null || dataBlob.notFound) { return ( -
+
ERROR: file {dataBlob && dataBlob.name ? JSON.stringify(dataBlob.name) : ""} not found
@@ -54,7 +54,7 @@ class SimpleMarkdownRenderer extends React.Component< if (this.markdownError.get() != null) { return (
-
{this.markdownError.get()}
+
{this.markdownError.get()}
); }