-
-
Notifications
You must be signed in to change notification settings - Fork 3.5k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
-f docx+styles -t dokuwiki results in raw html formatted lists #8920
Comments
Can you show the output of
and
respectively? There must be a change in the AST that will explain why this is happening. |
Here they are :
and
|
OK, it's the Div that is inserted for custom-styles that is blocking the regular list. |
Pandoc 3.3 / Win10 22H2 I have a problem with enumeration/listing from docx to dokuwiki ... like above.
and the result is:
but it should be:
all other codes were well ported to dokuwiki language. |
The dokuwiki writer uses HTML tags when the list is not "simple" -- that is, when the elements of the list are not Plain blocks or sublists. Here it seems you have Para blocks instead of Plain. This behavior preserves the distinction between tight and loose lists, which it seems dokuwiki has no other way of representing. I think, though, that it would be better to modify the dokuwiki writer so that it treats lists like this as if they had Plain and not Para -- we'd lose that distinction, but the output would be more natural. [Edit: looking at the code, we should be handling Para like Plain here. Can you upload a docx I can test with?] |
Hello, thx for this information. Cause of this, i found the problem: theres a jpg inside the list. |
Pandoc 3.1.3 / OSX 12.6.5 / HomeBrew version
this is my command line that causes the bug :
pandoc -f docx+styles -t dokuwiki juste_listes.docx -o juste_liste.txt
juste_liste.docx is a document with just one unordered list in it.
If I use this command line
pandoc -f docx -t dokuwiki juste_listes.docx -o juste_liste.txt
, without+styles
, I get this result :If I add
+styles
here is what I get :The first command, without
+styles
gives me syntactically correct dokuwiki format.I need the
+styles
extension to retain custom styles convert them with a lua filter and later parse them with a dokuwiki plugin.The text was updated successfully, but these errors were encountered: