mirror of
https://github.com/jellyfin/jellyfin-web.git
synced 2024-11-16 18:38:25 -07:00
Support markdown in item descriptions
This commit is contained in:
parent
19818bda60
commit
12d2fb471c
@ -1,5 +1,6 @@
|
||||
import { intervalToDuration } from 'date-fns';
|
||||
import DOMPurify from 'dompurify';
|
||||
import { marked } from 'marked';
|
||||
import escapeHtml from 'escape-html';
|
||||
import isEqual from 'lodash-es/isEqual';
|
||||
|
||||
@ -877,7 +878,7 @@ function renderOverview(page, item) {
|
||||
const overviewElements = page.querySelectorAll('.overview');
|
||||
|
||||
if (overviewElements.length > 0) {
|
||||
const overview = DOMPurify.sanitize(item.Overview || '');
|
||||
const overview = DOMPurify.sanitize(marked(item.Overview || ''));
|
||||
|
||||
if (overview) {
|
||||
for (const overviewElemnt of overviewElements) {
|
||||
|
Loading…
Reference in New Issue
Block a user