mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2025-09-22 05:40:48 +02:00
Handle multi-line inline code spans better (fixes #130).
This commit is contained in:
parent
6afd61ed66
commit
4865301ce9
5 changed files with 115 additions and 13 deletions
|
@ -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);
|
||||
}
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue