mirror of
https://github.com/simon987/nyaa.git
synced 2025-12-16 08:19:05 +00:00
Fix markdown linebreaks and match preview render options with final
This commit is contained in:
@@ -92,7 +92,7 @@ document.addEventListener("DOMContentLoaded", function() {
|
||||
var targetEl = markdownEditor.querySelector(targetSelector);
|
||||
|
||||
previewTabEl.addEventListener('click', function () {
|
||||
targetEl.innerHTML = marked(sourceSelector.value.trim());
|
||||
targetEl.innerHTML = marked(sourceSelector.value.trim(), { sanitize: true, breaks:true });
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user