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 YouTube(props: Props) {
|
||||
const { matches } = props.attrs;
|
||||
function YouTube({ matches, ...props }: Props) {
|
||||
const videoId = matches[1];
|
||||
|
||||
let start;
|
||||
@@ -26,8 +25,4 @@ function YouTube(props: Props) {
|
||||
);
|
||||
}
|
||||
|
||||
YouTube.ENABLED = [
|
||||
/(?:https?:\/\/)?(?:www\.)?youtu\.?be(?:\.com)?\/?.*(?:watch|embed)?(?:.*v=|v\/|\/)([a-zA-Z0-9_-]{11})([\&\?](.*))?$/i,
|
||||
];
|
||||
|
||||
export default YouTube;
|
||||
|
||||
Reference in New Issue
Block a user