diff options
author | Kim <1877318+kimsible@users.noreply.github.com> | 2020-04-20 14:51:24 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-20 14:51:24 +0200 |
commit | 8c7725dc3c01a73bf56a48c8b192d144bfdc3ffe (patch) | |
tree | b6e64c7589c7a5138116acd65c1515ef28bea5b9 /client/src/types/register-client-option.model.ts | |
parent | 2fd59d7d89d1c389446ee67838c821e2622fc8ca (diff) | |
download | PeerTube-8c7725dc3c01a73bf56a48c8b192d144bfdc3ffe.tar.gz PeerTube-8c7725dc3c01a73bf56a48c8b192d144bfdc3ffe.tar.zst PeerTube-8c7725dc3c01a73bf56a48c8b192d144bfdc3ffe.zip |
Add markdown support to plugins (#2654)
* Add markdown renderer to plugins
* Chore: add doc for markdown plugins
* Fix typing markdown plugin helpers
* Add lines between components in template
Co-authored-by: kimsible <kimsible@users.noreply.github.com>
Diffstat (limited to 'client/src/types/register-client-option.model.ts')
-rw-r--r-- | client/src/types/register-client-option.model.ts | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/client/src/types/register-client-option.model.ts b/client/src/types/register-client-option.model.ts index 1c235107a..dff00e9dd 100644 --- a/client/src/types/register-client-option.model.ts +++ b/client/src/types/register-client-option.model.ts | |||
@@ -27,5 +27,10 @@ export type RegisterClientHelpers = { | |||
27 | confirm?: { value: string, action?: () => void } | 27 | confirm?: { value: string, action?: () => void } |
28 | }) => void | 28 | }) => void |
29 | 29 | ||
30 | markdownRenderer: { | ||
31 | textMarkdownToHTML: (textMarkdown: string) => Promise<string> | ||
32 | enhancedMarkdownToHTML: (enhancedMarkdown: string) => Promise<string> | ||
33 | } | ||
34 | |||
30 | translate: (toTranslate: string) => Promise<string> | 35 | translate: (toTranslate: string) => Promise<string> |
31 | } | 36 | } |