{"action":"created","issue":{"url":"https://api.github.com/repos/thephpleague/commonmark/issues/60","labels_url":"https://api.github.com/repos/thephpleague/commonmark/issues/60/labels{/name}","comments_url":"https://api.github.com/repos/thephpleague/commonmark/issues/60/comments","events_url":"https://api.github.com/repos/thephpleague/commonmark/issues/60/events","html_url":"https://github.com/thephpleague/commonmark/issues/60","id":54749281,"number":60,"title":"Markdown Extra","user":{"login":"mnapoli","id":720328,"avatar_url":"https://avatars.githubusercontent.com/u/720328?v=3","gravatar_id":"","url":"https://api.github.com/users/mnapoli","html_url":"https://github.com/mnapoli","followers_url":"https://api.github.com/users/mnapoli/followers","following_url":"https://api.github.com/users/mnapoli/following{/other_user}","gists_url":"https://api.github.com/users/mnapoli/gists{/gist_id}","starred_url":"https://api.github.com/users/mnapoli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mnapoli/subscriptions","organizations_url":"https://api.github.com/users/mnapoli/orgs","repos_url":"https://api.github.com/users/mnapoli/repos","events_url":"https://api.github.com/users/mnapoli/events{/privacy}","received_events_url":"https://api.github.com/users/mnapoli/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-01-19T10:47:12Z","updated_at":"2015-01-19T14:16:05Z","closed_at":"2015-01-19T14:16:05Z","body":"Hi there!\r\n\r\nI want to support Markdown Extra to be able to replace completely Parsedown with this package in Couscous. I'm guessing you don't want to add support for Markdown Extra in there right? (which would make sense, Markdown Extra ≠ CommonMark). Is there any plan on your side or anybody else for this? \r\n\r\nAnd if not and I have to get to it myself, do you think it can easily be done (hopefully the new architecture with the model will help). Do you have pointers/tips to get me started?"},"comment":{"url":"https://api.github.com/repos/thephpleague/commonmark/issues/comments/70497876","html_url":"https://github.com/thephpleague/commonmark/issues/60#issuecomment-70497876","issue_url":"https://api.github.com/repos/thephpleague/commonmark/issues/60","id":70497876,"user":{"login":"colinodell","id":202034,"avatar_url":"https://avatars.githubusercontent.com/u/202034?v=3","gravatar_id":"","url":"https://api.github.com/users/colinodell","html_url":"https://github.com/colinodell","followers_url":"https://api.github.com/users/colinodell/followers","following_url":"https://api.github.com/users/colinodell/following{/other_user}","gists_url":"https://api.github.com/users/colinodell/gists{/gist_id}","starred_url":"https://api.github.com/users/colinodell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/colinodell/subscriptions","organizations_url":"https://api.github.com/users/colinodell/orgs","repos_url":"https://api.github.com/users/colinodell/repos","events_url":"https://api.github.com/users/colinodell/events{/privacy}","received_events_url":"https://api.github.com/users/colinodell/received_events","type":"User","site_admin":false},"created_at":"2015-01-19T14:16:05Z","updated_at":"2015-01-19T14:16:05Z","body":"It's definitely possible to extend CommonMark as of version 0.5 / 0.6.  You're correct though, we wouldn't want to include Markdown Extra within our package.  I'm not aware of anyone else who's working on this, so I'd definitely encourage you to create your own package which adds this functionality if you're interested.  (@dshafik has done exactly this to implement Markua support: https://github.com/dshafik/markua)\r\n\r\nYou'll want to start by creating a new [`Extension`](https://github.com/thephpleague/commonmark/blob/master/src/Extension/Extension.php).  This is a simple class which defines which parsers/renderers are initialized and in what order.  From there you'd just implement the different parsers/renderers you'd need (check out the existing classes for examples).\r\n\r\nI hope that helps get you started.  I'm going to close this issue (to keep things tidy) but feel free to continue communicating here if you'd like.  Let me know if I can help answer any questions!"}}