mirror of
https://github.com/discourse/discourse.git
synced 2024-12-12 10:23:40 +08:00
12 lines
343 B
JavaScript
12 lines
343 B
JavaScript
import { observes, on } from "discourse-common/utils/decorators";
|
|
import Component from "@ember/component";
|
|
import highlightSyntax from "discourse/lib/highlight-syntax";
|
|
|
|
export default Component.extend({
|
|
@on("didInsertElement")
|
|
@observes("code")
|
|
_refresh() {
|
|
highlightSyntax(this.element, this.siteSettings, this.session);
|
|
},
|
|
});
|