mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Merge pull request #12843 from pgiraud/plugin_readme_links
Convert URL-like text to links in plugins readme
This commit is contained in:
commit
2770a7bc0c
@ -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));
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user