When using ->markdown on TextEntry in a infolist white spaces are not rendering
The following code is not rendering white spaces in the infolist. Is there a solution for this?
10 Replies
Can you post a screenshot of the rendering issue?
And the content of the field.
Yes,
one image is the entry here the other the form component. The white spaces are correct in the form component not on the entry.
Forms\Components\MarkdownEditor::make('description')
->label('Omschrijving')
->required(),
this is the form component.
What does the HTML look like? I think you are just missing some style. Like a Tailwind
prose
classthis is the html it is indeed missing the prose class. When I add it it is adding white spaces to the content. Shouldn't this be default when adding the ->markdown() option?
@Dan Harrin What do you think about this?
->markdown()
on TextEntry
should apply prose
otherwise the markdown is a bit useless, right?sure
@DitIsMik Wanna create a PR?
Sure! Will create it this afternoon currently at work π
https://github.com/filamentphp/filament/pull/8002 pull request is here π
GitHub
Added the prose class default on markdown option on a text entry by...
Changes have been thoroughly tested to not break existing functionality.
New functionality has been documented or existing documentation has been updated to reflect changes.
Visual changes are ex...