1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

Backport pull request #5680 from jellyfin-web/release-10.9.z

Fix episode overview markdown render

Original-merge: aed4ffa2cd

Merged-by: thornbill <thornbill@users.noreply.github.com>

Backported-by: Joshua M. Boniface <joshua@boniface.me>
This commit is contained in:
Chaitanya-Shahare 2024-06-23 11:42:23 -04:00 committed by Joshua M. Boniface
parent 6e3d93836b
commit 00e02888d2
2 changed files with 5 additions and 1 deletions

View file

@ -88,6 +88,7 @@
- [David Angel](https://github.com/davidangel)
- [Pithaya](https://github.com/Pithaya)
- [Peter Santos](https://github.com/prsantos-com)
- [Chaitanya Shahare](https://github.com/Chaitanya-Shahare)
## Emby Contributors

View file

@ -17,6 +17,8 @@ import '../../elements/emby-ratingbutton/emby-ratingbutton';
import '../../elements/emby-playstatebutton/emby-playstatebutton';
import ServerConnections from '../ServerConnections';
import { getDefaultBackgroundClass } from '../cardbuilder/cardBuilderUtils';
import markdownIt from 'markdown-it';
import DOMPurify from 'dompurify';
function getIndex(item, options) {
if (options.index === 'disc') {
@ -415,8 +417,9 @@ export function getListViewHtml(options) {
}
if (enableOverview && item.Overview) {
const overview = DOMPurify.sanitize(markdownIt({ html: true }).render(item.Overview || ''));
html += '<div class="secondary listItem-overview listItemBodyText">';
html += '<bdi>' + item.Overview + '</bdi>';
html += '<bdi>' + overview + '</bdi>';
html += '</div>';
}