token = state.push("span_open", "span", 1);
// Add this line :
token = state.push('text', '', 0);
token.content = content;
token = state.push("span_close", "span", -1);
Source :
token = state.push("span_open", "span", 1);
// Add this line :
token = state.push('text', '', 0);
token.content = content;
token = state.push("span_close", "span", -1);
Source :