mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-13 14:44:43 -04:00

Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de> Co-authored-by: Philip Molares <philip.molares@udo.edu>
18 lines
664 B
TypeScript
18 lines
664 B
TypeScript
/*
|
|
* SPDX-FileCopyrightText: 2021 The HedgeDoc developers (see AUTHORS file)
|
|
*
|
|
* SPDX-License-Identifier: AGPL-3.0-only
|
|
*/
|
|
|
|
import { MarkdownExtension } from '../markdown-extension'
|
|
import type { ComponentReplacer } from '../../replace-components/component-replacer'
|
|
import { UploadIndicatingImageFrameReplacer } from './upload-indicating-image-frame-replacer'
|
|
|
|
/**
|
|
* A markdown extension that shows {@link UploadIndicatingFrame} for images that are getting uploaded.
|
|
*/
|
|
export class UploadIndicatingImageFrameMarkdownExtension extends MarkdownExtension {
|
|
buildReplacers(): ComponentReplacer[] {
|
|
return [new UploadIndicatingImageFrameReplacer()]
|
|
}
|
|
}
|