From: Joël Galeran Date: Wed, 5 Apr 2023 09:12:00 +0000 (+0200) Subject: feat(about): render images in markdown (#5732) X-Git-Tag: v5.2.0-rc.1~226 X-Git-Url: https://git.immae.eu/?a=commitdiff_plain;h=9258e9a4a37911fc64b5faada2a7e604bd1ede1f;p=github%2FChocobozzz%2FPeerTube.git feat(about): render images in markdown (#5732) * feat(about): render images in markdown Closes https://github.com/Chocobozzz/PeerTube/issues/5710 * Update edit-instance-information.component.html * use `markdownType="enhanced"` --- diff --git a/client/src/app/+admin/config/edit-custom-config/edit-instance-information.component.html b/client/src/app/+admin/config/edit-custom-config/edit-instance-information.component.html index 504afa189..1b0a842d4 100644 --- a/client/src/app/+admin/config/edit-custom-config/edit-instance-information.component.html +++ b/client/src/app/+admin/config/edit-custom-config/edit-instance-information.component.html @@ -125,7 +125,7 @@ @@ -134,7 +134,7 @@ @@ -144,7 +144,7 @@
Who moderates the instance? What is the policy regarding NSFW videos? Political videos? etc
@@ -164,7 +164,7 @@
A single person? A non-profit? A company?
@@ -174,7 +174,7 @@
To share your personal videos? To open registrations and allow people to upload what they want?
@@ -184,7 +184,7 @@
It's important to know for users who want to register on your instance
@@ -194,7 +194,7 @@
With your own funds? With user donations? Advertising?
@@ -214,7 +214,7 @@
i.e. 2vCore 2GB RAM, a direct the link to the server you rent, etc.
diff --git a/client/src/app/shared/shared-instance/instance.service.ts b/client/src/app/shared/shared-instance/instance.service.ts index f5b2e05db..2defffbbe 100644 --- a/client/src/app/shared/shared-instance/instance.service.ts +++ b/client/src/app/shared/shared-instance/instance.service.ts @@ -56,7 +56,7 @@ export class InstanceService { } for (const key of Object.keys(html)) { - html[key] = await this.markdownService.textMarkdownToHTML({ markdown: about.instance[key] }) + html[key] = await this.markdownService.enhancedMarkdownToHTML({ markdown: about.instance[key] }) } return html