You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+13-1Lines changed: 13 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -55,7 +55,19 @@ All frontmatter options are optional.
55
55
56
56
-**`id`** : Used to define the ID of the `markmap-wrap` element.
57
57
58
-
-**`markmap`**/**`options`** : Correspond to the [`IMarkmapJSONOptions`](https://markmap.js.org/api/interfaces/markmap-view.IMarkmapJSONOptions.html) in the markmap project. For more details, please refer to [`jsonOptions`](https://markmap.js.org/docs/json-options#option-list).
58
+
-**`markmap`** : Correspond to the [`IMarkmapJSONOptions`](https://markmap.js.org/api/interfaces/markmap-view.IMarkmapJSONOptions.html) in the markmap project. For more details, please refer to [`jsonOptions`](https://markmap.js.org/docs/json-options#option-list).
> [Preprocesses](https://github.com/markmap/markmap/blob/master/packages/markmap-lib/src/plugins/frontmatter/index.ts#L41) JSON options (e.g., converting strings to arrays or numbers) and overrides the legacy `options`.
66
+
> - For example, `color: 'red'` will be converted to `color: ['red']`, only the latter is valid in `markmap-view`.
67
+
> - ✅ Recommended for consistent use with `markmap`.
68
+
>
69
+
> -**`options` (from markmap-universe)** Passed directly to markmap-view.
70
+
> - ❌ Not recommended, maintained only for backward compatibility.
0 commit comments