hedgedoc/src/components/markdown-renderer/markdown-extension/markdown-extension.ts
Tilman Vatteroth afe35ca164 fix(markdown extensions): Rename tag name allow list method name
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2022-10-09 22:51:41 +02:00

41 lines
1 KiB
TypeScript

/*
* SPDX-FileCopyrightText: 2022 The HedgeDoc developers (see AUTHORS file)
*
* SPDX-License-Identifier: AGPL-3.0-only
*/
import type MarkdownIt from 'markdown-it'
import type { NodeProcessor } from '../node-preprocessors/node-processor'
import type { ComponentReplacer } from '../replace-components/component-replacer'
import type { Linter } from '../../editor-page/editor-pane/linter/linter'
/**
* Base class for Markdown extensions.
*/
export abstract class MarkdownExtension {
// eslint-disable-next-line @typescript-eslint/no-unused-vars
public configureMarkdownIt(markdownIt: MarkdownIt): void {
return
}
// eslint-disable-next-line @typescript-eslint/no-unused-vars
public configureMarkdownItPost(markdownIt: MarkdownIt): void {
return
}
public buildNodeProcessors(): NodeProcessor[] {
return []
}
public buildReplacers(): ComponentReplacer[] {
return []
}
public buildTagNameAllowList(): string[] {
return []
}
public buildLinter(): Linter[] {
return []
}
}