{"action":"opened","issue":{"url":"https://api.github.com/repos/LaTeXing/LaTeXing/issues/120","labels_url":"https://api.github.com/repos/LaTeXing/LaTeXing/issues/120/labels{/name}","comments_url":"https://api.github.com/repos/LaTeXing/LaTeXing/issues/120/comments","events_url":"https://api.github.com/repos/LaTeXing/LaTeXing/issues/120/events","html_url":"https://github.com/LaTeXing/LaTeXing/issues/120","id":61224816,"number":120,"title":"Case, underscores and special characters in labels in the section and subsection snippets","user":{"login":"fredrikpaues","id":1590227,"avatar_url":"https://avatars.githubusercontent.com/u/1590227?v=3","gravatar_id":"","url":"https://api.github.com/users/fredrikpaues","html_url":"https://github.com/fredrikpaues","followers_url":"https://api.github.com/users/fredrikpaues/followers","following_url":"https://api.github.com/users/fredrikpaues/following{/other_user}","gists_url":"https://api.github.com/users/fredrikpaues/gists{/gist_id}","starred_url":"https://api.github.com/users/fredrikpaues/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fredrikpaues/subscriptions","organizations_url":"https://api.github.com/users/fredrikpaues/orgs","repos_url":"https://api.github.com/users/fredrikpaues/repos","events_url":"https://api.github.com/users/fredrikpaues/events{/privacy}","received_events_url":"https://api.github.com/users/fredrikpaues/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-03-13T20:30:42Z","updated_at":"2015-03-13T20:30:42Z","closed_at":null,"body":"The section and subsection snippets use regexes to convert heading to labels on the fly. However, I believe this could be better done.\r\n\r\n1. Labels are converted to lowercase and use underscores. I have understood from http://tex.stackexchange.com/questions/149701/are-latexs-label-names-case-sensitive-can-label-names-contain-spaces that labels are case-sensitive so there is no need to convert to lowercase. Also, apparently there could be problems with using hyphens in labels.\r\n\r\n2. The conversion works just fine for A-Za-z, but it would be great if also accented characters were converted to their nonaccented counterparts: üåäöÅÄÖ --> uaaoAAO, etc."}}