@marvalt/wparser 0.1.45 → 0.1.48
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 +2 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.esm.js +2 -2
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -2436,9 +2436,9 @@ const Heading = ({ block, children, context }) => {
|
|
|
2436
2436
|
const sizeClass = fontSize || (level === 1 ? 'text-4xl' : level === 2 ? 'text-3xl' : level === 3 ? 'text-2xl' : 'text-xl');
|
|
2437
2437
|
// Get spacing from config with improved defaults
|
|
2438
2438
|
const spacingClass = getHeadingSpacing(context.spacingConfig || context.registry.spacingConfig, level);
|
|
2439
|
-
// Extract text color if specified, otherwise
|
|
2439
|
+
// Extract text color if specified, otherwise fall back to heading var (set by dstyler) or inherit
|
|
2440
2440
|
const textColor = extractTextColor(block, context);
|
|
2441
|
-
const textColorClass = textColor || '';
|
|
2441
|
+
const textColorClass = textColor || 'text-[var(--dstyler-color-heading)]';
|
|
2442
2442
|
return (jsxRuntimeExports.jsx(Tag, { className: buildClassName('font-bold', textColorClass, sizeClass, textAlign, spacingClass), children: children ?? content }));
|
|
2443
2443
|
};
|
|
2444
2444
|
const Image = ({ block, context }) => {
|