F
Filamentβ€’16mo ago
DitIsMik

When using ->markdown on TextEntry in a infolist white spaces are not rendering

Components\TextEntry::make('description') ->label('Omschrijving')
->markdown()
->columnSpanFull()
Components\TextEntry::make('description') ->label('Omschrijving')
->markdown()
->columnSpanFull()
The following code is not rendering white spaces in the infolist. Is there a solution for this?
10 Replies
Patrick Boivin
Patrick Boivinβ€’16mo ago
Can you post a screenshot of the rendering issue?
Dennis Koch
Dennis Kochβ€’16mo ago
And the content of the field.
DitIsMik
DitIsMikOPβ€’16mo ago
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.
Dennis Koch
Dennis Kochβ€’16mo ago
What does the HTML look like? I think you are just missing some style. Like a Tailwind prose class
DitIsMik
DitIsMikOPβ€’16mo ago
this 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?
Dennis Koch
Dennis Kochβ€’16mo ago
@Dan Harrin What do you think about this? ->markdown() on TextEntry should apply prose otherwise the markdown is a bit useless, right?
Dan Harrin
Dan Harrinβ€’16mo ago
sure
Dennis Koch
Dennis Kochβ€’16mo ago
@DitIsMik Wanna create a PR?
DitIsMik
DitIsMikOPβ€’16mo ago
Sure! Will create it this afternoon currently at work πŸ™‚
DitIsMik
DitIsMikOPβ€’16mo ago
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...
Want results from more Discord servers?
Add your server