DEV: apply coding standards to plugins (#10594)

This commit is contained in:
Joffrey JAFFEUX
2020-09-04 13:51:53 +02:00
committed by GitHub
parent 034a59a69d
commit bf88410126
27 changed files with 269 additions and 277 deletions

View File

@ -1,6 +1,6 @@
const rule = {
tag: "details",
before: function(state, tagInfo) {
before: function (state, tagInfo) {
const attrs = tagInfo.attrs;
state.push("bbcode_open", "details", 1);
state.push("bbcode_open", "summary", 1);
@ -11,9 +11,9 @@ const rule = {
state.push("bbcode_close", "summary", -1);
},
after: function(state) {
after: function (state) {
state.push("bbcode_close", "details", -1);
}
},
};
export function setup(helper) {
@ -22,10 +22,10 @@ export function setup(helper) {
"summary[title]",
"details",
"details[open]",
"details.elided"
"details.elided",
]);
helper.registerPlugin(md => {
helper.registerPlugin((md) => {
md.block.bbcode.ruler.push("details", rule);
});
}