Skip to content

Issues with DefaultAttributes CommonMark Extension #10247

Closed Answered by jasonvarga
sebandrei asked this question in Q&A
Discussion options

You must be logged in to vote

It seems to work fine here. Make sure you are importing the BlockQuote class in your config file.

+ use League\CommonMark\Extension\CommonMark\Node\Block\BlockQuote;

<?php

return [

  'configs' => [
    'default' => [
      'default_attributes' => [
        BlockQuote::class => [
          'class' => 'blockquote',
        ],
      ],
    ],
  ],

];

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by duncanmcclean
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants