mind-elixir 5.3.2 → 5.3.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -66,7 +66,7 @@ export interface KeypressOptions {
66
66
  * @public
67
67
  */
68
68
  export interface MindElixirInstance extends Omit<Required<Options>, 'markdown' | 'imageProxy'>, MindElixirMethods {
69
- markdown?: (markdown: string, obj: NodeObj) => string;
69
+ markdown?: (markdown: string, obj: NodeObj | Arrow | Summary) => string;
70
70
  imageProxy?: (url: string) => string;
71
71
  dragged: Topic[] | null;
72
72
  spacePressed: boolean;
@@ -146,7 +146,7 @@ export interface Options {
146
146
  * If not provided, markdown will be disabled
147
147
  * @default undefined
148
148
  */
149
- markdown?: (markdown: string, obj: NodeObj) => string;
149
+ markdown?: (markdown: string, obj: NodeObj | Arrow | Summary) => string;
150
150
  /**
151
151
  * Image proxy function to handle image URLs, mainly used to solve CORS issues
152
152
  * If provided, all image URLs will be processed through this function before setting to img src
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mind-elixir",
3
- "version": "5.3.2",
3
+ "version": "5.3.4",
4
4
  "type": "module",
5
5
  "description": "Mind elixir is a free open source mind map core.",
6
6
  "keywords": [
package/readme.md CHANGED
@@ -5,6 +5,10 @@
5
5
  <h1 align="center">Mind Elixir</h1>
6
6
  </p>
7
7
 
8
+ <p align="center">
9
+ <a href="https://trendshift.io/repositories/13049" target="_blank"><img src="https://trendshift.io/api/badge/repositories/13049" alt="SSShooter%2Fmind-elixir-core | Trendshift" style="width: 250px; height: 55px;" width="250" height="55"/></a>
10
+ </p>
11
+
8
12
  <p align="center">
9
13
  <a href="https://www.npmjs.com/package/mind-elixir">
10
14
  <img src="https://img.shields.io/npm/v/mind-elixir" alt="version">
@@ -84,6 +88,7 @@ Mind elixir is a open source JavaScript mind map core. You can use it with any f
84
88
  - [Data Structure](#data-structure)
85
89
  - [Event Handling](#event-handling)
86
90
  - [Data Export And Import](#data-export-and-import)
91
+ - [Markdown Support](#markdown-support)
87
92
  - [Operation Guards](#operation-guards)
88
93
  - [Export as a Image](#export-as-a-image)
89
94
  - [Theme](#theme)