fix: markdown checkbox rendering with links

This commit is contained in:
NGPixel
2021-12-08 23:56:19 -05:00
parent 29e0852a3e
commit 0d7d95d2ac
2 changed files with 19 additions and 15 deletions

View File

@@ -290,7 +290,7 @@ const md = new MarkdownIt({
})
.use(underline)
.use(mdEmoji)
.use(mdTaskLists, {label: true, labelAfter: true})
.use(mdTaskLists, {label: false, labelAfter: false})
.use(mdExpandTabs)
.use(mdAbbr)
.use(mdSup)
@@ -627,7 +627,7 @@ export default {
hint: async (cm, options) => {
const cur = cm.getCursor()
const curLine = cm.getLine(cur.line).substring(0, cur.ch)
const queryString = curLine.substring(curLine.lastIndexOf('[')+1,curLine.length-2)
const queryString = curLine.substring(curLine.lastIndexOf('[') + 1, curLine.length - 2)
const token = cm.getTokenAt(cur)
try {
const respRaw = await this.$apollo.query({