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