Add markdown support in hello plugin
This commit is contained in:
parent
ed3ac5bd41
commit
42760de685
@ -43,6 +43,9 @@ function register ({ registerHook, peertubeHelpers }) {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
|
peertubeHelpers.markdownRenderer.textMarkdownToHTML('**My Bold Text**')
|
||||||
|
.then(v => console.log(v))
|
||||||
}
|
}
|
||||||
|
|
||||||
export {
|
export {
|
||||||
|
@ -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)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user