{"action":"created","issue":{"url":"https://api.github.com/repos/hoedown/hoedown/issues/161","labels_url":"https://api.github.com/repos/hoedown/hoedown/issues/161/labels{/name}","comments_url":"https://api.github.com/repos/hoedown/hoedown/issues/161/comments","events_url":"https://api.github.com/repos/hoedown/hoedown/issues/161/events","html_url":"https://github.com/hoedown/hoedown/issues/161","id":92804249,"number":161,"title":"Possible to not treat inline math as \"normal text\"?","user":{"login":"cryptarch","id":1596765,"avatar_url":"https://avatars.githubusercontent.com/u/1596765?v=3","gravatar_id":"","url":"https://api.github.com/users/cryptarch","html_url":"https://github.com/cryptarch","followers_url":"https://api.github.com/users/cryptarch/followers","following_url":"https://api.github.com/users/cryptarch/following{/other_user}","gists_url":"https://api.github.com/users/cryptarch/gists{/gist_id}","starred_url":"https://api.github.com/users/cryptarch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cryptarch/subscriptions","organizations_url":"https://api.github.com/users/cryptarch/orgs","repos_url":"https://api.github.com/users/cryptarch/repos","events_url":"https://api.github.com/users/cryptarch/events{/privacy}","received_events_url":"https://api.github.com/users/cryptarch/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-07-03T06:33:20Z","updated_at":"2015-07-03T10:31:29Z","closed_at":"2015-07-03T10:31:29Z","body":"Hey there,\r\n\r\nI've been working on a LaTeX renderer for hoedown (cryptarch/mdtex) and I'm wondering if it is possible to not treat inline math as \"normal text\", or whether this could be implemented?\r\n\r\nThe problem is I would like to convert single dashes between numbers to a LaTeX-style en-dash (\"--\"). However, when I try doing the replacement, it also replaces minus-signs in inline math. The replacement doesn't happen in displaymode math, which the parser correctly distinguishes from normal text.\r\n\r\nI could possibly work around the problem by manually reparsing all normal text to ignore math mode. However, this strikes me as a bit \"hacky\". With separation of concerns in mind, it would be ideal if distinguishing inline math from normal text were handled by the parser, not the renderer.\r\n\r\nDo you see a way towards a good solution for this problem?"},"comment":{"url":"https://api.github.com/repos/hoedown/hoedown/issues/comments/118309907","html_url":"https://github.com/hoedown/hoedown/issues/161#issuecomment-118309907","issue_url":"https://api.github.com/repos/hoedown/hoedown/issues/161","id":118309907,"user":{"login":"jmendeth","id":1177304,"avatar_url":"https://avatars.githubusercontent.com/u/1177304?v=3","gravatar_id":"","url":"https://api.github.com/users/jmendeth","html_url":"https://github.com/jmendeth","followers_url":"https://api.github.com/users/jmendeth/followers","following_url":"https://api.github.com/users/jmendeth/following{/other_user}","gists_url":"https://api.github.com/users/jmendeth/gists{/gist_id}","starred_url":"https://api.github.com/users/jmendeth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jmendeth/subscriptions","organizations_url":"https://api.github.com/users/jmendeth/orgs","repos_url":"https://api.github.com/users/jmendeth/repos","events_url":"https://api.github.com/users/jmendeth/events{/privacy}","received_events_url":"https://api.github.com/users/jmendeth/received_events","type":"User","site_admin":false},"created_at":"2015-07-03T10:31:29Z","updated_at":"2015-07-03T10:31:29Z","body":"Glad it helped."}}