Skip to content

Commit

Permalink
Fix extra commas when emitting a fragment with multiple formats
Browse files Browse the repository at this point in the history
  • Loading branch information
bterlson committed Sep 8, 2015
1 parent 7660ed4 commit 6c49b11
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lib/emitter.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ exports.fragment = function (doc) {
}

return doc.map(function (para) {
return para.contents.map(emit);
return para.contents.map(emit).join('');
}).join(' ');
};

Expand Down
1 change: 1 addition & 0 deletions test/fragment-cases/multiple-formats.ecmarkdown
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
|NonTerminal| `foobar` *baz*
1 change: 1 addition & 0 deletions test/fragment-cases/multiple-formats.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<emu-nt>NonTerminal</emu-nt> <code>foobar</code> <emu-val>baz</emu-val>

0 comments on commit 6c49b11

Please sign in to comment.