Convert URL-like text to links in plugins readme

This commit is contained in:
Pierre GIRAUD
2018-08-08 15:51:13 +02:00
committed by Pierre GIRAUD
parent 817179c097
commit d7fb704e27

View File

@@ -97,7 +97,9 @@ export class PluginEditCtrl {
initReadme() {
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));
});
}