Add markdown support in hello plugin
This commit is contained in:
		| @ -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) | ||||||
|  |  | ||||||
|  | |||||||
		Reference in New Issue
	
	Block a user