Please visit https://github.com/shd101wyy/vscode-markdown-preview-enhanced/releases for the more changelog
- Updated
mermaid
version to the latest11.4.0
.
- Added
.mdx
to the defaultmarkdownFileExtensions
.
- Updated
mermaid
version to the latest11.1.1
. - Updated
katex
version to the latestv0.16.11
.
- Fixed a scroll sync bug.
- Fixed Long sidebarToc does not display completely by @moonlitusun
- Removed the
text
as the default language selector for code block.
- Updated flake.nix and node.js to 20.
- @moonlitusun sidebarToc supports local caching
- @oneWaveAdrian updated the
mermaid
version to the latest10.9.0
.
- Fixed [BUG] #tag is treated as Header 1
- Fixed [BUG] toml code block support is not very good
- Fixed [BUG] If URL encoding is used, the preview cannot be displayed.
- Fixed rendering
vega-lite
inReveal.js
slide: shd101wyy/vscode-markdown-preview-enhanced#1880 - Removed one github-dark background css attribute: #344
- Updated mermaid.js to the latest version 10.6.0.
- Fixed importing file with spaces in the path: shd101wyy/vscode-markdown-preview-enhanced#1857
- Fixed of bug of rendering the KaTeX math expression: shd101wyy/vscode-markdown-preview-enhanced#1853
- Updated fontawesome 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.
-
Changed the markdown parser process to be like below. We removed the
onWillTransformMarkdown
andonDidTransformMarkdown
hooks as these two caused the confusion.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:
- Fixed a bug of importing files that contains empty heading: shd101wyy/vscode-markdown-preview-enhanced#1840
- Fixed a bug of rendering inline math in image name: shd101wyy/vscode-markdown-preview-enhanced#1846
- Fixed a bug of parsing inline code: shd101wyy/vscode-markdown-preview-enhanced#1848
- Better handling of source map for importing files.
-
Added
ID
button to copy the element id to clipboard: -
Supported to import section of markdown by header id:
@import "test.md#header-id" or ![](test.md#header-id) or ![[test#header-id]]
- URL fragments on image links do not load: shd101wyy/vscode-markdown-preview-enhanced#1837
- Supported matplotlib-type preview for other Python tools like
pipenv
: #332
- Fixed rendering vega and vega-lite. Also fixed
interactive=true
attribute for vega.
- 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:
- 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.
- 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.
- Fixed exporting reveal.js presentation.
- Fixed a bug of loading image shd101wyy/vscode-markdown-preview-enhanced#1819
- Fixed a bug of parsing slides shd101wyy/vscode-markdown-preview-enhanced#1818
- Fixed a bug of rendering front-matter that caused the failure of rendering slides: shd101wyy/vscode-markdown-preview-enhanced#1814
-
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.
- Now exporting files won't include the source map.
- Fixed some Reveal.js presentation related bugs:
- 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
- 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.
- Updated the
katex
version to0.16.9
.
- Added
end-of-document
class name to the element of the last line of the preview. - Exported the
KatexOptions
andMermaidConfig
interfaces.
-
📝 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.
-
Updated the mermaid version to the latest
10.5.0
-
Added the API website: https://shd101wyy.github.io/crossnote/
- 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.
- Added
head.html
config file to allow you to include custom HTML in the<head>
of the preview. This could be useful for adding custom CSS or JavaScript to the preview.
- Fixed the
none.css
preview theme bug shd101wyy/vscode-markdown-preview-enhanced#1778. - Fixed the bug of copying texts in preview shd101wyy/vscode-markdown-preview-enhanced#1775.
- Added
<code>
in<pre>
while rendering code blocks in preview.
- Added the
includeInHeader
option, which allows you to include custom HTML in the<head>
of the preview. This could be useful for adding custom CSS or JavaScript to the preview.
- Fixed the bug of missing the backlinks on the
vue.css
theme. - Fixed the back to top button. shd101wyy/vscode-markdown-preview-enhanced#1769
- (Beta) Added the bitfield diagram support. Supported both
bitfield
andbit-field
code fences. shd101wyy/vscode-markdown-preview-enhanced#1749```bitfield {vspace=100} [ {name: 'IPO', bits: 8}, { bits: 7}, {name: 'BRK', bits: 5, type: 4}, {name: 'CPK', bits: 1}, {name: 'Clear', bits: 3, type: 5}, { bits: 8} ] ```
- Fixed the
vue.css
theme bug that caused the missing scroll bar in the preview. Also fixed a context menu bug for selecting thevue.css
theme.