diff --git a/src/modules/site-v2/templates/_includes/phenotype-database-table.html b/src/modules/site-v2/templates/_includes/phenotype-database-table.html
index d8f659db..10115e88 100644
--- a/src/modules/site-v2/templates/_includes/phenotype-database-table.html
+++ b/src/modules/site-v2/templates/_includes/phenotype-database-table.html
@@ -153,7 +153,13 @@
}
},
{"data": "trait_name_caendr"},
- {"data": "description_long"},
+ {
+ "data": "description_long",
+ // TODO: Should this be Markdown?
+ // "render": function(data, type, row) {
+ // return markdownToHTML(data);
+ // },
+ },
{
"data": "Upload Date",
"render": function(data, type, row) {
diff --git a/src/modules/site-v2/templates/_scripts/utils.js b/src/modules/site-v2/templates/_scripts/utils.js
index 98dd2220..65a17303 100644
--- a/src/modules/site-v2/templates/_scripts/utils.js
+++ b/src/modules/site-v2/templates/_scripts/utils.js
@@ -107,7 +107,7 @@ function create_node(html) {
// Convert text from Markdown to HTML using Toast UI
// This protects against code injection
-function markdown_to_html(text) {
+function markdownToHTML(text) {
const editor = new toastui.Editor({
el: document.createElement('div'),
initialValue: text,
@@ -145,7 +145,7 @@ function flash_message(message, full_msg_link=null, full_msg_body=null) {
// Create as a new DOM node, and insert the desired message as formatted (cleaned) HTML
const node = create_node(raw_html);
- node.firstElementChild.innerHTML = markdown_to_html(message);
+ node.firstElementChild.innerHTML = markdownToHTML(message);
// If both full message fields are provided, add as a link & collapse dropdown
if (full_msg_link && full_msg_body) {