Handle multi-line inline code spans better (fixes #130).

This commit is contained in:
David Anson 2018-07-15 23:05:18 -07:00
parent 6afd61ed66
commit 4865301ce9
5 changed files with 115 additions and 13 deletions

View file

@ -235,7 +235,7 @@ function forEachInlineChild(params, type, callback) {
filterTokens(params, "inline", function forToken(token) {
token.children.forEach(function forChild(child) {
if (child.type === type) {
callback(child);
callback(child, token);
}
});
});