{"action":"created","issue":{"url":"https://api.github.com/repos/mwilliamson/mammoth.js/issues/157","repository_url":"https://api.github.com/repos/mwilliamson/mammoth.js","labels_url":"https://api.github.com/repos/mwilliamson/mammoth.js/issues/157/labels{/name}","comments_url":"https://api.github.com/repos/mwilliamson/mammoth.js/issues/157/comments","events_url":"https://api.github.com/repos/mwilliamson/mammoth.js/issues/157/events","html_url":"https://github.com/mwilliamson/mammoth.js/issues/157","id":324562293,"number":157,"title":"Using arraybuffer strips list styles and indents","user":{"login":"harmeetjaipur","id":6113740,"avatar_url":"https://avatars2.githubusercontent.com/u/6113740?v=4","gravatar_id":"","url":"https://api.github.com/users/harmeetjaipur","html_url":"https://github.com/harmeetjaipur","followers_url":"https://api.github.com/users/harmeetjaipur/followers","following_url":"https://api.github.com/users/harmeetjaipur/following{/other_user}","gists_url":"https://api.github.com/users/harmeetjaipur/gists{/gist_id}","starred_url":"https://api.github.com/users/harmeetjaipur/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/harmeetjaipur/subscriptions","organizations_url":"https://api.github.com/users/harmeetjaipur/orgs","repos_url":"https://api.github.com/users/harmeetjaipur/repos","events_url":"https://api.github.com/users/harmeetjaipur/events{/privacy}","received_events_url":"https://api.github.com/users/harmeetjaipur/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2018-05-18T21:51:13Z","updated_at":"2018-05-22T22:11:38Z","closed_at":null,"author_association":"NONE","body":"Hi,\r\n\r\nFollowing is the code in a React app:\r\n\r\n`const arrayBuffer = await readAsArrayBuffer(this.state.file);\r\n        const options = {\r\n          styleMap: ['ol => ul'],\r\n        };\r\n       const newDocument = await mammoth.convertToHtml({\r\n          arrayBuffer,\r\n        }, options);`\r\n\r\n\r\nI am trying to parse a docx in browser and get all the indents and styles for each paragraph from a docx that has following pattern going on: [https://image.ibb.co/mxVBWT/Selection_028.png](url)\r\n\r\nThere are nested lists with ^ that kind of formatting that I want to retain. There are comments as well that I want to retain as well. Whenever I am parsing, the `value` always contains a bunch of `<ol><li>` tags whenever there is an ordered list, like this:\r\n\r\n`<ol><li><strong><em>[First Name Last Name]</em></strong>, an individual, residing at <strong><em>[Address]</em></strong> (“<strong><em>[First Name]</em></strong>”); </li><li><strong><em>[First Name Last Name]</em></strong>, an individual, residing at <strong><em>[Address]</em></strong>  (“<strong><em>[First Name]</em></strong>”); and</li><li><strong><em>[HoundCo]</em>, </strong>a corporation incorporated provincially in the Province of Ontario with corporation number <strong><em> [•] </em></strong>(the \"<strong>Corporation</strong>\" and together with <em>[</em><strong><em>First Name]</em></strong>, <em>[</em><strong><em>First Name]</em></strong>, and <em>[</em><strong><em>First Name]</em></strong> each a “<strong>Party</strong>” and collectively, the “<strong>Parties</strong>”).</li></ol>`\r\n\r\nI am sure I am missing something silly but I can't seem to fetch the list styles."},"comment":{"url":"https://api.github.com/repos/mwilliamson/mammoth.js/issues/comments/391157368","html_url":"https://github.com/mwilliamson/mammoth.js/issues/157#issuecomment-391157368","issue_url":"https://api.github.com/repos/mwilliamson/mammoth.js/issues/157","id":391157368,"user":{"login":"harmeetjaipur","id":6113740,"avatar_url":"https://avatars2.githubusercontent.com/u/6113740?v=4","gravatar_id":"","url":"https://api.github.com/users/harmeetjaipur","html_url":"https://github.com/harmeetjaipur","followers_url":"https://api.github.com/users/harmeetjaipur/followers","following_url":"https://api.github.com/users/harmeetjaipur/following{/other_user}","gists_url":"https://api.github.com/users/harmeetjaipur/gists{/gist_id}","starred_url":"https://api.github.com/users/harmeetjaipur/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/harmeetjaipur/subscriptions","organizations_url":"https://api.github.com/users/harmeetjaipur/orgs","repos_url":"https://api.github.com/users/harmeetjaipur/repos","events_url":"https://api.github.com/users/harmeetjaipur/events{/privacy}","received_events_url":"https://api.github.com/users/harmeetjaipur/received_events","type":"User","site_admin":false},"created_at":"2018-05-22T22:11:38Z","updated_at":"2018-05-22T22:11:38Z","author_association":"NONE","body":"Style mapping had me achieve the result I wanted to, thanks."}}
{"actor":{"display_login":"harmeetjaipur"}}