diff options
Diffstat (limited to 'src/util')
-rw-r--r-- | src/util/replacer.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util/replacer.js b/src/util/replacer.js index a2df2c3f..d9fd8923 100644 --- a/src/util/replacer.js +++ b/src/util/replacer.js @@ -287,7 +287,7 @@ export function postprocessImages(inputNodes) { let atStartOfLine = true; - const lastNode = inputNodes[inputNodes.length - 1]; + const lastNode = inputNodes.at(-1); for (const node of inputNodes) { if (node.type === 'tag') { |