code: function wrapTextAndGetRange(pre, text, post) {
    return {
      result: `${pre}${text}${post}`,
      from: pre.length,
      to: pre.length + text.length
    };
  }
docs: wrap text with pre & post and return with text range
  @param {string} pre - text pre
  @param {string} text - text
  @param {string} post - text post
  @returns {object} - wrapped text and range(from, to)
  @ignore