Use markdown-it-bidi for bidi preview

Signed-off-by: Mostafa Ahangarha <ahangarha@riseup.net>
This commit is contained in:
Mostafa Ahangarha 2023-12-25 19:50:46 +03:30
parent 7de448871e
commit 115e90f067
No known key found for this signature in database
GPG Key ID: 0C1F02A141445AB1
3 changed files with 15 additions and 1 deletions

11
package-lock.json generated
View File

@ -19,6 +19,7 @@
"diff": "^5.1.0",
"easymde": "^2.18.0",
"markdown-it": "^13.0.2",
"markdown-it-bidi": "^0.1.0",
"markdown-it-task-checkbox": "^1.0.6",
"vue": "^2.7.16",
"vue-fragment": "^1.6.0",
@ -12179,6 +12180,11 @@
"markdown-it": "bin/markdown-it.js"
}
},
"node_modules/markdown-it-bidi": {
"version": "0.1.0",
"resolved": "https://registry.npmjs.org/markdown-it-bidi/-/markdown-it-bidi-0.1.0.tgz",
"integrity": "sha512-4GloQnF+PiILh6wkLAIeSxCLo9qUW7LcKj/08GyCpvo0LLC6YEhrZBvM9RkMkieGG7i4uIRE/F5jmU14DgR8Wg=="
},
"node_modules/markdown-it-task-checkbox": {
"version": "1.0.6",
"resolved": "https://registry.npmjs.org/markdown-it-task-checkbox/-/markdown-it-task-checkbox-1.0.6.tgz",
@ -26880,6 +26886,11 @@
"uc.micro": "^1.0.5"
}
},
"markdown-it-bidi": {
"version": "0.1.0",
"resolved": "https://registry.npmjs.org/markdown-it-bidi/-/markdown-it-bidi-0.1.0.tgz",
"integrity": "sha512-4GloQnF+PiILh6wkLAIeSxCLo9qUW7LcKj/08GyCpvo0LLC6YEhrZBvM9RkMkieGG7i4uIRE/F5jmU14DgR8Wg=="
},
"markdown-it-task-checkbox": {
"version": "1.0.6",
"resolved": "https://registry.npmjs.org/markdown-it-task-checkbox/-/markdown-it-task-checkbox-1.0.6.tgz",

View File

@ -23,6 +23,7 @@
"diff": "^5.1.0",
"easymde": "^2.18.0",
"markdown-it": "^13.0.2",
"markdown-it-bidi": "^0.1.0",
"markdown-it-task-checkbox": "^1.0.6",
"vue": "^2.7.16",
"vue-fragment": "^1.6.0",
@ -46,4 +47,4 @@
"extends @nextcloud/browserslist-config"
],
"version": "4.9.1"
}
}

View File

@ -37,6 +37,8 @@ export default {
liClass: 'task-list-item',
})
md.use(require('markdown-it-bidi'))
return {
html: '',
md,