Smartypants converts back tick style quote in a different way if it's in the beginning of the string.
const typogr = require("typogr");
let text = "'wrong', 'right'";
text = typogr(text).chain().smartypants().value();
document.getElementById("app").innerHTML = text;
Smartypants converts back tick style quote in a different way if it's in the beginning of the string.
Result:
’wrong’, ‘right’
Expected result:
‘wrong’, ‘right’
https://codesandbox.io/embed/mutable-water-7gmyi?fontsize=14&hidenavigation=1&theme=dark