From a4927884b224e3d4d78ff5db88cbb77bbdf8ee0b Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Thu, 19 Jan 2023 14:27:51 +0100 Subject: Support mailto for custom markup --- client/src/app/core/renderer/markdown.service.ts | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'client/src/app') diff --git a/client/src/app/core/renderer/markdown.service.ts b/client/src/app/core/renderer/markdown.service.ts index a5fd72862..dd23a1b01 100644 --- a/client/src/app/core/renderer/markdown.service.ts +++ b/client/src/app/core/renderer/markdown.service.ts @@ -64,8 +64,8 @@ export class MarkdownService { textMarkdownToHTML (options: { markdown: string - withHtml?: boolean - withEmoji?: boolean + withHtml?: boolean // default false + withEmoji?: boolean // default false }) { const { markdown, withHtml = false, withEmoji = false } = options @@ -76,8 +76,8 @@ export class MarkdownService { enhancedMarkdownToHTML (options: { markdown: string - withHtml?: boolean - withEmoji?: boolean + withHtml?: boolean // default false + withEmoji?: boolean // default false }) { const { markdown, withHtml = false, withEmoji = false } = options @@ -99,6 +99,8 @@ export class MarkdownService { return this.render({ name: 'customPageMarkdownIt', markdown, withEmoji: true, additionalAllowedTags }) } + // --------------------------------------------------------------------------- + processVideoTimestamps (videoShortUUID: string, html: string) { return html.replace(/((\d{1,2}):)?(\d{1,2}):(\d{1,2})/g, function (str, _, h, m, s) { const t = (3600 * +(h || 0)) + (60 * +(m || 0)) + (+(s || 0)) -- cgit v1.2.3