-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
enableMarkdownInDescription does not work in parent elements of if description is above input element #3975
Comments
@dejanbelusic @heath-freenome ping, because you seem to have been involved in #3665 |
@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? |
I am pretty busy myself, but maybe I can find a customer who needs this and is willing to pay, or a colleague might find the time. |
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
}}} |
Hi @heath-freenome, I created a PR fixing this issue: #4405, you can take a look! Hi @quazgar, sorry it took me this long to tackle this issue. I wish I could have done it sooner, hope it still brings you value. |
In the example you shared here, please note that in Shema you are using |
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: