Skip to content

Instantly share code, notes, and snippets.

@jrtashjian
Created October 14, 2021 01:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jrtashjian/98c1fcfd0e9f9ed59d710ccf7ef4291c to your computer and use it in GitHub Desktop.
Save jrtashjian/98c1fcfd0e9f9ed59d710ccf7ef4291c to your computer and use it in GitHub Desktop.
registerBlockVariation( 'core/embed', {
name: 'gist',
title: 'Gist',
patterns: [ /https?:\/\/gist\.github\.com.+/i ],
attributes: { providerNameSlug: 'gist' },
isActive: () => [ 'providerNameSlug' ],
} );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment