react-ai-renderer 0.1.14 → 0.1.15

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
@@ -58389,7 +58389,8 @@ function preprocessMdxContent(content) {
58389
58389
  // 将其他自闭合 HTML 标签转换为 JSX 格式
58390
58390
  .replace(/<(hr|img|input)([^>]*)(?<!\/)>/gi, '<$1$2 />');
58391
58391
  // 转义非标准格式的内容
58392
- return processedContent.replace(/<(?!\/|[A-Z][a-zA-Z]*\b|[a-z][a-zA-Z0-9]*\b)/g, '&lt;');
58392
+ // 支持以下划线开头的组件名(如 _THINK)
58393
+ return processedContent.replace(/<(?!\/|[A-Z_][a-zA-Z0-9_]*\b|[a-z][a-zA-Z0-9]*\b)/g, '&lt;');
58393
58394
  }
58394
58395
  // 辅助函数:格式化props
58395
58396
  function formatProps(props) {