src/client/components/PlainMarkdownInput/slate/tokenizer.js
function getEmphasisToken({ tokens, intEmphasis, currTag, num }) {
  const rawContent = joinArrString(_.flattenDeep([
    tokens[num].markup,
    intEmphasis,
    tokens[num].markup
  ]));
  const contentLength = getTokensLength(rawContent);
  return {
    type: getEmphasisType(currTag),
    content: rawContent,
    length: contentLength
  };
}
function getEmphasisToken({ tokens, intEmphasis, currTag, num }) {
  const rawContent = joinArrString(_.flattenDeep([
    tokens[num].markup,
    intEmphasis,
    tokens[num].markup
  ]));
  const contentLength = getTokensLength(rawContent);
  return {
    type: getEmphasisType(currTag),
    content: rawContent,
    length: contentLength
  };
}
function getEmphasisToken ( { tokens , intEmphasis , currTag , num } ) { const rawContent = joinArrString ( _ . flattenDeep ( [ tokens [ num ] . markup , intEmphasis , tokens [ num ] . markup ] ) ) ; const contentLength = getTokensLength ( rawContent ) ; return { type : getEmphasisType ( currTag ) , content : rawContent , length : contentLength } ; }
getEmphasisToken - Function create emphasis-token

@param tokens
@param intEmphasis
@param currTag
@param num
@returns {{type, content, length}}
getEmphasisToken - Function create emphasis - token