Skip to content

Releases: shd101wyy/crossnote

0.9.1

14 Oct 01:27
402d89e
Compare
Choose a tag to compare

Buf fixes

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

0.9.0

13 Oct 15:41
ba12c2e
Compare
Choose a tag to compare

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

10 Oct 15:14
2226a6a
Compare
Choose a tag to compare

Bug fixes

0.8.23

10 Oct 02:11
ef2beb5
Compare
Choose a tag to compare

Bug fixes

  • Fixed exporting reveal.js presentation.

0.8.22

10 Oct 01:06
020f077
Compare
Choose a tag to compare

Bug fixes

0.8.21

09 Oct 14:49
c906f48
Compare
Choose a tag to compare

Bug fixes

0.8.20

09 Oct 14:15
f4c9c12
Compare
Choose a tag to compare

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

06 Oct 14:32
dae47a8
Compare
Choose a tag to compare

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

05 Oct 07:06
b0be4ee
Compare
Choose a tag to compare

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

04 Oct 15:02
7d14e95
Compare
Choose a tag to compare

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