-
-
Notifications
You must be signed in to change notification settings - Fork 337
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
Polish Markdown component #1477
Conversation
component: CodeContainer, | ||
}, | ||
}, | ||
slugify: (text) => `toolpad-markdown-${text}`, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
But this would turn the links into #toolpad-markdown-my-id
. When is id a problem exactly?
Perhaps we should just remove the ids for now?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When is id a problem exactly?
No idea. I left the feedback in case we rely on getElementById
. If we don't, I think that keeping the id is simpler.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In some cases, yes, for the overlay container. Next.js relies on it for a few things, and the MUI X datagrid as well. And I think GA as well. There are also a bunch of autogenerated ones both in Toolpad and MUI core, mostly for a11y reasons I think.
h5: { ...theme.typography.h5, ...gutters(4, 4) }, | ||
h6: { ...theme.typography.h6, ...gutters(4, 4) }, | ||
p: { margin: 0, marginBottom: 6 }, | ||
maxWidth: 'fill-available', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maxWidth: 'fill-available', |
This doesn't seem to do anything for me. Which situation is this solving?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, ok, I see. Does it have advantages over maxWidth: '100%'
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nothing specifically I guess, I can use 100%
as well
react-markdown
withmarkdown-to-jsx
Link
instead ofa
target=_blank
Screen.Recording.2022-12-20.at.4.07.58.PM.mov