Skip to content

fix(docx-import): map List Paragraph style to BBX list type#126

Merged
krperry merged 1 commit into
mainfrom
paragraph_list_as_list
May 29, 2026
Merged

fix(docx-import): map List Paragraph style to BBX list type#126
krperry merged 1 commit into
mainfrom
paragraph_list_as_list

Conversation

@krperry
Copy link
Copy Markdown
Collaborator

@krperry krperry commented May 29, 2026

Added a Pandoc Lua pre-filter to convert custom-style List Paragraph/Paragraph List blocks into real list blocks before BBX conversion.

Sorry but I had to add another lua file. If I did not it would not catch the list before it was removed from the paragraphs and it only needed to work with docx.
after looking at this I think what I am doing
in this might help with changing to native pandoc later.
I will start looking into that. This works for now though.

This bug came from my PNC files. It is rare but Now that I have this I have one more thing to do before I can replace duxbery in the PNC code.

Since this was only for my special list paragraph style I made it for DOCX import execution to apply the new filter only for DOCX inputs.eserved BBX output compatibility by keeping list conversion in the existing Pandoc/BBX pipeline.
Other users may find this useful since the listparagraph style is used out in the real world in word.
If other styles are found the additions I made will make them easier to add. Maybe even small caps and subscripts

Fixed the tests so they supported the extra lua file.

Added a Pandoc Lua pre-filter to convert custom-style List
Paragraph/Paragraph List blocks into real list blocks before BBX
conversion.

Sorry but I had to add another lua file.  If I did not it would not
catch the list before it was removed from the paragraphs and it
only needed to work with docx.

This might be another good reason to try to go all native. I will
start looking into that. This should work for now though.

This bug came from my PNC files.  It is rare but Now that I have this
I have one more thing to do before I can replace duxbery in the PNC
code.

Since this was only for my special list paragraph style I made it for
DOCX import execution to apply the new filter only for DOCX
inputs.eserved BBX output compatibility by keeping list conversion in
the existing Pandoc/BBX pipeline.

Fixed the tests so they supported the extra lua file.
@krperry krperry merged commit 2dbf4b4 into main May 29, 2026
1 check passed
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

Successfully merging this pull request may close these issues.

1 participant