{"action":"created","issue":{"url":"https://api.github.com/repos/mathjax/MathJax/issues/1236","labels_url":"https://api.github.com/repos/mathjax/MathJax/issues/1236/labels{/name}","comments_url":"https://api.github.com/repos/mathjax/MathJax/issues/1236/comments","events_url":"https://api.github.com/repos/mathjax/MathJax/issues/1236/events","html_url":"https://github.com/mathjax/MathJax/issues/1236","id":99638131,"number":1236,"title":"mediawiki texvc: Commands printed with backslash","user":{"login":"physikerwelt","id":2777736,"avatar_url":"https://avatars.githubusercontent.com/u/2777736?v=3","gravatar_id":"","url":"https://api.github.com/users/physikerwelt","html_url":"https://github.com/physikerwelt","followers_url":"https://api.github.com/users/physikerwelt/followers","following_url":"https://api.github.com/users/physikerwelt/following{/other_user}","gists_url":"https://api.github.com/users/physikerwelt/gists{/gist_id}","starred_url":"https://api.github.com/users/physikerwelt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/physikerwelt/subscriptions","organizations_url":"https://api.github.com/users/physikerwelt/orgs","repos_url":"https://api.github.com/users/physikerwelt/repos","events_url":"https://api.github.com/users/physikerwelt/events{/privacy}","received_events_url":"https://api.github.com/users/physikerwelt/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/mathjax/MathJax/labels/Expected%20Behavior","name":"Expected Behavior","color":"3463b3"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":19,"created_at":"2015-08-07T12:25:35Z","updated_at":"2015-08-07T20:25:04Z","closed_at":null,"body":"https://github.com/wikimedia/mathoid/blob/master/test/files/mathjax-texvc/test-p.md\r\nshows that some commands are printed as the original tex input and no error was thrown.\r\nIs there a way to throw an error on an unknown command?\r\nPS: Note that those commands were enclosed in a \\mbox"},"comment":{"url":"https://api.github.com/repos/mathjax/MathJax/issues/comments/128826318","html_url":"https://github.com/mathjax/MathJax/issues/1236#issuecomment-128826318","issue_url":"https://api.github.com/repos/mathjax/MathJax/issues/1236","id":128826318,"user":{"login":"dpvc","id":432782,"avatar_url":"https://avatars.githubusercontent.com/u/432782?v=3","gravatar_id":"","url":"https://api.github.com/users/dpvc","html_url":"https://github.com/dpvc","followers_url":"https://api.github.com/users/dpvc/followers","following_url":"https://api.github.com/users/dpvc/following{/other_user}","gists_url":"https://api.github.com/users/dpvc/gists{/gist_id}","starred_url":"https://api.github.com/users/dpvc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dpvc/subscriptions","organizations_url":"https://api.github.com/users/dpvc/orgs","repos_url":"https://api.github.com/users/dpvc/repos","events_url":"https://api.github.com/users/dpvc/events{/privacy}","received_events_url":"https://api.github.com/users/dpvc/received_events","type":"User","site_admin":false},"created_at":"2015-08-07T20:25:04Z","updated_at":"2015-08-07T20:25:04Z","body":"> `texvcjs` is supposed to be idempotent which works for `mbox` but not for `mathrm`\r\n\r\nI'm sorry, I don't know what that means in this context.  Can you explain the problem in more detail?\r\n\r\n> The solution is probably for MathJax (or the WMF MathJax extension) to support the small subset of `\\mbox` which is used by texvc.\r\n\r\nThere is a function that gets called on the text within `\\mbox`, `\\hbox`, `\\text`, etc, that currently just wraps the results in an `<mtext>` element (and makes sure initial and trailing spaces are not lost).  You could certainly override that in your extension so that it looks for the macros that you want to support and inserted the proper characters.  Such processing is unlikely to be added to MathJax core, however.\r\n"}}