code: function (itemText) {
  
      // The numbering flag is unset when called by autoindent.
      if (isNumberedList === undefined) {
        isNumberedList = /^\s*\d/.test(itemText);
      }
  
      // Renumber/bullet the list element.
      itemText = itemText.replace(isCheckList
        ? /^[ ]{0,3}([*+-]|\d+[.])\s+\[([ xX])\]\s/gm
        : /^[ ]{0,3}([*+-]|\d+[.])\s/gm,
        function (match, p1, p2) {
          return getItemPrefix(p2);
        });
  
      return itemText;
    }
docs: Fixes the prefixes of the other list items.