mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-22 03:05:19 -04:00
29 lines
937 B
TypeScript
29 lines
937 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 MarkdownIt from 'markdown-it'
|
|
import abbreviation from 'markdown-it-abbr'
|
|
import definitionList from 'markdown-it-deflist'
|
|
import subscript from 'markdown-it-sub'
|
|
import superscript from 'markdown-it-sup'
|
|
import inserted from 'markdown-it-ins'
|
|
import marked from 'markdown-it-mark'
|
|
import footnote from 'markdown-it-footnote'
|
|
import { imageSize } from '@hedgedoc/markdown-it-image-size'
|
|
|
|
export class GenericSyntaxMarkdownExtension extends MarkdownExtension {
|
|
public configureMarkdownIt(markdownIt: MarkdownIt): void {
|
|
abbreviation(markdownIt)
|
|
definitionList(markdownIt)
|
|
subscript(markdownIt)
|
|
superscript(markdownIt)
|
|
inserted(markdownIt)
|
|
marked(markdownIt)
|
|
footnote(markdownIt)
|
|
imageSize(markdownIt)
|
|
}
|
|
}
|