index.js
function inverted(node) {
  if (node.value === threeDashes) {
    node.value = enDash
  } else if (node.value === twoDashes) {
    node.value = emDash
  }
}
function inverted(node) {
  if (node.value === threeDashes) {
    node.value = enDash
  } else if (node.value === twoDashes) {
    node.value = emDash
  }
}
function inverted ( node ) { if ( node . value === threeDashes ) { node . value = enDash } else if ( node . value === twoDashes ) { node . value = emDash } }
Transform three dahes into an en-dash, and two into an em-dash.
Transform three dahes into an en - dash and two into an em - dash .