fix: Enable embeds within HTML and PDF exports (#6290)
This commit is contained in:
@@ -2,8 +2,6 @@ import * as React from "react";
|
||||
import styled from "styled-components";
|
||||
import { EmbedProps as Props } from ".";
|
||||
|
||||
const GITLAB_NAMESPACE_REGEX = "(([a-zA-Z\\d-]+)/)";
|
||||
|
||||
const Iframe = styled.iframe`
|
||||
margin-top: 8px;
|
||||
`;
|
||||
@@ -29,10 +27,4 @@ function GitLabSnippet(props: Props) {
|
||||
);
|
||||
}
|
||||
|
||||
GitLabSnippet.ENABLED = [
|
||||
new RegExp(
|
||||
`^https://gitlab\\.com/${GITLAB_NAMESPACE_REGEX}*-/snippets/\\d+$`
|
||||
),
|
||||
];
|
||||
|
||||
export default GitLabSnippet;
|
||||
|
||||
Reference in New Issue
Block a user