mirror of https://github.com/rancher/ui.git
16 lines
470 B
JavaScript
16 lines
470 B
JavaScript
// https://github.com/ef4/ember-browserify#the-workaround
|
|
import Marked from 'npm:marked'; // eslint-disable-line no-unused-vars
|
|
import Component from '@ember/component';
|
|
import layout from './template';
|
|
|
|
import { htmlSafe } from '@ember/string';
|
|
import { get, computed } from '@ember/object';
|
|
|
|
export default Component.extend({
|
|
layout,
|
|
markdown: null,
|
|
parsedMarkdown: computed('markdown', function() {
|
|
return htmlSafe(Marked(get(this, 'markdown')));
|
|
})
|
|
});
|