Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ready to release 0.8.10 #1867

Merged
merged 2 commits into from
Oct 26, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,19 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [0.8.10] - 2023-10-26

Updated [crossnote](https://github.com/shd101wyy/crossnote) to version [0.9.6](https://github.com/shd101wyy/crossnote/releases/tag/0.9.6).

### Changes

- Updated mermaid.js to the latest version 10.6.0.

### Bug fixes

- Fixed importing file with spaces in the path: https://github.com/shd101wyy/vscode-markdown-preview-enhanced/issues/1857
- Fixed a bug of updating the vscode `workbench.editorAssociations`: https://github.com/shd101wyy/vscode-markdown-preview-enhanced/issues/1860

## [0.8.9] - 2023-10-23

Updated [crossnote](https://github.com/shd101wyy/crossnote) to version [0.9.5](https://github.com/shd101wyy/crossnote/releases/tag/0.9.5).
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "markdown-preview-enhanced",
"displayName": "%displayName%",
"version": "0.8.9",
"version": "0.8.10",
"description": "%description%",
"categories": [
"Other"
Expand Down Expand Up @@ -674,7 +674,7 @@
"@types/crypto-js": "^4.1.2",
"@types/vfile": "^3.0.2",
"async-mutex": "^0.4.0",
"crossnote": "^0.9.5",
"crossnote": "^0.9.6",
"crypto-js": "^4.2.0"
},
"devDependencies": {
Expand Down
14 changes: 6 additions & 8 deletions src/notebooks-manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -153,14 +153,12 @@ class NotebooksManager {
// Add associations to editorAssociations
newEditorAssociations = { ...editorAssociations, ...associations };
} else {
// delete associations from editorAssociations
newEditorAssociations = Object.fromEntries(
Object.entries(editorAssociations).filter(([key]) => {
return !markdownFileExtensions.find((ext) => {
return key.endsWith(ext);
});
}),
);
// delete associations from editorAssociations if exists and value is 'markdown-preview-enhanced'
markdownFileExtensions.forEach((ext) => {
if (editorAssociations[`*${ext}`] === 'markdown-preview-enhanced') {
delete newEditorAssociations[`*${ext}`];
}
});
}

if (
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1920,10 +1920,10 @@ cross-spawn@^7.0.0, cross-spawn@^7.0.2, cross-spawn@^7.0.3:
shebang-command "^2.0.0"
which "^2.0.1"

crossnote@^0.9.5:
version "0.9.5"
resolved "https://registry.yarnpkg.com/crossnote/-/crossnote-0.9.5.tgz#47dea98d189a434c0e12943b7933bc4886207b31"
integrity sha512-Hx01jHsJSbmhopI9q2NM27K1ef3lyqgcxJye+Pb4/iLk2w+VNo+jKdAm6hoi+DxnNLOEov0KXCgUCJj4Qp1z4Q==
crossnote@^0.9.6:
version "0.9.6"
resolved "https://registry.yarnpkg.com/crossnote/-/crossnote-0.9.6.tgz#cda4f4f705762e08c11dacedf0ed9d90fa4fb144"
integrity sha512-jNJmYj7Q7YWI3Sm7omAezPQbPSo+LO+AmklA/Zr5PpKGGwblyClW/ESmxipxVhQ9zr2SMn9aUVNrglynemusuA==
dependencies:
"@headlessui/react" "^1.7.17"
"@heroicons/react" "^2.0.18"
Expand Down
Loading