mirror of
https://github.com/hanzoai/forum.git
synced 2026-09-30 21:51:19 +00:00
Changes made using the ember-native-class-codemod, plus some manual tweaks
13 lines
365 B
JavaScript
13 lines
365 B
JavaScript
import Component from "@ember/component";
|
|
import $ from "jquery";
|
|
import { cook } from "discourse/lib/text";
|
|
|
|
export default class StyleguideMarkdown extends Component {
|
|
didInsertElement() {
|
|
super.didInsertElement(...arguments);
|
|
|
|
const contents = $(this.element).html();
|
|
cook(contents).then((cooked) => $(this.element).html(cooked.toString()));
|
|
}
|
|
}
|