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

Support embeds class names for config serialization #54

Merged
merged 1 commit into from May 5, 2023

Conversation

erikn69
Copy link
Contributor

@erikn69 erikn69 commented Apr 28, 2023

Closes #33 (comment)

https://commonmark.thephpleague.com/2.4/extensions/embed/#usage
https://github.com/ueberdosis/commonmark-embed-extension#usage

$environment = new Environment([
    'embeds' => [
        YouTube::class, // new YouTube(),
        Vimeo::class, // new Vimeo(),
    ],
    ////
    'embed' => [
        'adapter' => OscaroteroEmbedAdapter::class, // new OscaroteroEmbedAdapter(),
        'allowed_domains' => ['youtube.com', 'twitter.com', 'github.com'],
        'fallback' => 'link',
    ],
]);

commonmark support third party embeds/custom embeds

@freekmurze freekmurze merged commit 1cdde7a into spatie:main May 5, 2023
8 checks passed
@freekmurze
Copy link
Member

Thanks!

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