Skip to content

Commit

Permalink
feat: Updated crossnote to 0.9.4 (#1851)
Browse files Browse the repository at this point in the history
* feat: Updated crossnote to 0.9.4

* feat: Ready to release 0.8.8
  • Loading branch information
shd101wyy authored Oct 21, 2023
1 parent c9a6c2a commit 581bc3f
Show file tree
Hide file tree
Showing 3 changed files with 62 additions and 6 deletions.
44 changes: 44 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,50 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [0.8.8] - 2023-10-22

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

### New features

- Updated [fontawesome](https://fontawesome.com/) from version 4.7 to version 6.4.2 (Free).
A list of available icons can be found at: https://kapeli.com/cheat_sheets/Font_Awesome.docset/Contents/Resources/Documents/index
- Updated WaveDrom to the latest version 3.3.0.

### Changes

- Changed the markdown parser process to be like below. We removed the `onWillTransformMarkdown` and `onDidTransformMarkdown` hooks as these two caused the confusion.

```markdown
markdown
`onWillParseMarkdown(markdown)`
markdown
**crossnote markdown transformer**
markdown
**markdown-it or pandoc renderer**
html
`onDidParseMarkdown(html)`
html, and then rendered in the preview
```

- (Beta) Supported to export the selected element in preview to .png file and copy the blob to the clipboard:

![image](https://github.com/shd101wyy/vscode-markdown-preview-enhanced/assets/1908863/046759d8-6d89-4f41-8420-b863d2094fe7)

### Bug fixes

- Fixed a bug of importing files that contains empty heading: https://github.com/shd101wyy/vscode-markdown-preview-enhanced/issues/1840
- Fixed a bug of rendering inline math in image name: https://github.com/shd101wyy/vscode-markdown-preview-enhanced/issues/1846
- Fixed a bug of parsing inline code: https://github.com/shd101wyy/vscode-markdown-preview-enhanced/issues/1848

## [0.8.7] - 2023-10-15

Updated [crossnote](https://github.com/shd101wyy/crossnote) to version [0.9.2](https://github.com/shd101wyy/crossnote/releases/tag/0.9.2) and version [0.9.3](https://github.com/shd101wyy/crossnote/releases/tag/0.9.3).
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.7",
"version": "0.8.8",
"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.3",
"crossnote": "^0.9.4",
"crypto-js": "^4.1.1"
},
"devDependencies": {
Expand Down
20 changes: 16 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.3:
version "0.9.3"
resolved "https://registry.yarnpkg.com/crossnote/-/crossnote-0.9.3.tgz#b8bb76eea4042839520ed764bd28155023b2b2b3"
integrity sha512-j1JIoswsKPYmEpqQ3iZoA/EnCaWNRmzhgnRIJR+2xfvqAvLif4beYHGwktJo9kDIqxQhCrK+QjSvDoAgk3cTOQ==
crossnote@^0.9.4:
version "0.9.4"
resolved "https://registry.yarnpkg.com/crossnote/-/crossnote-0.9.4.tgz#fe335443eb7bf3de39aa0d4acf374923592e0e24"
integrity sha512-jCzFtg0S4w5u+9NMrMa/+Jq7LdzRtyMtEsDHYGaCbK5gvJpTC2xYjntRZQdLK6d+7EZTcsUZPb/ZFI8LGUXECg==
dependencies:
"@headlessui/react" "^1.7.17"
"@heroicons/react" "^2.0.18"
Expand All @@ -1945,8 +1945,10 @@ crossnote@^0.9.3:
daisyui "^3.7.3"
esbuild-plugin-tailwindcss "^1.1.1"
escape-string-regexp "^5.0.0"
file-saver "^2.0.5"
html-escaper "^3.0.3"
html-react-parser "^4.2.2"
html-to-image "^1.11.11"
imagemagick-cli "^0.5.0"
jquery "^3.7.1"
katex "^0.16.9"
Expand Down Expand Up @@ -3305,6 +3307,11 @@ file-entry-cache@^6.0.1:
dependencies:
flat-cache "^3.0.4"

file-saver@^2.0.5:
version "2.0.5"
resolved "https://registry.yarnpkg.com/file-saver/-/file-saver-2.0.5.tgz#d61cfe2ce059f414d899e9dd6d4107ee25670c38"
integrity sha512-P9bmyZ3h/PRG+Nzga+rbdI4OEpNDzAVyy74uVO9ATgzLK6VtAsYybF/+TOCvrc0MO793d6+42lLyZTw7/ArVzA==

[email protected]:
version "1.0.0"
resolved "https://registry.yarnpkg.com/file-uri-to-path/-/file-uri-to-path-1.0.0.tgz#553a7b8446ff6f684359c445f1e37a05dacc33dd"
Expand Down Expand Up @@ -4036,6 +4043,11 @@ html-react-parser@^4.2.2:
react-property "2.0.0"
style-to-js "1.1.4"

html-to-image@^1.11.11:
version "1.11.11"
resolved "https://registry.yarnpkg.com/html-to-image/-/html-to-image-1.11.11.tgz#c0f8a34dc9e4b97b93ff7ea286eb8562642ebbea"
integrity sha512-9gux8QhvjRO/erSnDPv28noDZcPZmYE7e1vFsBLKLlRlKDSqNJYebj6Qz1TGd5lsRV+X+xYyjCKjuZdABinWjA==

[email protected]:
version "9.0.0"
resolved "https://registry.yarnpkg.com/htmlparser2/-/htmlparser2-9.0.0.tgz#e431142b7eeb1d91672742dea48af8ac7140cddb"
Expand Down

0 comments on commit 581bc3f

Please sign in to comment.