mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-21 18:55:19 -04:00
fix(types): fix types for markdown-it-emoji
Signed-off-by: Erik Michelson <github@erik.michelson.eu>
This commit is contained in:
parent
b47d728698
commit
38e2fe24a4
2 changed files with 9 additions and 4 deletions
|
@ -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
|
* SPDX-License-Identifier: AGPL-3.0-only
|
||||||
*/
|
*/
|
||||||
import { MarkdownRendererExtension } from '../../../components/markdown-renderer/extensions/_base-classes/markdown-renderer-extension'
|
import { MarkdownRendererExtension } from '../../../components/markdown-renderer/extensions/_base-classes/markdown-renderer-extension'
|
||||||
import { combinedEmojiData } from './mapping'
|
import { combinedEmojiData } from './mapping'
|
||||||
import type MarkdownIt from 'markdown-it'
|
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.
|
* Adds support for utf-8 emojis.
|
||||||
|
|
|
@ -4,9 +4,14 @@
|
||||||
* SPDX-License-Identifier: AGPL-3.0-only
|
* 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 MarkdownIt from 'markdown-it/lib'
|
||||||
import type { EmojiOptions } from './interface'
|
import type { EmojiOptions } from './interface'
|
||||||
const markdownItEmoji: MarkdownIt.PluginWithOptions<EmojiOptions>
|
const markdownItEmoji: MarkdownIt.PluginWithOptions<EmojiOptions>
|
||||||
export = markdownItEmoji
|
const pluginVariations = {
|
||||||
|
bare: markdownItEmoji,
|
||||||
|
light: markdownItEmoji,
|
||||||
|
full: markdownItEmoji
|
||||||
|
}
|
||||||
|
export = pluginVariations
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue