mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-05 02:39:33 +02:00
Fix broadcast message inconsistency with preview
This commit is contained in:
parent
57d64f30e3
commit
cb38c9b9ea
2 changed files with 5 additions and 3 deletions
|
@ -28,7 +28,7 @@ export class MarkdownTextareaComponent implements ControlValueAccessor, OnInit {
|
|||
|
||||
@Input() truncate: number
|
||||
|
||||
@Input() markdownType: 'text' | 'enhanced' = 'text'
|
||||
@Input() markdownType: 'text' | 'enhanced' | 'to-unsafe-html' = 'text'
|
||||
@Input() customMarkdownRenderer?: (text: string) => Promise<string | HTMLElement>
|
||||
|
||||
@Input() debounceTime = 150
|
||||
|
@ -147,8 +147,10 @@ export class MarkdownTextareaComponent implements ControlValueAccessor, OnInit {
|
|||
html = result
|
||||
} else if (this.markdownType === 'text') {
|
||||
html = await this.markdownService.textMarkdownToHTML({ markdown: text })
|
||||
} else {
|
||||
} else if (this.markdownType === 'enhanced') {
|
||||
html = await this.markdownService.enhancedMarkdownToHTML({ markdown: text })
|
||||
} else if (this.markdownType === 'to-unsafe-html') {
|
||||
html = await this.markdownService.markdownToUnsafeHTML({ markdown: text })
|
||||
}
|
||||
|
||||
if (this.markdownVideo) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue