@uniweb/kit 0.9.1 → 0.9.3
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/package.json +2 -2
- package/src/styled/Prose/index.jsx +14 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uniweb/kit",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.3",
|
|
4
4
|
"description": "Standard component library for Uniweb foundations",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"fuse.js": "^7.0.0",
|
|
39
39
|
"shiki": "^3.0.0",
|
|
40
40
|
"tailwind-merge": "^2.6.0",
|
|
41
|
-
"@uniweb/core": "0.7.
|
|
41
|
+
"@uniweb/core": "0.7.3"
|
|
42
42
|
},
|
|
43
43
|
"peerDependencies": {
|
|
44
44
|
"react": "^18.0.0 || ^19.0.0",
|
|
@@ -81,6 +81,20 @@ function SequenceElement({ element, block }) {
|
|
|
81
81
|
case 'dataBlock':
|
|
82
82
|
return null
|
|
83
83
|
|
|
84
|
+
case 'math_display': {
|
|
85
|
+
// Block math from $$...$$ on its own line or ```math fence.
|
|
86
|
+
// The mathml string is pre-compiled at parse time; the browser
|
|
87
|
+
// renders real MathML natively. Foundations that want to style
|
|
88
|
+
// errors can target .temml-error inside this wrapper.
|
|
89
|
+
if (!element.mathml) return null
|
|
90
|
+
return (
|
|
91
|
+
<div
|
|
92
|
+
className="math-display"
|
|
93
|
+
dangerouslySetInnerHTML={{ __html: element.mathml }}
|
|
94
|
+
/>
|
|
95
|
+
)
|
|
96
|
+
}
|
|
97
|
+
|
|
84
98
|
case 'list': {
|
|
85
99
|
const Tag = element.style === 'ordered' ? 'ol' : 'ul'
|
|
86
100
|
return (
|