mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
add param for markdownIt to handle html
This commit is contained in:
parent
4a17c78a85
commit
67aa57f67b
3 changed files with 3 additions and 3 deletions
|
@ -15,7 +15,7 @@ function populateHistory(packageInfo, page) {
|
|||
for (let i = 0; i < length; i++) {
|
||||
const version = packageInfo.versions[i];
|
||||
html += '<h2 style="margin:.5em 0;">' + version.version + '</h2>';
|
||||
html += '<div style="margin-bottom:1.5em;">' + DOMPurify.sanitize(markdownIt().render(version.changelog)) + '</div>';
|
||||
html += '<div style="margin-bottom:1.5em;">' + DOMPurify.sanitize(markdownIt({ html: true }).render(version.changelog)) + '</div>';
|
||||
}
|
||||
|
||||
$('#revisionHistory', page).html(html);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue