@ai-react-markdown/core 1.4.6 → 1.4.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -3098,6 +3098,11 @@ function sourceIdFromFootnoteLiId(idProp, clobberPrefix) {
3098
3098
  try {
3099
3099
  return decodeURIComponent(raw);
3100
3100
  } catch {
3101
+ if (typeof process !== "undefined" && process.env.NODE_ENV !== "production") {
3102
+ console.warn(
3103
+ `[ai-react-markdown] Malformed percent-encoding in footnote id "${raw}"; its body may be missing from the aggregated footnote footer.`
3104
+ );
3105
+ }
3101
3106
  return raw;
3102
3107
  }
3103
3108
  }