{"action":"created","issue":{"url":"https://api.github.com/repos/inukshuk/jekyll-scholar/issues/143","repository_url":"https://api.github.com/repos/inukshuk/jekyll-scholar","labels_url":"https://api.github.com/repos/inukshuk/jekyll-scholar/issues/143/labels{/name}","comments_url":"https://api.github.com/repos/inukshuk/jekyll-scholar/issues/143/comments","events_url":"https://api.github.com/repos/inukshuk/jekyll-scholar/issues/143/events","html_url":"https://github.com/inukshuk/jekyll-scholar/issues/143","id":145785210,"number":143,"title":"Bug in textsuperscript","user":{"login":"dpo","id":38760,"avatar_url":"https://avatars.githubusercontent.com/u/38760?v=3","gravatar_id":"","url":"https://api.github.com/users/dpo","html_url":"https://github.com/dpo","followers_url":"https://api.github.com/users/dpo/followers","following_url":"https://api.github.com/users/dpo/following{/other_user}","gists_url":"https://api.github.com/users/dpo/gists{/gist_id}","starred_url":"https://api.github.com/users/dpo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dpo/subscriptions","organizations_url":"https://api.github.com/users/dpo/orgs","repos_url":"https://api.github.com/users/dpo/repos","events_url":"https://api.github.com/users/dpo/events{/privacy}","received_events_url":"https://api.github.com/users/dpo/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-04-04T19:46:46Z","updated_at":"2016-04-06T14:45:20Z","closed_at":null,"body":"The regexp used in the `textsuperscript` filter matches the longest string between an opening brace and closing brace. As a result, in the entry\r\n```\r\n@misc{pickaxe,\r\n        title     = {This is \\textsuperscript{superscript} and {N}ormal text.}\r\n      }\r\n```\r\nthe text `superscript and N` will be superscripted.\r\n\r\nInitially, I thought matching the shortest string between braces would fix the bug (it does on the above example), but it still breaks on\r\n```\r\n@misc{pickaxe,\r\n        title     = {\\textsuperscript{\\\"u \\\"{u} \\v{z}}}\r\n      }\r\n```"},"comment":{"url":"https://api.github.com/repos/inukshuk/jekyll-scholar/issues/comments/206410341","html_url":"https://github.com/inukshuk/jekyll-scholar/issues/143#issuecomment-206410341","issue_url":"https://api.github.com/repos/inukshuk/jekyll-scholar/issues/143","id":206410341,"user":{"login":"dpo","id":38760,"avatar_url":"https://avatars.githubusercontent.com/u/38760?v=3","gravatar_id":"","url":"https://api.github.com/users/dpo","html_url":"https://github.com/dpo","followers_url":"https://api.github.com/users/dpo/followers","following_url":"https://api.github.com/users/dpo/following{/other_user}","gists_url":"https://api.github.com/users/dpo/gists{/gist_id}","starred_url":"https://api.github.com/users/dpo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dpo/subscriptions","organizations_url":"https://api.github.com/users/dpo/orgs","repos_url":"https://api.github.com/users/dpo/repos","events_url":"https://api.github.com/users/dpo/events{/privacy}","received_events_url":"https://api.github.com/users/dpo/received_events","type":"User","site_admin":false},"created_at":"2016-04-06T14:45:20Z","updated_at":"2016-04-06T14:45:20Z","body":"I agree. If other filters have already removed pairs of braces, we're in better shape, although currently, something like `\\textsuperscript{\\textsf{some} text}` will not be parsed correctly."}}