-
Notifications
You must be signed in to change notification settings - Fork 3.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
there's no loose_item_end
token
#469
Comments
Actually, it's probably more accurate to say that # there is no `loose_item_end` token, so we need to make it. thankfully, it's
# pretty easy to determine where they go, by finding `list_item_end` wherever
# there's an unclosed `loose_item`
openLooseItem = false
ast = ast.map (token) ->
if token.type is 'loose_item_start'
openLooseItem = true
else if token.type is 'list_item_end' and openLooseItem
openLooseItem = false
# replace the list_item_end with loose_item_end
token = type: 'loose_item_end'
return token |
@slang800 Is there any reason there needs to be a |
It's been awhile since I worked with marked, so I don't remember exactly what I was doing, but I'm pretty sure I had a function that looked for every token that was a The fact that |
Just wanted to mention that I found this pretty odd since we have a
loose_item_start
. Any particular reason for this?The text was updated successfully, but these errors were encountered: