gnoxnahte_obsidian-auto-embed/embeds/embedBase.ts
2024-03-05 08:42:56 +08:00

13 lines
No EOL
325 B
TypeScript

import { PluginSettings } from "main";
export interface EmbedBase {
readonly name: string;
// To identify if the anchor link matches the embed type
readonly regex: RegExp;
createEmbed(
link: string,
container: HTMLElement,
settings: Readonly<PluginSettings>,
): HTMLElement;
}