1
0
Fork 0

fix: Fixed typo in remark-jargon (hat-top to @wooorm for spotting it)

This commit is contained in:
Joost De Cock 2019-10-12 18:02:13 +02:00
parent 64344a8693
commit ef0f2ae828
2 changed files with 119 additions and 2 deletions

View file

@ -22,7 +22,7 @@ export default options => {
let html = options.jargon[term.toLowerCase()]
let value = `<span class="jargon-term">${term}<span class="jargon-info">${html}</span></span>`
let position = node.children[0].position
position.end.column = position.end.column + value.length - term.lenght
position.end.column = position.end.column + value.length - term.length
position.end.offset = position.end.column - 1
node.children = [
{