Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add padding around rendered fenced code and change theme #184

Open
samgurung opened this issue Oct 4, 2024 · 0 comments
Open

Add padding around rendered fenced code and change theme #184

samgurung opened this issue Oct 4, 2024 · 0 comments

Comments

@samgurung
Copy link

In the markdown.php config file i have set this in the extensions

'extensions' => [
        League\CommonMark\Extension\CommonMark\CommonMarkCoreExtension::class,
        League\CommonMark\Extension\Table\TableExtension::class,
        League\CommonMark\Extension\DisallowedRawHtml\DisallowedRawHtmlExtension::class,
        League\CommonMark\Extension\Table\TableExtension::class,
        League\CommonMark\Extension\Attributes\AttributesExtension::class,
        Spatie\CommonMarkShikiHighlighter\HighlightCodeExtension::class,
    ],

any code in my markdown is highigted. However i want to add some padding and margin to the rendered code. How do i do that. Also how do i specify a different theme the HighlightCodeExtension

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant