diff --git a/frontend/src/extensions/essential-app-extensions/emoji/emoji-markdown-renderer-extension.ts b/frontend/src/extensions/essential-app-extensions/emoji/emoji-markdown-renderer-extension.ts index 602d8f85b..189c2db11 100644 --- a/frontend/src/extensions/essential-app-extensions/emoji/emoji-markdown-renderer-extension.ts +++ b/frontend/src/extensions/essential-app-extensions/emoji/emoji-markdown-renderer-extension.ts @@ -1,12 +1,12 @@ /* - * SPDX-FileCopyrightText: 2022 The HedgeDoc developers (see AUTHORS file) + * SPDX-FileCopyrightText: 2024 The HedgeDoc developers (see AUTHORS file) * * SPDX-License-Identifier: AGPL-3.0-only */ import { MarkdownRendererExtension } from '../../../components/markdown-renderer/extensions/_base-classes/markdown-renderer-extension' import { combinedEmojiData } from './mapping' import type MarkdownIt from 'markdown-it' -import emoji from 'markdown-it-emoji/bare' +import { bare as emoji } from 'markdown-it-emoji' /** * Adds support for utf-8 emojis. diff --git a/frontend/src/external-types/markdown-it-emoji/index.d.ts b/frontend/src/external-types/markdown-it-emoji/index.d.ts index e29c34f59..8fc344de2 100644 --- a/frontend/src/external-types/markdown-it-emoji/index.d.ts +++ b/frontend/src/external-types/markdown-it-emoji/index.d.ts @@ -4,9 +4,14 @@ * SPDX-License-Identifier: AGPL-3.0-only */ -declare module 'markdown-it-emoji/bare' { +declare module 'markdown-it-emoji' { import type MarkdownIt from 'markdown-it/lib' import type { EmojiOptions } from './interface' const markdownItEmoji: MarkdownIt.PluginWithOptions - export = markdownItEmoji + const pluginVariations = { + bare: markdownItEmoji, + light: markdownItEmoji, + full: markdownItEmoji + } + export = pluginVariations }