-
Notifications
You must be signed in to change notification settings - Fork 8
Open
Description
Per the docs for ember-cli-showdown it should be possible to set global showdown config via an app's environment.js. However, these options don't appear to be passed along to showdown as part of the way showdown is invoked in field-guide.
I was able to make this work by doing something like this, but it's unclear if this is the best solution of if there is something else I'm missing here.
export default Controller.extend({
fieldGuideConfig: config['field-guide'],
showdownConfig: config['showdown'],
renderedContent: computed('model.content', function() {
const converter = new showdown.Converter(this.showdownConfig);
return converter.makeHtml(this.model.content);
})
})didoo
Metadata
Metadata
Assignees
Labels
No labels