Skip to content

0.8.0

Compare
Choose a tag to compare
@github-actions github-actions released this 05 Oct 07:59
083116e

Updated crossnote to version 0.8.17 then version 0.8.18.

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.

      🔔 Please note that enable this option will automatically modify the workbench.editorAssociations setting to make sure the markdown files are opened in the custom editor for preview.

  • Added two new VS Code commands Markdown Preview Enhanced: Customize Preview Html Head (Workspace) and Markdown Preview Enhanced: Customize Preview Html Head (Global), which will open the head.html file for you to customize the <head> of the preview.

  • 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

  • Updated the katex version to 0.16.9.

  • 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: #1790
  • Fixed list item style bug: #1789
  • Fixed a data race bug that caused the preview to hang.