Make continuelist.js addon work.

It had been depending on the list token being highlighted
with the class 'string', which it no longer is in the markdown
mode.

Updated to check the `list` property of the line's state.
[continuelist addon] Fix changes to not rely on line.stateAfter