mirror of https://github.com/Chocobozzz/PeerTube
Fix advanced options in upload form
parent
e182430ac7
commit
8eaa6d62c6
|
@ -6,7 +6,7 @@ $border-type: solid;
|
|||
$border-color: #EAEAEA;
|
||||
|
||||
/deep/ .root-tabset.video-add-tabset {
|
||||
&.hide-nav .nav {
|
||||
&.hide-nav > .nav {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
|
|
|
@ -26,14 +26,14 @@ export class MarkdownService {
|
|||
if (!markdown) return ''
|
||||
|
||||
const html = this.textMarkdownIt.render(markdown)
|
||||
return this.avoidTruncatedLinks(html)
|
||||
return this.avoidTruncatedTags(html)
|
||||
}
|
||||
|
||||
enhancedMarkdownToHTML (markdown: string) {
|
||||
if (!markdown) return ''
|
||||
|
||||
const html = this.enhancedMarkdownIt.render(markdown)
|
||||
return this.avoidTruncatedLinks(html)
|
||||
return this.avoidTruncatedTags(html)
|
||||
}
|
||||
|
||||
private createMarkdownIt (rules: string[]) {
|
||||
|
@ -70,7 +70,7 @@ export class MarkdownService {
|
|||
}
|
||||
}
|
||||
|
||||
private avoidTruncatedLinks (html: string) {
|
||||
private avoidTruncatedTags (html: string) {
|
||||
return html.replace(/\*\*?([^*]+)$/, '$1')
|
||||
.replace(/<a[^>]+>([^<]+)<\/a>\s*...((<\/p>)|(<\/li>)|(<\/strong>))?$/mi, '$1...')
|
||||
.replace(/\[[^\]]+\]?\(?([^\)]+)$/, '$1')
|
||||
|
|
Loading…
Reference in New Issue