mirror of
https://github.com/discourse/discourse.git
synced 2024-11-24 22:09:35 +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);
|
|
}
|
|
}
|