Shortcut reference links eat subsequent whitespace

With the javascript implementation of commonmark, the following markup:

[foo] bar

[foo]: /uri

renders as

<p><a href="/uri">foo</a>bar</p>

dropping the whitespace between the link and text. I expected

<p><a href="/uri">foo</a> bar</p>

It isn’t clear to me from the spec if this is desired behavior or a bug. Can you add a clarification and test case to the spec?

Thanks, it’s a bug (in both the js and C implementations, it turns out).
Can you submit a bug report on the github site? (We should also have a test case on the spec as you suggest.)

+++ Steve Dunham [Nov 22 14 21:23 ]: