Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
agathauy committed Nov 17, 2020
1 parent 1c70ff6 commit 2f7912e
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,11 +91,6 @@ export default class WikilinksToMdlinks extends Plugin {
let temp = line.slice(i, line.length)
let index = i + temp.indexOf(item)
let indexEnd = index + item.length
console.log(temp)
console.log(item)
console.log(i)
console.log(index)
console.log(indexEnd)
i = indexEnd

if ((cursor.ch >= index ) && (cursor.ch <= indexEnd )) {
Expand All @@ -105,7 +100,6 @@ export default class WikilinksToMdlinks extends Plugin {

// Check if it is a markdown file
const matches = text.match(regexHasExtension);
console.log(matches)
if (matches) {
const filename = matches[1]
const extension = matches[2]
Expand All @@ -114,7 +108,6 @@ export default class WikilinksToMdlinks extends Plugin {
text = filename
}
}
console.log(`index: ${index}; indexEnd: ${indexEnd}; txt: ${text}`)
let newItem = `[[${text}]]`

const cursorStart = {
Expand Down

0 comments on commit 2f7912e

Please sign in to comment.