Skip to content

Commit 3f6f79e

Browse files
committed
fix(slate) Add variable list roundtrip to Slate transform
Signed-off-by: Jerome Simeon <[email protected]>
1 parent 73285b6 commit 3f6f79e

File tree

5 files changed

+1031
-2
lines changed

5 files changed

+1031
-2
lines changed

packages/markdown-slate/src/ToSlateVisitor.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -324,6 +324,15 @@ class ToSlateVisitor {
324324
'nodes': this.processChildNodes(thing)
325325
};
326326
break;
327+
case 'ListVariable':
328+
/* XXX Will have to be changed to support editing of dynamic lists in the UI */
329+
result = {
330+
'object': 'block',
331+
'data': { tight: thing.tight, start: thing.start, delimiter: thing.delimiter, kind: 'variable' },
332+
'type': thing.type === 'ordered' ? 'ol_list' : 'ul_list',
333+
'nodes': this.processChildNodes(thing)
334+
};
335+
break;
327336
case 'Item':
328337
result = {
329338
'object': 'block',

0 commit comments

Comments
 (0)