2
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2025-09-07 12:02:53 +08:00

api cleanup for before / after rules

This commit is contained in:
Sam 2017-07-21 16:09:27 -04:00
parent bb35d9fc07
commit 9b4f5710e6
3 changed files with 9 additions and 8 deletions

View file

@ -192,7 +192,7 @@ function applyBBCode(state, startLine, endLine, silent, md) {
} else {
if (rule.before) {
rule.before.call(this, state, info.attrs, md, state.src.slice(initial, initial + info.length + 1));
rule.before.call(this, state, info, state.src.slice(initial, initial + info.length + 1));
}
let wrapTag;
@ -235,7 +235,7 @@ function applyBBCode(state, startLine, endLine, silent, md) {
}
if (rule.after) {
rule.after.call(this, state, lastToken, md, state.src.slice(start-2, start + closeTag.length - 1));
rule.after.call(this, state, lastToken, state.src.slice(start-2, start + closeTag.length - 1));
}
}