mirror of
https://github.com/jellyfin/jellyfin-web.git
synced 2024-11-15 09:58:18 -07:00
Merge pull request #5680 from Chaitanya-Shahare/chaitanya/fix-episode-overview-markdown
Fix episode overview markdown render
This commit is contained in:
commit
aed4ffa2cd
@ -87,6 +87,7 @@
|
||||
- [JPUC1143](https://github.com/Jpuc1143)
|
||||
- [David Angel](https://github.com/davidangel)
|
||||
- [Pithaya](https://github.com/Pithaya)
|
||||
- [Chaitanya Shahare](https://github.com/Chaitanya-Shahare)
|
||||
|
||||
## Emby Contributors
|
||||
|
||||
|
@ -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>';
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user