Atom's (maybe javascript's) regex engine doesn't allow dynamic width look-behind. This was fixed by matching on the whitespace and counting them.
All the failed specs now pass except for one related to stars in code blocks. This is not a feature that I need so I have investigated it, but it does not appear to be caused by function that I fixed.
This PR fixes #5
Atom's (maybe javascript's) regex engine doesn't allow dynamic width look-behind. This was fixed by matching on the whitespace and counting them.
All the failed specs now pass except for one related to stars in code blocks. This is not a feature that I need so I have investigated it, but it does not appear to be caused by function that I fixed.