We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ef9e55d commit 943ad30Copy full SHA for 943ad30
packages/markdown-common/src/ToMarkdownStringVisitor.js
@@ -200,14 +200,7 @@ class ToStringVisitor {
200
}
201
break;
202
case 'Item':
203
- if(parameters.type === 'ordered') {
204
- parameters.result += '\n${ToStringVisitor.mkIndent(parameters)}$1. ';
205
- }
206
- else {
207
- parameters.result += '\n${ToStringVisitor.mkIndent(parameters)}- ';
208
209
- parameters.result += ToStringVisitor.visitChildren(this, thing);
210
- break;
+ throw new Error('Item node should not occur outside of List nodes');
211
case 'Document':
212
parameters.result += ToStringVisitor.visitChildren(this, thing);
213
0 commit comments