Skip to content

TextEntry markdown option doesn't parse backticks #15881

Open
@pezeee001

Description

@pezeee001

Package

filament/infolists

Package Version

v3.3.4

Laravel Version

v12.2.0

Livewire Version

v3.6.2

PHP Version

PHP 8.4.5

Problem description

Code highlighted with backticks (tested with singular ` and triple ```) isn't parsed as a code block and is displayed plainly including backticks.

Expected behavior

`code` should be displayed as code and ```code``` displayed as code

Steps to reproduce

  1. Create a model with a string field "text" that has valid markdown, for example:
    ```
    code block
    ```
    
    Text with some `code` and *italics* in it
    1. working
    2. markdown
    3. list
    
  2. Create a Resource with a view page that uses this schema:
    public static function infolist(Filament\Infolists\Infolist $infolist): Infolist
    {
        return $infolist
            ->schema([
                Filament\Infolists\Components\TextEntry::make('text')
                    ->markdown()
            ]);
    }
    
  3. View this model through the infolist.
  4. See that the list and italics work, but backticks don't have any effect.

Reproduction repository (issue will be closed if this is not valid)

https://github.com/pezeee001/filament_issue

Relevant log output

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    Status

    Todo

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions