@lobehub/ui 2.1.7 → 2.1.8

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.
@@ -72,7 +72,8 @@ export function preprocessLaTeX(str) {
72
72
  });
73
73
 
74
74
  // Step 3: Escape dollar signs that are likely currency indicators
75
- content = content.replaceAll(/\$(?=\d)/g, '\\$');
75
+ // Deprecated, as it causes parsing errors for formulas starting with a number, such as `$1$`
76
+ // content = content.replaceAll(/\$(?=\d)/g, '\\$');
76
77
 
77
78
  // Step 4: Restore LaTeX expressions
78
79
  content = content.replaceAll(/<<LATEX_(\d+)>>/g, function (_, index) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lobehub/ui",
3
- "version": "2.1.7",
3
+ "version": "2.1.8",
4
4
  "description": "Lobe UI is an open-source UI component library for building AIGC web apps",
5
5
  "keywords": [
6
6
  "lobehub",