GrahamCampbell / Laravel-Markdown

A CommonMark wrapper for Laravel
https://gjcampbell.co.uk/
MIT License
1.32k stars 139 forks source link

Extension not working #150

Closed Sennik closed 3 years ago

Sennik commented 4 years ago

I can't get my head around this:

composer.json

"require": {
    "php": "^7.2",
    "fideloper/proxy": "^4.0",
    "graham-campbell/markdown": "^13.0",
    "laravel/framework": "^6.0",
    "laravel/helpers": "^1.1",
    "laravel/tinker": "^1.0",
    "laravelcollective/html": "^6.0",
    "league/commonmark": "^1.5",
    "symfony/translation": "4.3.8"
},

in /config/markdown.php:

'extensions' => [
    \League\CommonMark\Extension\Table\TableExtension::class
],

$txt:

# This is the Header
th | th(center) | th(right)
---|:----------:|----------:
td | td         | td

Then I do this in Blade:

@markdown( $txt )

Then the table is not parsed correctly but the header is. What am I doing wrong?

xscode-auto-reply[bot] commented 4 years ago

Thanks for getting in touch. I'll get to your issue soon! :rocket:

For urgent issues and priority support, please visit https://xscode.com/grahamcampbell/Laravel-Markdown.

Sennik commented 4 years ago

What is urgent? Less then 3 days? a week, please tell me ;-)

GrahamCampbell commented 4 years ago

Did you clear your config cache?