Fix markdown linebreaks and match preview render options with final

This commit is contained in:
TheAMM
2017-05-14 09:38:19 +03:00
parent 46682861d0
commit 3bdff6246f
2 changed files with 2 additions and 2 deletions

View File

@@ -115,7 +115,7 @@
<script>
var target = document.getElementById('torrent-description');
var text = target.innerHTML;
var html = marked(text.trim(), { sanitize: true });
var html = marked(text.trim(), { sanitize: true, breaks:true });
target.innerHTML = html;
</script>