@webmate-studio/builder 0.2.84 → 0.2.85
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 +1 -1
- package/src/markdown.js +4 -3
package/package.json
CHANGED
package/src/markdown.js
CHANGED
|
@@ -121,9 +121,10 @@ export function processMarkdownProps(props, propSchema = null, componentMetadata
|
|
|
121
121
|
if (isMarkdown) {
|
|
122
122
|
const options = {};
|
|
123
123
|
|
|
124
|
-
// Apply headingStartLevel from component metadata
|
|
125
|
-
|
|
126
|
-
|
|
124
|
+
// Apply headingStartLevel from prop schema (preferred) or component metadata (fallback)
|
|
125
|
+
const headingStartLevel = propSchema?.[key]?.headingStartLevel || componentMetadata?.headingStartLevel;
|
|
126
|
+
if (headingStartLevel) {
|
|
127
|
+
options.headingStartLevel = headingStartLevel;
|
|
127
128
|
}
|
|
128
129
|
|
|
129
130
|
// Convert markdown to HTML
|