Passes management of the description to the js template

This commit is contained in:
Kevin Chung
2017-04-01 16:43:41 -04:00
parent f48a0cdacd
commit 98071c1874
2 changed files with 4 additions and 2 deletions

View File

@@ -39,7 +39,7 @@ function updateChalWindow(obj) {
name: obj.name,
value: obj.value,
tags: obj.tags,
desc: marked(obj.description, {'gfm':true, 'breaks':true}),
desc: obj.description,
solves: solves,
files: obj.files,
hints: obj.hints

View File

@@ -22,4 +22,6 @@ $(".input-field").bind({
$label.removeClass('input--hide' );
}
}
});
});
$('.chal-desc').html(marked($('.chal-desc').html(), {'gfm':true, 'breaks':true}));