{"action":"created","issue":{"url":"https://api.github.com/repos/milesj/decoda/issues/103","labels_url":"https://api.github.com/repos/milesj/decoda/issues/103/labels{/name}","comments_url":"https://api.github.com/repos/milesj/decoda/issues/103/comments","events_url":"https://api.github.com/repos/milesj/decoda/issues/103/events","html_url":"https://github.com/milesj/decoda/pull/103","id":85169427,"number":103,"title":"Deal with nested code tags","user":{"login":"mamiefurax","id":3955802,"avatar_url":"https://avatars.githubusercontent.com/u/3955802?v=3","gravatar_id":"","url":"https://api.github.com/users/mamiefurax","html_url":"https://github.com/mamiefurax","followers_url":"https://api.github.com/users/mamiefurax/followers","following_url":"https://api.github.com/users/mamiefurax/following{/other_user}","gists_url":"https://api.github.com/users/mamiefurax/gists{/gist_id}","starred_url":"https://api.github.com/users/mamiefurax/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mamiefurax/subscriptions","organizations_url":"https://api.github.com/users/mamiefurax/orgs","repos_url":"https://api.github.com/users/mamiefurax/repos","events_url":"https://api.github.com/users/mamiefurax/events{/privacy}","received_events_url":"https://api.github.com/users/mamiefurax/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-06-04T16:22:28Z","updated_at":"2015-06-04T17:15:19Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/milesj/decoda/pulls/103","html_url":"https://github.com/milesj/decoda/pull/103","diff_url":"https://github.com/milesj/decoda/pull/103.diff","patch_url":"https://github.com/milesj/decoda/pull/103.patch"},"body":"change the regexp in CodeHook in order to deal with nested code tags, see unit test for examples and understanding !"},"comment":{"url":"https://api.github.com/repos/milesj/decoda/issues/comments/108979537","html_url":"https://github.com/milesj/decoda/pull/103#issuecomment-108979537","issue_url":"https://api.github.com/repos/milesj/decoda/issues/103","id":108979537,"user":{"login":"mamiefurax","id":3955802,"avatar_url":"https://avatars.githubusercontent.com/u/3955802?v=3","gravatar_id":"","url":"https://api.github.com/users/mamiefurax","html_url":"https://github.com/mamiefurax","followers_url":"https://api.github.com/users/mamiefurax/followers","following_url":"https://api.github.com/users/mamiefurax/following{/other_user}","gists_url":"https://api.github.com/users/mamiefurax/gists{/gist_id}","starred_url":"https://api.github.com/users/mamiefurax/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mamiefurax/subscriptions","organizations_url":"https://api.github.com/users/mamiefurax/orgs","repos_url":"https://api.github.com/users/mamiefurax/repos","events_url":"https://api.github.com/users/mamiefurax/events{/privacy}","received_events_url":"https://api.github.com/users/mamiefurax/received_events","type":"User","site_admin":false},"created_at":"2015-06-04T17:15:19Z","updated_at":"2015-06-04T17:15:19Z","body":"For example to show how to use bbcode code tag. I need to be able to do the following :\r\n[code]\r\nthis is a sample usage of [code] bbcode tag  :\r\n```\r\n[code=\"php\"]\r\n<?php \r\necho 'hello world';\r\n?>\r\n[/code]\r\nyou can use this tag to show some code to other people, you must specify the language used to allow syntax coloration\r\n[/code]\r\n```\r\n\r\nAnd I need to see the following html :\r\n```\r\n<pre><code>\r\nthis is a sample usage of [code] bbcode tag  :\r\n[code=\"php\"]\r\n<?php \r\necho 'hello world';\r\n?>\r\n[/code]\r\nyou can use this tag to show some code to other people, you must specify the language used to allow syntax coloration\r\n</code></pre>\r\n```\r\n\r\nand without the recursion in the regexp i have the following :\r\n```\r\n<pre><code>\r\nthis is a sample usage of [code] bbcode tag  :\r\n[code=\"php\"]\r\n<?php \r\necho 'hello world';\r\n?>\r\n</code></pre>\r\n```\r\n\r\nwhich is pretty wrong"}}