Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions test/from-markdown/code-blocks/in-list/input.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
1. Here's some code:

```
const foo = {
[bar]: 'bar'
};
[bar]: 'bar'
```
16 changes: 1 addition & 15 deletions test/from-markdown/code-blocks/in-list/output.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,18 +23,4 @@ document:
- object: text
leaves:
- object: leaf
text: 'const foo = {'
- object: block
type: code_line
nodes:
- object: text
leaves:
- object: leaf
text: ' [bar]: ''bar'''
- object: block
type: code_line
nodes:
- object: text
leaves:
- object: leaf
text: '};'
text: '[bar]: ''bar'''
19 changes: 1 addition & 18 deletions test/to-markdown/code-blocks/in-list/input.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,27 +14,10 @@ document:
leaves:
- object: leaf
text: 'Here''s some code:'
- object: block
type: code_block
nodes:
- object: block
type: code_line
nodes:
- object: text
leaves:
- object: leaf
text: 'const foo = {'
- object: block
type: code_line
nodes:
- object: text
leaves:
- object: leaf
text: ' [bar]: ''bar'''
- object: block
type: code_line
nodes:
- object: text
leaves:
- object: leaf
text: '};'
text: '[bar]: ''bar'''
4 changes: 1 addition & 3 deletions test/to-markdown/code-blocks/in-list/output.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
1. Here's some code:

```
const foo = {
[bar]: 'bar'
};
[bar]: 'bar'
```