mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-14 07:04:45 -04:00
18 lines
584 B
TypeScript
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)
|
|
}
|
|
}
|