Commit 2770a7bc by Daniel Lee Committed by GitHub

Merge pull request #12843 from pgiraud/plugin_readme_links

Convert URL-like text to links in plugins readme
parents c2b4bbcf d7fb704e
...@@ -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