mirror of
https://github.com/discourse/discourse.git
synced 2024-11-29 06:33:44 +08:00
04659b0e41
…and correctly fix the decorateCookedElement id arg
12 lines
354 B
JavaScript
12 lines
354 B
JavaScript
import { observes, on } from "@ember-decorators/object";
|
|
import Component from "@ember/component";
|
|
import highlightSyntax from "discourse/lib/highlight-syntax";
|
|
|
|
export default class HighlightedCode extends Component {
|
|
@on("didInsertElement")
|
|
@observes("code")
|
|
_refresh() {
|
|
highlightSyntax(this.element, this.siteSettings, this.session);
|
|
}
|
|
}
|