Skip to content

Commit

Permalink
Quick fix clickTagA bug.
Browse files Browse the repository at this point in the history
  • Loading branch information
shd101wyy committed Jul 23, 2017
1 parent 856b304 commit c6d3d56
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/newest.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## 0.2.0
## 0.2.0, 0.2.1
* Upgraded [mume](https://github.com/shd101wyy/mume) to version `0.1.5`.
* Fixed header id bug [#516](https://github.com/shd101wyy/markdown-preview-enhanced/issues/516).
* Fixed `enableExtendedTableSyntax` bug.
Expand Down
4 changes: 2 additions & 2 deletions src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -255,14 +255,14 @@ export function activate(context: vscode.ExtensionContext) {
const sourceUri = vscode.Uri.parse(decodeURIComponent(uri));
href = decodeURIComponent(href)
if (['.pdf', '.xls', '.xlsx', '.doc', '.ppt', '.docx', '.pptx'].indexOf(path.extname(href)) >= 0) {
utility.openFile(utility.addFileProtocol(href))
utility.openFile(href)
} else if (href.match(/^file\:\/\/\//)) {
// openFilePath = href.slice(8) # remove protocal
let openFilePath = utility.addFileProtocol(href.replace(/(\s*)[\#\?](.+)$/, '')) // remove #anchor and ?params...
openFilePath = decodeURI(openFilePath)
vscode.commands.executeCommand('vscode.open', vscode.Uri.parse(openFilePath), vscode.ViewColumn.One)
} else {
utility.openFile(utility.addFileProtocol(href))
utility.openFile(href)
}
}

Expand Down

0 comments on commit c6d3d56

Please sign in to comment.