{"action":"created","issue":{"url":"https://api.github.com/repos/markdown-it/markdown-it/issues/70","labels_url":"https://api.github.com/repos/markdown-it/markdown-it/issues/70/labels{/name}","comments_url":"https://api.github.com/repos/markdown-it/markdown-it/issues/70/comments","events_url":"https://api.github.com/repos/markdown-it/markdown-it/issues/70/events","html_url":"https://github.com/markdown-it/markdown-it/issues/70","id":62410824,"number":70,"title":"question about the 'markup' field in the token stream...","user":{"login":"digitalmoksha","id":20626,"avatar_url":"https://avatars.githubusercontent.com/u/20626?v=3","gravatar_id":"","url":"https://api.github.com/users/digitalmoksha","html_url":"https://github.com/digitalmoksha","followers_url":"https://api.github.com/users/digitalmoksha/followers","following_url":"https://api.github.com/users/digitalmoksha/following{/other_user}","gists_url":"https://api.github.com/users/digitalmoksha/gists{/gist_id}","starred_url":"https://api.github.com/users/digitalmoksha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/digitalmoksha/subscriptions","organizations_url":"https://api.github.com/users/digitalmoksha/orgs","repos_url":"https://api.github.com/users/digitalmoksha/repos","events_url":"https://api.github.com/users/digitalmoksha/events{/privacy}","received_events_url":"https://api.github.com/users/digitalmoksha/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-03-17T14:20:52Z","updated_at":"2015-03-17T14:28:32Z","closed_at":null,"body":"I'm a little confused how the `markup` field is supposed to be used in an open and close token.\r\n\r\nFor example, `em_open.markup` is `_`, and `em_close.markup` is `_` - this makes sense because markup surrounds the text.\r\n\r\nBut `list_item_open.markup` is `*`, and `list_item_close.markup` is also `*` - but for a list item, there is no closing markup.\r\n\r\nI'm trying to use consistent rules to walk the token tree without a bunch of special cases.\r\n\r\nSame issue with `bullet_list_open` and `bullet_list_close`, both fill in the markup field.  In fact, I would have assumed that neither markup fields would be filled in (just like for a paragraph) since the markup is encapsulated in the list item."},"comment":{"url":"https://api.github.com/repos/markdown-it/markdown-it/issues/comments/82382957","html_url":"https://github.com/markdown-it/markdown-it/issues/70#issuecomment-82382957","issue_url":"https://api.github.com/repos/markdown-it/markdown-it/issues/70","id":82382957,"user":{"login":"puzrin","id":319465,"avatar_url":"https://avatars.githubusercontent.com/u/319465?v=3","gravatar_id":"","url":"https://api.github.com/users/puzrin","html_url":"https://github.com/puzrin","followers_url":"https://api.github.com/users/puzrin/followers","following_url":"https://api.github.com/users/puzrin/following{/other_user}","gists_url":"https://api.github.com/users/puzrin/gists{/gist_id}","starred_url":"https://api.github.com/users/puzrin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/puzrin/subscriptions","organizations_url":"https://api.github.com/users/puzrin/orgs","repos_url":"https://api.github.com/users/puzrin/repos","events_url":"https://api.github.com/users/puzrin/events{/privacy}","received_events_url":"https://api.github.com/users/puzrin/received_events","type":"User","site_admin":false},"created_at":"2015-03-17T14:28:32Z","updated_at":"2015-03-17T14:28:32Z","body":"Markup is not for traverse, and not expected for regular use. You need `.level` property to find matching pairs and `.nesting` to detect token type (paired/single). See src of rules in core chain, how those seek tokens."}}