You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As demonstrated in this playground instance, enableMarkdownInDescription only seems to work in leaf nodes, not in higher levels of the json schema tree.
Expected Behavior
enableMarkdownInDescription should work everywhere.
Steps To Reproduce
Option 1: Look ath the playground example linked above.
Option 2:
Add "ui:enableMarkdownInDescription": true to the ui schema definition in an element which has children.
Add a description which should be rendered as Markdown.
Environment
Current playground.
Anything else?
No response
The text was updated successfully, but these errors were encountered:
@quazgar Good catch. I'm really busy and I do not have time to make a fix. If @dejanbelusic is unable to help, would you be willing to provide a PR to fix this?
New playground instance which shows that markdown also does not seem to work for descriptions which render above the input element (a boolean field in this case).
Schema
{
"title": "A list of tasks",
"type": "object",
"properties": {
"tasks": {
"description": "*very* simple, but no Markdown",
"type": "object",
"title": "Tasks",
"properties": {
"details": {
"type": "string",
"title": "Task details",
"description": "Description which renders Markdown *correctly*."
},
"has_Markdown": {
"type": "boolean",
"description": "Also *no Markdown*"
}}}}}
UI schema
{
"tasks": {
"ui:enableMarkdownInDescription": true,
"ui:description": "New *description*, still no Markdown.",
"details": {
"ui:enableMarkdownInDescription": true,
"ui:widget": "textarea"
},
"has_markdown": {
"ui:enableMarkdownInDescription": true
}}}
quazgar
changed the title
enableMarkdownInDescription does not work in parent elements
enableMarkdownInDescription does not work in parent elements of if description is above input element
Dec 13, 2023
Prerequisites
What theme are you using?
material-ui
Version
5.x / current playground
Current Behavior
As demonstrated in this playground instance,
enableMarkdownInDescription
only seems to work in leaf nodes, not in higher levels of the json schema tree.Expected Behavior
enableMarkdownInDescription
should work everywhere.Steps To Reproduce
Option 1: Look ath the playground example linked above.
Option 2:
"ui:enableMarkdownInDescription": true
to the ui schema definition in an element which has children.Environment
Anything else?
No response
The text was updated successfully, but these errors were encountered: