From 778f980733db4920e78d1f7595a416ecab0ce487 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Mon, 1 Mar 2021 11:45:51 +0000 Subject: [PATCH] About text rendering as html --- webapp_about.py | 3 ++- webapp_column_left.py | 3 +-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/webapp_about.py b/webapp_about.py index d7a9c35cb..4f9b5f8bb 100644 --- a/webapp_about.py +++ b/webapp_about.py @@ -11,6 +11,7 @@ from shutil import copyfile from utils import getConfigParam from webapp_utils import htmlHeaderWithExternalStyle from webapp_utils import htmlFooter +from webapp_utils import markdownToHtml def htmlAbout(cssCache: {}, baseDir: str, httpPrefix: str, @@ -30,7 +31,7 @@ def htmlAbout(cssCache: {}, baseDir: str, httpPrefix: str, aboutText = 'Information about this instance goes here.' if os.path.isfile(baseDir + '/accounts/about.md'): with open(baseDir + '/accounts/about.md', 'r') as aboutFile: - aboutText = aboutFile.read() + aboutText = markdownToHtml(aboutFile.read()) aboutForm = '' cssFilename = baseDir + '/epicyon-profile.css' diff --git a/webapp_column_left.py b/webapp_column_left.py index a7d143102..70c9648c0 100644 --- a/webapp_column_left.py +++ b/webapp_column_left.py @@ -17,7 +17,6 @@ from webapp_utils import headerButtonsFrontScreen from webapp_utils import htmlHeaderWithExternalStyle from webapp_utils import htmlFooter from webapp_utils import getBannerFile -from webapp_utils import markdownToHtml def _linksExist(baseDir: str) -> bool: @@ -416,7 +415,7 @@ def htmlEditLinks(cssCache: {}, translate: {}, baseDir: str, path: str, aboutStr = '' if os.path.isfile(aboutFilename): with open(aboutFilename, 'r') as fp: - aboutStr = markdownToHtml(fp.read()) + aboutStr = fp.read() editLinksForm += \ '
'