Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Laravel Markdown Laravel Package

spatie/laravel-markdown

Render Markdown in Laravel with a Blade x-markdown component or a configurable MarkdownRenderer. Converts content to HTML with heading IDs, links, and syntax-highlighted code blocks, using options from your config and container resolution.

View on GitHub
Deep Wiki
Context7

title: Configuring code highlighting weight: 2

By default, Shiki PHP is used to highlight 100+ languages, including PHP, JS, Blade, and many more.

In the code_highlighting.theme value of the markdown config file you can specify the default theme to be used. This value can be one of the themes that Shiki supports out of the box.

Shiki also supports any VSCode themes.

You can use a custom theme using the absolute path to a theme in as the value for code_highlighting.theme.

If you want to change the theme for a particular instance of x-markdown, pass a theme to the theme attribute.

<x-markdown theme="github-dark">
```php
echo 'Hello world';
```
</x-markdown>

Disabling code highlighting

Code highlighting can be disabled globally, by setting the code_highlighting.enabled key in the markdown config file to false.

If you don't want to use code highlighting for a particular instance of x-markdown, pass false to the code-highlighting attribute.

<x-markdown :highlight-code="false">
```php
echo 'Hello world';
```
</x-markdown>
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
davejamesmiller/laravel-breadcrumbs
artisanry/parsedown
christhompsontldr/phpsdk
enqueue/dsn
bunny/bunny
enqueue/test
enqueue/null
enqueue/amqp-tools
milesj/emojibase
bower-asset/punycode
bower-asset/inputmask
bower-asset/jquery
bower-asset/yii2-pjax
laravel/nova
spatie/laravel-mailcoach
spatie/laravel-superseeder
laravel/liferaft
nst/json-test-suite
danielmiessler/sec-lists
jackalope/jackalope-transport