GrahamCampbell / Laravel-Markdown

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

adding id to headers #168

Closed Jakub003 closed 2 years ago

Jakub003 commented 2 years ago

Is there something I am not seeing with being able to add an id to headers?

# Header Exmaple {#header-example}

I found that example on this site https://uhded.com/add-id-header-markdown

Jakub003 commented 2 years ago

Any help with this is much apprecaited

Jakub003 commented 2 years ago

Just got this resolved.

    'extensions' => [
        League\CommonMark\Extension\CommonMark\CommonMarkCoreExtension::class,
        League\CommonMark\Extension\Table\TableExtension::class,
        League\CommonMark\Extension\Autolink\AutolinkExtension::class,
        Torchlight\Commonmark\V2\TorchlightExtension::class,
        League\CommonMark\Extension\ExternalLink\ExternalLinkExtension::class,
        League\CommonMark\Extension\TaskList\TaskListExtension::class,

       // need to add new class
        League\CommonMark\Extension\Attributes\AttributesExtension::class,
    ],