fix(deps): Replace deprecated packages with @hedgedoc/markdown-it-plugins

Signed-off-by: Renovate Bot <bot@renovateapp.com>
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
This commit is contained in:
Tilman Vatteroth 2022-10-24 20:48:28 +02:00
parent b1360330d4
commit e831450f6f
4 changed files with 9 additions and 20 deletions

View file

@ -46,8 +46,7 @@
"@codemirror/view": "6.4.0", "@codemirror/view": "6.4.0",
"@fontsource/source-sans-pro": "4.5.11", "@fontsource/source-sans-pro": "4.5.11",
"@hedgedoc/html-to-react": "1.4.5", "@hedgedoc/html-to-react": "1.4.5",
"@hedgedoc/markdown-it-image-size": "2.0.2", "@hedgedoc/markdown-it-plugins": "1.0.0",
"@hedgedoc/markdown-it-task-lists": "2.0.1",
"@hedgedoc/realtime": "0.3.0", "@hedgedoc/realtime": "0.3.0",
"@hpcc-js/wasm": "1.17.1", "@hpcc-js/wasm": "1.17.1",
"@mrdrogdrog/optional": "1.0.0", "@mrdrogdrog/optional": "1.0.0",

View file

@ -13,7 +13,7 @@ import superscript from 'markdown-it-sup'
import inserted from 'markdown-it-ins' import inserted from 'markdown-it-ins'
import marked from 'markdown-it-mark' import marked from 'markdown-it-mark'
import footnote from 'markdown-it-footnote' import footnote from 'markdown-it-footnote'
import { imageSize } from '@hedgedoc/markdown-it-image-size' import { imageSize } from '@hedgedoc/markdown-it-plugins'
/** /**
* Adds some common markdown syntaxes to the markdown rendering. * Adds some common markdown syntaxes to the markdown rendering.

View file

@ -6,16 +6,16 @@
import type MarkdownIt from 'markdown-it' import type MarkdownIt from 'markdown-it'
import { TaskListReplacer } from './task-list-replacer' import { TaskListReplacer } from './task-list-replacer'
import markdownItTaskLists from '@hedgedoc/markdown-it-task-lists'
import type { ComponentReplacer } from '../../../components/markdown-renderer/replace-components/component-replacer' import type { ComponentReplacer } from '../../../components/markdown-renderer/replace-components/component-replacer'
import { MarkdownRendererExtension } from '../../../components/markdown-renderer/extensions/base/markdown-renderer-extension' import { MarkdownRendererExtension } from '../../../components/markdown-renderer/extensions/base/markdown-renderer-extension'
import { tasksLists } from '@hedgedoc/markdown-it-plugins'
/** /**
* Adds support for interactive checkbox lists to the markdown rendering using the github checklist syntax. * Adds support for interactive checkbox lists to the markdown rendering using the github checklist syntax.
*/ */
export class TaskListMarkdownExtension extends MarkdownRendererExtension { export class TaskListMarkdownExtension extends MarkdownRendererExtension {
public configureMarkdownIt(markdownIt: MarkdownIt): void { public configureMarkdownIt(markdownIt: MarkdownIt): void {
markdownItTaskLists(markdownIt, { tasksLists(markdownIt, {
enabled: true, enabled: true,
label: true, label: true,
lineNumber: true lineNumber: true

View file

@ -1891,21 +1891,12 @@ __metadata:
languageName: node languageName: node
linkType: hard linkType: hard
"@hedgedoc/markdown-it-image-size@npm:2.0.2": "@hedgedoc/markdown-it-plugins@npm:1.0.0":
version: 2.0.2 version: 1.0.0
resolution: "@hedgedoc/markdown-it-image-size@npm:2.0.2" resolution: "@hedgedoc/markdown-it-plugins@npm:1.0.0"
peerDependencies: peerDependencies:
markdown-it: ">=12" markdown-it: ">=12"
checksum: 9b27c453da07256ce884040e9ded7a18d400eb318f370d97b563efba28d015e8223561d90ff6670730451924a625f2ecaa1d5a20087f3c7fa728f646dc6fce5b checksum: d8536d548d370d7c81a67fbf666d3e2bcedd5774fd933f3e1a3f432b7d2007b5d7c1790685a33e5a443d66648d5d0e8269c3e507d367c247b821679deba89407
languageName: node
linkType: hard
"@hedgedoc/markdown-it-task-lists@npm:2.0.1":
version: 2.0.1
resolution: "@hedgedoc/markdown-it-task-lists@npm:2.0.1"
peerDependencies:
markdown-it: ">=12"
checksum: 356fbca24538d99100317faf57d13d5adab4c13906374aaf3d2c3e505aa22d5efa817cf1058081d209e3423aaa8b4f811320d622717f640542e0182e0c98b624
languageName: node languageName: node
linkType: hard linkType: hard
@ -1924,8 +1915,7 @@ __metadata:
"@codemirror/view": 6.4.0 "@codemirror/view": 6.4.0
"@fontsource/source-sans-pro": 4.5.11 "@fontsource/source-sans-pro": 4.5.11
"@hedgedoc/html-to-react": 1.4.5 "@hedgedoc/html-to-react": 1.4.5
"@hedgedoc/markdown-it-image-size": 2.0.2 "@hedgedoc/markdown-it-plugins": 1.0.0
"@hedgedoc/markdown-it-task-lists": 2.0.1
"@hedgedoc/realtime": 0.3.0 "@hedgedoc/realtime": 0.3.0
"@hpcc-js/wasm": 1.17.1 "@hpcc-js/wasm": 1.17.1
"@mrdrogdrog/optional": 1.0.0 "@mrdrogdrog/optional": 1.0.0