fix: Enable embeds within HTML and PDF exports (#6290)
This commit is contained in:
@@ -2,8 +2,7 @@ import * as React from "react";
|
||||
import Frame from "../components/Frame";
|
||||
import { EmbedProps as Props } from ".";
|
||||
|
||||
function Vimeo(props: Props) {
|
||||
const { matches } = props.attrs;
|
||||
function Vimeo({ matches, ...props }: Props) {
|
||||
const videoId = matches[4];
|
||||
const hId = matches[5];
|
||||
|
||||
@@ -21,8 +20,4 @@ function Vimeo(props: Props) {
|
||||
);
|
||||
}
|
||||
|
||||
Vimeo.ENABLED = [
|
||||
/(http|https)?:\/\/(www\.)?vimeo\.com\/(?:channels\/(?:\w+\/)?|groups\/([^/]*)\/videos\/|)(\d+)(?:\/|\?)?([\d\w]+)?/,
|
||||
];
|
||||
|
||||
export default Vimeo;
|
||||
|
||||
Reference in New Issue
Block a user