1
0
Fork 0
mirror of https://github.com/hedgedoc/hedgedoc.git synced 2025-04-23 08:26:02 +00:00

Replace imsize with @hedgedoc/markdown-it-image-size

Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
This commit is contained in:
Tilman Vatteroth 2021-09-04 19:39:40 +02:00
parent 7aec58f847
commit bb0dd4d935
5 changed files with 8 additions and 29 deletions
package.json
src
components/markdown-renderer/markdown-it-configurator
external-types/markdown-it-imsize
yarn.lock

View file

@ -63,7 +63,7 @@
"markdown-it-deflist": "2.1.0",
"markdown-it-emoji": "2.0.0",
"markdown-it-footnote": "3.0.3",
"markdown-it-imsize": "2.0.1",
"@hedgedoc/markdown-it-image-size": "1.0.1",
"markdown-it-ins": "3.0.1",
"markdown-it-mark": "3.0.1",
"markdown-it-mathjax": "2.0.0",

View file

@ -8,7 +8,7 @@ import MarkdownIt from 'markdown-it'
import abbreviation from 'markdown-it-abbr'
import definitionList from 'markdown-it-deflist'
import footnote from 'markdown-it-footnote'
import imsize from 'markdown-it-imsize'
import { imageSize } from '@hedgedoc/markdown-it-image-size'
import inserted from 'markdown-it-ins'
import marked from 'markdown-it-mark'
import subscript from 'markdown-it-sub'
@ -96,7 +96,7 @@ export class BasicMarkdownItConfigurator<T extends ConfiguratorDetails> {
inserted,
marked,
footnote,
imsize,
imageSize,
tasksLists,
alertContainer,
spoilerContainer

View file

@ -1,12 +0,0 @@
/*
* SPDX-FileCopyrightText: 2021 The HedgeDoc developers (see AUTHORS file)
*
* SPDX-License-Identifier: AGPL-3.0-only
*/
declare module 'markdown-it-imsize' {
import MarkdownIt from 'markdown-it/lib'
import { ImsizeOptions } from './interface'
const markdownItImsize: MarkdownIt.PluginWithOptions<ImsizeOptions>
export = markdownItImsize
}

View file

@ -1,9 +0,0 @@
/*
* SPDX-FileCopyrightText: 2021 The HedgeDoc developers (see AUTHORS file)
*
* SPDX-License-Identifier: AGPL-3.0-only
*/
export interface ImsizeOptions {
autofill?: boolean
}

View file

@ -1406,6 +1406,11 @@
react "^17.0.2"
react-dom "^17.0.2"
"@hedgedoc/markdown-it-image-size@1.0.1":
version "1.0.1"
resolved "https://registry.yarnpkg.com/@hedgedoc/markdown-it-image-size/-/markdown-it-image-size-1.0.1.tgz#c785aa544b9f392cac742ec660c8dfc7459c2585"
integrity sha512-kqqXIb0NfUp4cl0kN7UlOL/zwe+OgESfZ69luPSRTMObdO54C3dCumKoIodbQau8HE8fkN44uQSFhMt6mSdsLg==
"@hedgedoc/markdown-it-task-lists@1.0.2":
version "1.0.2"
resolved "https://registry.yarnpkg.com/@hedgedoc/markdown-it-task-lists/-/markdown-it-task-lists-1.0.2.tgz#3e140fad624fba0d066ebab0b6d25da9e210b98b"
@ -9529,11 +9534,6 @@ markdown-it-footnote@3.0.3:
resolved "https://registry.yarnpkg.com/markdown-it-footnote/-/markdown-it-footnote-3.0.3.tgz#e0e4c0d67390a4c5f0c75f73be605c7c190ca4d8"
integrity sha512-YZMSuCGVZAjzKMn+xqIco9d1cLGxbELHZ9do/TSYVzraooV8ypsppKNmUJ0fVH5ljkCInQAtFpm8Rb3eXSrt5w==
markdown-it-imsize@2.0.1:
version "2.0.1"
resolved "https://registry.yarnpkg.com/markdown-it-imsize/-/markdown-it-imsize-2.0.1.tgz#cca0427905d05338a247cb9ca9d968c5cddd5170"
integrity sha1-zKBCeQXQUziiR8ucqdloxc3dUXA=
markdown-it-ins@3.0.1:
version "3.0.1"
resolved "https://registry.yarnpkg.com/markdown-it-ins/-/markdown-it-ins-3.0.1.tgz#c09356b917cf1dbf73add0b275d67ab8c73d4b4d"