commonmark.js
commonmark.js copied to clipboard
Bug in previous_char() function when handling surrogates during inline parsing of emphasis
Probable bug in previous_char() function
if ((two_previous_cc & 0xfc00) !== 0xd800) {
return previous_char;
}
as previous_char is the name of the function itself, and in other alternatives the function returns a string, it is unexpected to have the function return itself