Skip to content

Commit

Permalink
feat(dep): support micromark
Browse files Browse the repository at this point in the history
Update dev dependencies and tests

fix #2
  • Loading branch information
craftzdog committed Jan 2, 2021
1 parent e21cb00 commit c40653f
Show file tree
Hide file tree
Showing 4 changed files with 5,313 additions and 6,270 deletions.
8 changes: 4 additions & 4 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,17 +55,17 @@ function clean(values) {
var index = -1;
var length = values.length;
var result = [];
var prev = null;
var previous = null;
var value;

while (++index < length) {
value = values[index];

if (prev && 'value' in value && value.type === prev.type) {
prev.value += value.value;
if (previous && 'value' in value && value.type === previous.type) {
previous.value += value.value;
} else {
result.push(value);
prev = value;
previous = value;
}
}

Expand Down
Loading

0 comments on commit c40653f

Please sign in to comment.