Releases: shd101wyy/crossnote
0.9.1
Buf fixes
- Fixed rendering vega and vega-lite. Also fixed
interactive=true
attribute for vega.
0.9.0
New features
- Added two more syntaxes to import files in addition to the
@import
syntax. Please note that these syntaxes only work on new lines. For example, they won't work within list items.- Use the image syntax but with other file extensions:
![](path/to/file.md) ![](path/to/test.py){.line-numbers} ![](path/to/test.js){code_block=true}
- Use the wikilink syntax but with other file extensions:
![[file]] ![[path/to/test.py]]{.line-numbers} ![[path/to/test.js]]{code_block=true}
- Use the image syntax but with other file extensions:
Bug fixes
- Fixed a header id generation bug shd101wyy/vscode-markdown-preview-enhanced#1833
- Fixed parsing block attributes from curly bracket when
enableTypographer
is enabled shd101wyy/vscode-markdown-preview-enhanced#1823 - Fixed the bug of not rendering the
@import
file: - Fixed rendering the vega and vega-lite diagrams.
0.8.24
Bug fixes
- Improved the handling of
[toc]
: shd101wyy/vscode-markdown-preview-enhanced#1825 - Supported to set env variables in paths of configuration: shd101wyy/vscode-markdown-preview-enhanced#1826
- Fixed the footer style: shd101wyy/vscode-markdown-preview-enhanced#1822
- Fixed the bug of generating the header id: shd101wyy/vscode-markdown-preview-enhanced#1827
- Fixed the bug of
@import
files that contains unicode characters: shd101wyy/vscode-markdown-preview-enhanced#1823 - Now use node.js 18 for the project.
0.8.23
Bug fixes
- Fixed exporting reveal.js presentation.
0.8.22
Bug fixes
- Fixed a bug of loading image shd101wyy/vscode-markdown-preview-enhanced#1819
- Fixed a bug of parsing slides shd101wyy/vscode-markdown-preview-enhanced#1818
0.8.21
Bug fixes
- Fixed a bug of rendering front-matter that caused the failure of rendering slides: shd101wyy/vscode-markdown-preview-enhanced#1814
0.8.20
New features
-
Supported prefix in front of Kroki diagram types shd101wyy/vscode-markdown-preview-enhanced#1785.
So now all diagrams below will get rendered using Kroki:```kroki-plantuml @startuml A -> B @enduml ``` ```plantuml {kroki=true} @startuml A -> B @enduml ```
-
Improved the source map handling for
@import "..."
syntax.
Bug fixes
- Now exporting files won't include the source map.
- Fixed some Reveal.js presentation related bugs:
0.8.19
Changes
- Deprecated the
processWikiLink
inparser.js
. Nowcrossnote
handles how we process the wiki link.
We also added two more options:wikiLinkTargetFileExtension
: The file extension of the target file. Default ismd
. For example:[[test]]
will be transformed to[test](test.md)
[[test.md]]
will be transformed to[test](test.md)
[[test.pdf]]
will be transformed to[test](test.pdf)
because it has a file extension.
wikiLinkTargetFileNameChangeCase
: How we transform the file name. Default isnone
so we won't change the file name.
A list of available options can be found at: https://shd101wyy.github.io/crossnote/interfaces/NotebookConfig.html#wikiLinkTargetFileNameChangeCase
Bug fixes
- Reverted the markdown transformer and deleted the logic of inserting anchor elements as it's causing a lot of problems.
The in-preview editor is not working as expected. So we now hide its highlight lines and elements feature if the markdown file failed to generate the correct source map.
0.8.18
New features
- Updated the
katex
version to0.16.9
.
Improvements
- Added
end-of-document
class name to the element of the last line of the preview. - Exported the
KatexOptions
andMermaidConfig
interfaces.
0.8.17
New features
-
📝 Supported in-preview editor that allows you to edit the markdown file directly in the preview 🎉.
This feature is currently in beta.
When the editor is open, you can pressctrl+s
orcmd+s
to save the markdown file. You can also pressesc
to close the editor. -
Deprecated the VS Code setting
markdown-preview-enhanced.singlePreview
.
Now replaced bymarkdown-preview-enhanced.previewMode
:- Single Preview (default)
Only one preview will be shown for all editors. - Multiple Previews
Multiple previews will be shown. Each editor has its own preview. - Previews Only 🆕
No editor will be shown. Only previews will be shown. You can use the in-preview editor to edit the markdown.
- Single Preview (default)
-
Supported to set attribute to image and link, e.g.:
![](path/to/image.png){width=100 height=100}
-
Improved the markdown transformer to better insert anchors for scroll sync and highlight lines and elements.
Added more tests for the markdown transformer to make sure it works as expected. -
Added the reading time estimation in the preview footer ⏲️.
-
Added
Edit Markdown
menu item to the context menu of the preview, which offers two options:- Open VS Code Editor
Open the markdown file in VS Code editor. - Open In-preview Editor
Open the markdown file in the in-preview editor.
- Open VS Code Editor
-
Updated the mermaid version to the latest
10.5.0
-
Added the API website: https://shd101wyy.github.io/crossnote/
Bug fixes
- Fixed the font size of the
github-dark.css
code block theme. - Fixed the anchor jump bugs: shd101wyy/vscode-markdown-preview-enhanced#1790
- Fixed list item style bug: shd101wyy/vscode-markdown-preview-enhanced#1789
- Fixed a data race bug that caused the preview to hang.