-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Hi, nice initiative!
I've run into the following issue:
File "/opt/homebrew/anaconda3/envs/tmd/lib/python3.10/site-packages/md2docx_python/src/md2docx_python.py", line 35, in markdown_to_word
paragraph.add_run(child)
File "/opt/homebrew/anaconda3/envs/tmd/lib/python3.10/site-packages/docx/text/paragraph.py", line 41, in add_run
run.text = text
File "/opt/homebrew/anaconda3/envs/tmd/lib/python3.10/site-packages/docx/text/run.py", line 213, in text
self._r.text = text
File "/opt/homebrew/anaconda3/envs/tmd/lib/python3.10/site-packages/docx/oxml/text/run.py", line 129, in text
_RunContentAppender.append_to_run_from_text(self, text)
File "/opt/homebrew/anaconda3/envs/tmd/lib/python3.10/site-packages/docx/oxml/text/run.py", line 248, in append_to_run_from_text
appender.add_text(text)
File "/opt/homebrew/anaconda3/envs/tmd/lib/python3.10/site-packages/docx/oxml/text/run.py", line 253, in add_text
self.add_char(char)
File "/opt/homebrew/anaconda3/envs/tmd/lib/python3.10/site-packages/docx/oxml/text/run.py", line 266, in add_char
elif char in "\r\n":
TypeError: 'in <string>' requires string as left operand, not Tag
Its a markdown file with html mixed in that was used as input.
Could you please have a look at it?
Python version 3.10
Package Version
----------------- -------
beautifulsoup4 4.13.3
lxml 5.3.1
Markdown 3.7
md2docx-python 1.0.0
pip 25.0
python-docx 1.1.2
setuptools 75.8.0
soupsieve 2.6
typing_extensions 4.13.0
wheel 0.45.1
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working