hidden group-hover:block bottom-full left-0 bg-white border border-gray-200 rounded px-2 py-1 text-sm text-green-600 whitespace-nowrap z-10">' +
          corrected +
          "</span></span>"
        );
      },
    );

    // Process grammar corrections {{ original | corrected }}
    content = content.replace(
      /\{\{ ([^|]+) \| ([^}]+) \}\}/g,
      function (match, original, corrected) {
        return (
          '<span class="bg-blue-100 line-through relative group cursor-help px-1" title="' +
  