-
-
Notifications
You must be signed in to change notification settings - Fork 125
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
wrong numbering on converting list of bullet contents #150
Comments
I can't be sure without an example document, but I believe the issue is that (for instance) the paragraph after the first bullet point are not themselves a list i.e. so far as the source document is concerned, it's just an ordinary paragraph. A similar issue for mammoth.js contains an explanation and possible solutions. |
Hi there, this is the word document which I used for testing. I also looked around the simialar issue on mammoth.js https://github.com/mwilliamson/mammoth.js/issues/121 I saw there is a way to provide a style map to fix it. However, I applied this style map, nothing changed. The code is:
I am not sure whether I were applying the style map correctly? |
To use that specific style map, you'll need to make sure that the continuation paragraphs have a style with that name applied to them, and that the preceding paragraph (i.e. the paragraph that actually has the bullet point) is a top-level unordered list. |
oh, so basically, how can I check those paragraphs' style? Do I have to inspect those xml elements? |
You should be able to view the paragraph style when editing the paragraph in Microsoft Word. |
Hi, Taking a bit of while for figuring out it. If I want the specific groups of paragraphs have spcific html path like the following graph, I have to set two unique style for those two groups of paragraphs. Am I right? Can I set those paragraphs into the same style, and provide two style maps for that style? Can mammoth apply two different style map for different paeagraphs automatically? |
Yes, I believe you'd have to have two separate styles for the two groups of paragraphs. |
Hi, I were trying to converting a structure word into html but I got a wrong numbering for it.
Here is the word file I used for converting:
The converted html is:
That is resulting to:
What I want is html tags like the following:
Which looks like:
What is the problem caused for wrong numbering? How can I fix this issue?
The text was updated successfully, but these errors were encountered: