mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 06:41:25 +08:00
DEV: Use method definition syntax consistently (#14915)
This commit is contained in:
@ -1,6 +1,6 @@
|
||||
const rule = {
|
||||
tag: "details",
|
||||
before: function (state, tagInfo) {
|
||||
before(state, tagInfo) {
|
||||
const attrs = tagInfo.attrs;
|
||||
state.push("bbcode_open", "details", 1);
|
||||
state.push("bbcode_open", "summary", 1);
|
||||
@ -11,7 +11,7 @@ const rule = {
|
||||
state.push("bbcode_close", "summary", -1);
|
||||
},
|
||||
|
||||
after: function (state) {
|
||||
after(state) {
|
||||
state.push("bbcode_close", "details", -1);
|
||||
},
|
||||
};
|
||||
|
Reference in New Issue
Block a user