Browse Source

Position in end result should be absolute

pull/204/head
Samy Pessé 9 years ago
parent
commit
ace5e1c058
  1. 5
      lib/rules_core/inline.js

5
lib/rules_core/inline.js

@ -8,6 +8,11 @@ module.exports = function inline(state) {
tok = tokens[i];
if (tok.type === 'inline') {
state.md.inline.parse(tok.content, state.md, state.env, tok.children);
// Update position of all children to be absolute
for (var child = 0; child < tok.children.length; child++) {
tok.children[child].position = tok.children[child].position + tok.position;
}
}
}
};

Loading…
Cancel
Save