Skip to content

Latest commit

 

History

History
354 lines (237 loc) · 12.3 KB

CHANGELOG.md

File metadata and controls

354 lines (237 loc) · 12.3 KB

Changelog

Please visit https://github.com/shd101wyy/vscode-markdown-preview-enhanced/releases for the more changelog

[Unreleased]

[0.9.9] - 2024-03-11

Bug fixes

Chore

[0.9.8] - 2024-03-10

New features

  • @moonlitusun sidebarToc supports local caching

Updates

  • @oneWaveAdrian updated the mermaid version to the latest 10.9.0.

Bug fixes

[0.9.7] - 2023-12-10

New features

  • Added enablePreviewZenMode option and reorganized the right-click context menu.

    image

Bug fixes

[0.9.6] - 2023-10-24

Changes

  • Updated mermaid.js to the latest version 10.6.0.

Bug fixes

[0.9.5] - 2023-10-23

Bug fixes

[0.9.4] - 2023-10-21

New features

Changes

  • Changed the markdown parser process to be like below. We removed the onWillTransformMarkdown and onDidTransformMarkdown 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:

    image

Bug fixes

[0.9.3] - 2023-10-15

Bug fixes

  • Better handling of source map for importing files.

[0.9.2] - 2023-10-15

New features

  • Added ID button to copy the element id to clipboard:

    Screenshot from 2023-10-15 15-34-27

  • Supported to import section of markdown by header id:

    @import "test.md#header-id"
    
    or
    
    ![](test.md#header-id)
    
    or
    
    ![[test#header-id]]

Bug fixes

[0.9.1] - 2023-10-14

Buf fixes

  • Fixed rendering vega and vega-lite. Also fixed interactive=true attribute for vega.

[0.9.0] - 2023-10-13

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}

Bug fixes

[0.8.24] - 2023-10-10

Bug fixes

[0.8.23] - 2023-10-10

Bug fixes

  • Fixed exporting reveal.js presentation.

[0.8.22] - 2023-10-10

Bug fixes

[0.8.21] - 2023-10-09

Bug fixes

[0.8.20] - 2023-10-09

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

[0.8.19] - 2023-10-06

Changes

  • Deprecated the processWikiLink in parser.js. Now crossnote handles how we process the wiki link.
    We also added two more options:
    • wikiLinkTargetFileExtension: The file extension of the target file. Default is md. 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 is none 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] - 2023-10-05

New features

  • Updated the katex version to 0.16.9.

Improvements

  • Added end-of-document class name to the element of the last line of the preview.
  • Exported the KatexOptions and MermaidConfig interfaces.

[0.8.17] - 2023-10-04

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 press ctrl+s or cmd+s to save the markdown file. You can also press esc to close the editor.

  • Deprecated the VS Code setting markdown-preview-enhanced.singlePreview.
    Now replaced by markdown-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.
  • 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/

Bug fixes

[0.8.16] - 2023-09-24

New features

  • 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.

Bug fixes

[0.8.15] - 2023-09-17

New features

  • 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.

Bug fixes

[0.8.14] - 2023-09-15

New features

  • (Beta) Added the bitfield diagram support. Supported both bitfield and bit-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}
    ]
    ```
    

Bug fixes

  • Fixed the vue.css theme bug that caused the missing scroll bar in the preview. Also fixed a context menu bug for selecting the vue.css theme.

[0.8.13] - 2023-09-15

Bug fixes

  • Fixed rendering MathJax in preview #311.
  • Fixed the preview background color #312.
  • Added error message when failed to parse the YAML front-matter. Also escaped the HTML rendered in the front-matter table in preview. #312.

[0.8.12] - 2023-09-15