Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: sequence item 2: expected str instance, tuple found #121

Open
viperfx opened this issue Oct 17, 2020 · 3 comments
Open

TypeError: sequence item 2: expected str instance, tuple found #121

viperfx opened this issue Oct 17, 2020 · 3 comments

Comments

@viperfx
Copy link

viperfx commented Oct 17, 2020

When converting the following draftjs block

json = { "blocks":[ { "key":"5h2v6", "data":{ }, "text":"  New Software Intake", "type":"unstyled", "depth":0, "entityRanges":[ ], "inlineStyleRanges":[ { "style":"BOLD", "length":19, "offset":2 } ] }, { "key":"bd5l6", "data":{ }, "text":"REQ0034718  - TMO-TFS Meets Outlook (Working with Bhupinder)", "type":"unordered-list-item", "depth":1, "entityRanges":[ ], "inlineStyleRanges":[ ] }, { "key":"bhorl", "data":{ }, "text":"REQ0034717  - Power BI Enterprise Gateway (Working with Bhupinder)", "type":"unordered-list-item", "depth":1, "entityRanges":[ ], "inlineStyleRanges":[ ] } ], "entityMap":{ } }

I got the following issue.

@thibaudcolas
Copy link
Owner

thibaudcolas commented Oct 17, 2020

Hey @viperfx, most likely this is because the list items are both at depth 1. I assume the exporter doesn’t support there not being an item at depth 0. This would be equivalent to the following HTML:

<ul>
  <li>
    <ul>
        <li>First item depth 1</li>
        <li>Second item depth 1</li>
    </ul>
  </li>
</ul>

What would you expect this to produce in Markdown?

@viperfx
Copy link
Author

viperfx commented Oct 17, 2020 via email

@viperfx
Copy link
Author

viperfx commented Oct 22, 2020

Any suggestions @thibaudcolas ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants