UNPKG

kibana-with-account

Version:

kibana-with-account is develop based kibana project

16 lines (14 loc) 480 B
define(function (require) { var marked = require('marked'); marked.setOptions({ gfm: true, // Github-flavored markdown sanitize: true // Sanitize HTML tags }); var module = require('ui/modules').get('kibana/markdown_vis', ['kibana']); module.controller('KbnMarkdownVisController', function ($scope, $sce) { $scope.$watch('vis.params.markdown', function (html) { if (!html) return; $scope.html = $sce.trustAsHtml(marked(html)); }); }); });