{"action":"created","issue":{"url":"https://api.github.com/repos/jgm/cmark/issues/26","labels_url":"https://api.github.com/repos/jgm/cmark/issues/26/labels{/name}","comments_url":"https://api.github.com/repos/jgm/cmark/issues/26/comments","events_url":"https://api.github.com/repos/jgm/cmark/issues/26/events","html_url":"https://github.com/jgm/cmark/issues/26","id":66758863,"number":26,"title":"More sourcepos?","user":{"login":"elibarzilay","id":185905,"avatar_url":"https://avatars.githubusercontent.com/u/185905?v=3","gravatar_id":"","url":"https://api.github.com/users/elibarzilay","html_url":"https://github.com/elibarzilay","followers_url":"https://api.github.com/users/elibarzilay/followers","following_url":"https://api.github.com/users/elibarzilay/following{/other_user}","gists_url":"https://api.github.com/users/elibarzilay/gists{/gist_id}","starred_url":"https://api.github.com/users/elibarzilay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elibarzilay/subscriptions","organizations_url":"https://api.github.com/users/elibarzilay/orgs","repos_url":"https://api.github.com/users/elibarzilay/repos","events_url":"https://api.github.com/users/elibarzilay/events{/privacy}","received_events_url":"https://api.github.com/users/elibarzilay/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-04-07T03:00:59Z","updated_at":"2015-04-07T03:21:05Z","closed_at":null,"body":"It would be nice if there is more source position in the output, to the point where it is possible to track the source of every bit of text.\r\n\r\nIt seems to me that currently, this tool is overall very limited (eg, doesn't come with a huge number of extensions and command line arguments to switch them on and off).  This looks like a good idea for something that is supposed to serve as a basis for some system that will extend it.  In my case, I played with the idea of embedding it with a different markup system, which would result in having the best of both (convenience of cmark, flexibility of a markup when needed).  In any case, one way to get something like that going *without* implementing yet another markdown (or commonmark) parser is to use an existing tool like cmark.  But unfortunately this requires knowing exactly where each bit of text came from, not just the current per line thing (?).  This is because my target system is a proper language, so source tracking is important for syntax errors etc.\r\n\r\nIdeally, this could be done for `--smart` replacement text too...\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/jgm/cmark/issues/comments/90335128","html_url":"https://github.com/jgm/cmark/issues/26#issuecomment-90335128","issue_url":"https://api.github.com/repos/jgm/cmark/issues/26","id":90335128,"user":{"login":"jgm","id":3044,"avatar_url":"https://avatars.githubusercontent.com/u/3044?v=3","gravatar_id":"","url":"https://api.github.com/users/jgm","html_url":"https://github.com/jgm","followers_url":"https://api.github.com/users/jgm/followers","following_url":"https://api.github.com/users/jgm/following{/other_user}","gists_url":"https://api.github.com/users/jgm/gists{/gist_id}","starred_url":"https://api.github.com/users/jgm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jgm/subscriptions","organizations_url":"https://api.github.com/users/jgm/orgs","repos_url":"https://api.github.com/users/jgm/repos","events_url":"https://api.github.com/users/jgm/events{/privacy}","received_events_url":"https://api.github.com/users/jgm/received_events","type":"User","site_admin":false},"created_at":"2015-04-07T03:21:05Z","updated_at":"2015-04-07T03:21:05Z","body":"Currently we have source position (start and end line and column) for block-level elements, but not for inline-level elements.\n\nStoring source position for inline elements would require making a few parts of the parser more complex, and it might have an efficiency cost, but it could certainly be done.\n\nIndeed, it is already done (if I'm not mistaken) in Knagis/CommonMark.NET and perhaps in other implementations too.\n\n"}}