Skip to content

Commit

Permalink
chore: bump marked
Browse files Browse the repository at this point in the history
  • Loading branch information
yyx990803 committed Jan 18, 2022
1 parent 8cbfe09 commit 0c06c74
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion packages/vue/examples/classic/markdown.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
}),
computed: {
compiledMarkdown() {
return marked(this.input, { sanitize: true })
return marked.marked(this.input, { sanitize: true })
}
},
methods: {
Expand Down
2 changes: 1 addition & 1 deletion packages/vue/examples/composition/markdown.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
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 {
Expand Down
10 changes: 5 additions & 5 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 0c06c74

Please sign in to comment.