{"action":"closed","issue":{"url":"https://api.github.com/repos/SublimeText-Markdown/MarkdownEditing/issues/316","repository_url":"https://api.github.com/repos/SublimeText-Markdown/MarkdownEditing","labels_url":"https://api.github.com/repos/SublimeText-Markdown/MarkdownEditing/issues/316/labels{/name}","comments_url":"https://api.github.com/repos/SublimeText-Markdown/MarkdownEditing/issues/316/comments","events_url":"https://api.github.com/repos/SublimeText-Markdown/MarkdownEditing/issues/316/events","html_url":"https://github.com/SublimeText-Markdown/MarkdownEditing/issues/316","id":125752982,"number":316,"title":"Suggestion - require closing tags for HTML blocks be at the beginning of the line","user":{"login":"twhb","id":3160667,"avatar_url":"https://avatars.githubusercontent.com/u/3160667?v=3","gravatar_id":"","url":"https://api.github.com/users/twhb","html_url":"https://github.com/twhb","followers_url":"https://api.github.com/users/twhb/followers","following_url":"https://api.github.com/users/twhb/following{/other_user}","gists_url":"https://api.github.com/users/twhb/gists{/gist_id}","starred_url":"https://api.github.com/users/twhb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/twhb/subscriptions","organizations_url":"https://api.github.com/users/twhb/orgs","repos_url":"https://api.github.com/users/twhb/repos","events_url":"https://api.github.com/users/twhb/events{/privacy}","received_events_url":"https://api.github.com/users/twhb/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/SublimeText-Markdown/MarkdownEditing/milestones/6","html_url":"https://github.com/SublimeText-Markdown/MarkdownEditing/milestones/v2.1.5","labels_url":"https://api.github.com/repos/SublimeText-Markdown/MarkdownEditing/milestones/6/labels","id":1621506,"number":6,"title":"v2.1.5","description":"","creator":{"login":"felixhao28","id":2417391,"avatar_url":"https://avatars.githubusercontent.com/u/2417391?v=3","gravatar_id":"","url":"https://api.github.com/users/felixhao28","html_url":"https://github.com/felixhao28","followers_url":"https://api.github.com/users/felixhao28/followers","following_url":"https://api.github.com/users/felixhao28/following{/other_user}","gists_url":"https://api.github.com/users/felixhao28/gists{/gist_id}","starred_url":"https://api.github.com/users/felixhao28/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/felixhao28/subscriptions","organizations_url":"https://api.github.com/users/felixhao28/orgs","repos_url":"https://api.github.com/users/felixhao28/repos","events_url":"https://api.github.com/users/felixhao28/events{/privacy}","received_events_url":"https://api.github.com/users/felixhao28/received_events","type":"User","site_admin":false},"open_issues":1,"closed_issues":2,"state":"open","created_at":"2016-03-04T03:38:49Z","updated_at":"2016-03-04T03:41:11Z","due_on":null,"closed_at":null},"comments":12,"created_at":"2016-01-09T11:07:26Z","updated_at":"2016-03-04T03:41:11Z","closed_at":"2016-03-04T03:41:11Z","body":"This deviates from parsing behavior, but hear me out.\r\n\r\nThe current approach, ignoring nesting and looking for the closing tag text, is also incorrect. It closes HTML blocks at the first closing tag for an element with the same name, rather than the block's closing tag, mis-highlighting the rest of the HTML block.\r\n\r\nA proper solution is difficult - it would mean rewriting the entire language file as a .sublime-syntax, which isn't supported in Sublime Text 2.\r\n\r\nSince the syntax file currently requires HTML block open tags be at the beginning of their line, and handles blocks that open and close on the same line separately, adding this requirement would yield correct output for all conventionally indented code. I think that breaking on unconventional code, while not a good thing, is preferable to breaking on conventional code as is done now.\r\n\r\nThis is not a hypothetical situation, I encounter it often when using nested `dl` structures to express methods and their parameters in READMEs.\r\n\r\nUsers can currently work around this bug by wrapping HTML blocks in a tag unique within that block, but I believe that code tailored to syntax highlighters should be avoided.\r\n\r\nAny feedback? If given the go-ahead I'd be happy to implement the change, the actual change to the syntax files is trivial."}}