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

Convertion skips some child items in text #173

Closed
plmarzi opened this issue Nov 1, 2024 · 3 comments
Closed

Convertion skips some child items in text #173

plmarzi opened this issue Nov 1, 2024 · 3 comments

Comments

@plmarzi
Copy link

plmarzi commented Nov 1, 2024

Hi

So we are trying to use this library to convert Azure devops work items into openXML and merge them into word file.
I have noticed that some of text is missing if text is child or subchild:
image
This is example of outcome word file:
image

I have also noticed that ti can be fixed with that:

Original

`

  1. The system shows the screen as pictured on the Design 1
  2. User selects between the two options:
    1. If "Call Support", then a pop-up with contact information appears (Design 2)
    2. If "Cancel", then the user is transferred to the Get Started screen #58252
`

Fixed

`

  1. The system shows the screen as pictured on the Design 1
  2. User selects between the two options:
    1. If "Call Support", then a pop-up with contact information appears (Design 2)
    2. If "Cancel", then the user is transferred to the Get Started screen #58252
`

Anybody using this library came across this problem?

@onizet
Copy link
Owner

onizet commented Nov 4, 2024

Hello, I notice that your original version, the nested ol is not part of a li element:

<ol dir="auto"><p dir="auto"></p>
  <li><span lang="EN-US">The system shows the screen as pictured on the <b>Design 1</b></span></li>
  <li>User selects between the two options:</li>
  <ol dir="auto">
    <li><span>If "Call Support", then a pop-up with contact information appears (<b>Design 2</b>)</span></li>
    <li><span>If "Cancel", then the user is transferred to the Get Started screen #58252</span></li>
  </ol>
</ol>

while correct version should have been:

<ol dir="auto"><p dir="auto"></p>
  <li><span lang="EN-US">The system shows the screen as pictured on the <b>Design 1</b></span></li>
  <li>User selects between the two options:
    <ol dir="auto">
      <li><span>If "Call Support", then a pop-up with contact information appears (<b>Design 2</b>)</span></li>
      <li><span>If "Cancel", then the user is transferred to the Get Started screen #58252</span></li>
    </ol>
  </li>
</ol>

Is this a html code you have generated or you got this as-is from the ADO markdown?

@onizet
Copy link
Owner

onizet commented Nov 11, 2024

After some testing on my side, I have been able to reproduce on ADO. This is very unfortunate that they don't respect the W3C standard. I have added support for that behaviour in the converter.

@plmarzi
Copy link
Author

plmarzi commented Nov 27, 2024

Thank You for quick help! This is great! When can we expect new release? :)

@plmarzi plmarzi closed this as completed Nov 27, 2024
@onizet onizet mentioned this issue Dec 11, 2024
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