Add markdown support in hello plugin

This commit is contained in:
Chocobozzz 2020-04-24 14:25:43 +02:00
parent ed3ac5bd41
commit 42760de685
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
2 changed files with 10 additions and 0 deletions

View File

@ -43,6 +43,9 @@ function register ({ registerHook, peertubeHelpers }) {
} }
}) })
peertubeHelpers.markdownRenderer.textMarkdownToHTML('**My Bold Text**')
.then(v => console.log(v))
} }
export { export {

View File

@ -48,6 +48,13 @@ async function register ({
private: false private: false
}) })
registerSetting({
name: 'my-markdown-area',
label: 'Markdown text',
type: 'markdown-text',
default: false
})
const value = await storageManager.getData('toto') const value = await storageManager.getData('toto')
console.log(value) console.log(value)