From 0c06c748a511f2e7c38f8a6fb13b99561312d15e Mon Sep 17 00:00:00 2001 From: Evan You Date: Tue, 18 Jan 2022 07:57:00 +0800 Subject: [PATCH] chore: bump marked --- package.json | 2 +- packages/vue/examples/classic/markdown.html | 2 +- packages/vue/examples/composition/markdown.html | 2 +- pnpm-lock.yaml | 10 +++++----- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/package.json b/package.json index 6fabb1c3..de73907e 100644 --- a/package.json +++ b/package.json @@ -74,7 +74,7 @@ "jest": "^27.1.0", "lint-staged": "^10.2.10", "lodash": "^4.17.15", - "marked": "^0.7.0", + "marked": "^4.0.10", "minimist": "^1.2.0", "npm-run-all": "^4.1.5", "prettier": "^2.3.1", diff --git a/packages/vue/examples/classic/markdown.html b/packages/vue/examples/classic/markdown.html index 61e64f6e..f70a75d6 100644 --- a/packages/vue/examples/classic/markdown.html +++ b/packages/vue/examples/classic/markdown.html @@ -14,7 +14,7 @@ Vue.createApp({ }), computed: { compiledMarkdown() { - return marked(this.input, { sanitize: true }) + return marked.marked(this.input, { sanitize: true }) } }, methods: { diff --git a/packages/vue/examples/composition/markdown.html b/packages/vue/examples/composition/markdown.html index 8734cf6a..151a8a8c 100644 --- a/packages/vue/examples/composition/markdown.html +++ b/packages/vue/examples/composition/markdown.html @@ -13,7 +13,7 @@ const { ref, computed } = Vue Vue.createApp({ setup() { const input = ref('# hello') - const output = computed(() => marked(input.value, { sanitize: true })) + const output = computed(() => marked.marked(input.value, { sanitize: true })) const update = _.debounce(e => { input.value = e.target.value }, 50) return { diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 79f5d796..424319db 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -31,7 +31,7 @@ importers: jest: ^27.1.0 lint-staged: ^10.2.10 lodash: ^4.17.15 - marked: ^0.7.0 + marked: ^4.0.10 minimist: ^1.2.0 npm-run-all: ^4.1.5 prettier: ^2.3.1 @@ -79,7 +79,7 @@ importers: jest: 27.4.4 lint-staged: 10.5.4 lodash: 4.17.21 - marked: 0.7.0 + marked: 4.0.10 minimist: 1.2.5 npm-run-all: 4.1.5 prettier: 2.5.1 @@ -4978,9 +4978,9 @@ packages: engines: {node: '>=8'} dev: true - /marked/0.7.0: - resolution: {integrity: sha512-c+yYdCZJQrsRjTPhUx7VKkApw9bwDkNbHUKo1ovgcfDjb2kc8rLuRbIFyXL5WOEUwzSSKo3IXpph2K6DqB/KZg==} - engines: {node: '>=0.10.0'} + /marked/4.0.10: + resolution: {integrity: sha512-+QvuFj0nGgO970fySghXGmuw+Fd0gD2x3+MqCWLIPf5oxdv1Ka6b2q+z9RP01P/IaKPMEramy+7cNy/Lw8c3hw==} + engines: {node: '>= 12'} hasBin: true dev: true