{"action":"created","issue":{"url":"https://api.github.com/repos/tomduck/pandoc-eqnos/issues/30","repository_url":"https://api.github.com/repos/tomduck/pandoc-eqnos","labels_url":"https://api.github.com/repos/tomduck/pandoc-eqnos/issues/30/labels{/name}","comments_url":"https://api.github.com/repos/tomduck/pandoc-eqnos/issues/30/comments","events_url":"https://api.github.com/repos/tomduck/pandoc-eqnos/issues/30/events","html_url":"https://github.com/tomduck/pandoc-eqnos/issues/30","id":311665239,"node_id":"MDU6SXNzdWUzMTE2NjUyMzk=","number":30,"title":"xnos-number-sections and unnumbered equations","user":{"login":"Gjacquenot","id":6797340,"node_id":"MDQ6VXNlcjY3OTczNDA=","avatar_url":"https://avatars0.githubusercontent.com/u/6797340?v=4","gravatar_id":"","url":"https://api.github.com/users/Gjacquenot","html_url":"https://github.com/Gjacquenot","followers_url":"https://api.github.com/users/Gjacquenot/followers","following_url":"https://api.github.com/users/Gjacquenot/following{/other_user}","gists_url":"https://api.github.com/users/Gjacquenot/gists{/gist_id}","starred_url":"https://api.github.com/users/Gjacquenot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Gjacquenot/subscriptions","organizations_url":"https://api.github.com/users/Gjacquenot/orgs","repos_url":"https://api.github.com/users/Gjacquenot/repos","events_url":"https://api.github.com/users/Gjacquenot/events{/privacy}","received_events_url":"https://api.github.com/users/Gjacquenot/received_events","type":"User","site_admin":false},"labels":[{"id":187654304,"node_id":"MDU6TGFiZWwxODc2NTQzMDQ=","url":"https://api.github.com/repos/tomduck/pandoc-eqnos/labels/bug","name":"bug","color":"fc2929","default":true}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2018-04-05T15:44:29Z","updated_at":"2018-08-09T12:52:27Z","closed_at":"2018-08-09T12:39:16Z","author_association":"NONE","body":"When using `xnos-number-sections: On`, it seems like all equations need an identifier `{#eq:}`. If not, an error is thrown. When NOT using this option, equation is not numbered and that is fine. We would expect the same behaviour with this option\r\n\r\nBelow is minimal markdown file that reproduce the error:\r\n\r\nI use the latest versions of pandoc-eqnos with command\r\n\r\n    pip install -U pandoc-eqnos\r\n\r\n\r\nFile `bug.md`\r\n\r\n    ---\r\n    xnos-number-sections: On\r\n    ...\r\n\r\n    # Title 1\r\n\r\n    $$ x $$ {#eq:}\r\n\r\n    Symbol $x$ has no reference\r\n\r\nPandoc command:\r\n\r\n    pandoc --mathml --filter pandoc-eqnos -o bug.html bug.md\r\n\r\n\r\nError message:\r\n\r\n    Traceback (most recent call last):\r\n      File \"c:\\program files\\python36\\lib\\runpy.py\", line 193, in _run_module_as_main\r\n        \"__main__\", mod_spec)\r\n      File \"c:\\program files\\python36\\lib\\runpy.py\", line 85, in _run_code\r\n        exec(code, run_globals)\r\n      File \"C:\\Program Files\\Python36\\Scripts\\pandoc-eqnos.exe\\__main__.py\", line 9, in <module>\r\n      File \"c:\\program files\\python36\\lib\\site-packages\\pandoc_eqnos.py\", line 301, in main\r\n        detach_attrs_math], blocks)\r\n      File \"c:\\program files\\python36\\lib\\site-packages\\pandoc_eqnos.py\", line 298, in <lambda>\r\n        altered = functools.reduce(lambda x, action: walk(x, action, fmt, meta),\r\n      File \"c:\\program files\\python36\\lib\\site-packages\\pandocfilters.py\", line 113, in walk\r\n        array.append(walk(item, action, format, meta))\r\n      File \"c:\\program files\\python36\\lib\\site-packages\\pandocfilters.py\", line 124, in walk\r\n        x[k] = walk(x[k], action, format, meta)\r\n      File \"c:\\program files\\python36\\lib\\site-packages\\pandocfilters.py\", line 111, in walk\r\n        item['c'] if 'c' in item else None, format, meta)\r\n      File \"c:\\program files\\python36\\lib\\site-packages\\pandocxnos\\core.py\", line 893, in insert_secnos\r\n        value[0][2].insert(0, ['secno', s])\r\n    KeyError: 2\r\n    Error running filter pandoc-eqnos:\r\n    Filter returned error status 1"},"comment":{"url":"https://api.github.com/repos/tomduck/pandoc-eqnos/issues/comments/411746611","html_url":"https://github.com/tomduck/pandoc-eqnos/issues/30#issuecomment-411746611","issue_url":"https://api.github.com/repos/tomduck/pandoc-eqnos/issues/30","id":411746611,"node_id":"MDEyOklzc3VlQ29tbWVudDQxMTc0NjYxMQ==","user":{"login":"Gjacquenot","id":6797340,"node_id":"MDQ6VXNlcjY3OTczNDA=","avatar_url":"https://avatars0.githubusercontent.com/u/6797340?v=4","gravatar_id":"","url":"https://api.github.com/users/Gjacquenot","html_url":"https://github.com/Gjacquenot","followers_url":"https://api.github.com/users/Gjacquenot/followers","following_url":"https://api.github.com/users/Gjacquenot/following{/other_user}","gists_url":"https://api.github.com/users/Gjacquenot/gists{/gist_id}","starred_url":"https://api.github.com/users/Gjacquenot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Gjacquenot/subscriptions","organizations_url":"https://api.github.com/users/Gjacquenot/orgs","repos_url":"https://api.github.com/users/Gjacquenot/repos","events_url":"https://api.github.com/users/Gjacquenot/events{/privacy}","received_events_url":"https://api.github.com/users/Gjacquenot/received_events","type":"User","site_admin":false},"created_at":"2018-08-09T12:52:27Z","updated_at":"2018-08-09T12:52:27Z","author_association":"NONE","body":"Thanks for your work Tom."}}
{"actor":{"display_login":"Gjacquenot"}}