{"action":"opened","issue":{"url":"https://api.github.com/repos/GitbookIO/gitbook/issues/901","labels_url":"https://api.github.com/repos/GitbookIO/gitbook/issues/901/labels{/name}","comments_url":"https://api.github.com/repos/GitbookIO/gitbook/issues/901/comments","events_url":"https://api.github.com/repos/GitbookIO/gitbook/issues/901/events","html_url":"https://github.com/GitbookIO/gitbook/issues/901","id":104953273,"number":901,"title":"Markdown parser not compliant when it comes to literal asterisks","user":{"login":"CoDEmanX","id":1309249,"avatar_url":"https://avatars.githubusercontent.com/u/1309249?v=3","gravatar_id":"","url":"https://api.github.com/users/CoDEmanX","html_url":"https://github.com/CoDEmanX","followers_url":"https://api.github.com/users/CoDEmanX/followers","following_url":"https://api.github.com/users/CoDEmanX/following{/other_user}","gists_url":"https://api.github.com/users/CoDEmanX/gists{/gist_id}","starred_url":"https://api.github.com/users/CoDEmanX/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CoDEmanX/subscriptions","organizations_url":"https://api.github.com/users/CoDEmanX/orgs","repos_url":"https://api.github.com/users/CoDEmanX/repos","events_url":"https://api.github.com/users/CoDEmanX/events{/privacy}","received_events_url":"https://api.github.com/users/CoDEmanX/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-09-04T19:17:24Z","updated_at":"2015-09-04T19:17:24Z","closed_at":null,"body":"The parser fails at a very simple thing like literal asterisks inside an italicized group of words.\r\n[Backslash escapes][1] do not work.\r\n\r\n# Example A\r\n\r\n**Desired result:**\r\n> text text *five * six* text ...\r\n\r\n(\"five * six\" italicized, literal * in the middle)\r\nSame behavior: [Markdown PHP][2]\r\n\r\n**Github markup to produce that result:**\r\n>`text text *five * six* text ...`\r\n\r\n(no escaping needed at all!)\r\n\r\n**StackExchange markup:**\r\n>`text text *five \\* six* text`\r\n\r\n(backlash-escaped asterisk)\r\nSame behavior: [Parsedown][2], [markdown.js][3], [Markdown PHP][2]\r\n\r\n**Gitbook markup:**\r\n>`text text *five &#42; six* text` --OR--\r\n> `text text <i>five \\* six</i>`\r\n\r\n(requires HTML-fallback)\r\n\r\n# Example B\r\n\r\n**Desired result:**\r\n> text text *five***six* text\r\n\r\n(no spaces around literal asterisk)\r\n\r\n**Github markup:**\r\n> `text text *five***six* text`\r\n\r\n(3 asterisks, which isn't really standard-compliant either, but at least readable)\r\n\r\n**StockOverflow markup**:\r\n> `text text *five\\*six* text`\r\n\r\n(backslash escaping works as it should)\r\nSame behavior: [Parsedown][2], [markdown.js][3], [Markdown PHP][2]\r\n\r\n**Gitbook markup:**\r\n> `text text *five&ast;six* text` --OR--\r\n> `text text <i>five*six</i> text`\r\n\r\n(requires HTML-fallback)\r\n\r\nItalicized text enclosed in literal asterisks is not working right either. The following gives the desired result:\r\n> `**foo*\\*`\r\n\r\nbut should actually be:\r\n> `\\**foo*\\*` --OR-- `*\\*foo\\**`\r\n\r\n[1]: https://daringfireball.net/projects/markdown/syntax#backslash\r\n[2]: http://parsedown.org/demo\r\n[3]: http://markdownlivepreview.com/\r\n"}}