Merge pull request #12843 from pgiraud/plugin_readme_links

Convert URL-like text to links in plugins readme
This commit is contained in:
Daniel Lee 2018-08-10 14:01:05 +02:00 committed by GitHub
commit 2770a7bc0c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -97,7 +97,9 @@ export class PluginEditCtrl {
initReadme() { initReadme() {
return this.backendSrv.get(`/api/plugins/${this.pluginId}/markdown/readme`).then(res => { return this.backendSrv.get(`/api/plugins/${this.pluginId}/markdown/readme`).then(res => {
var md = new Remarkable(); var md = new Remarkable({
linkify: true
});
this.readmeHtml = this.$sce.trustAsHtml(md.render(res)); this.readmeHtml = this.$sce.trustAsHtml(md.render(res));
}); });
} }