Commit d7fb704e by Pierre GIRAUD Committed by Pierre GIRAUD

Convert URL-like text to links in plugins readme

parent 817179c0
...@@ -97,7 +97,9 @@ export class PluginEditCtrl { ...@@ -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));
}); });
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment