hedgedoc/src/components/markdown-renderer/markdown-extension/code-block-markdown-extension/code-block-markdown-extension.ts
Tilman Vatteroth 76cae637e6 Create intermediate class for code block markdown extension
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2022-04-02 21:45:31 +02:00

18 lines
584 B
TypeScript

/*
* SPDX-FileCopyrightText: 2022 The HedgeDoc developers (see AUTHORS file)
*
* SPDX-License-Identifier: AGPL-3.0-only
*/
import type MarkdownIt from 'markdown-it'
import { codeBlockMarkdownPlugin } from './code-block-markdown-plugin'
import { MarkdownExtension } from '../markdown-extension'
/**
* A {@link MarkdownExtension markdown extension} that is used for code fence replacements.
*/
export abstract class CodeBlockMarkdownExtension extends MarkdownExtension {
public configureMarkdownIt(markdownIt: MarkdownIt): void {
codeBlockMarkdownPlugin(markdownIt)
}
}