dogatana / docx2md Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
Hi,
When i use "!python -m docx2md /content/temp.docx /content/temp.md" to convert the docx into MD in colab, it gives the following error:
Traceback (most recent call last):
File "/usr/lib/python3.10/runpy.py", line 196, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/usr/lib/python3.10/runpy.py", line 86, in _run_code
exec(code, run_globals)
File "/usr/local/lib/python3.10/dist-packages/docx2md/main.py", line 104, in
main()
File "/usr/local/lib/python3.10/dist-packages/docx2md/main.py", line 27, in main
md_text = convert(docx, target_dir, media, args.md_table)
File "/usr/local/lib/python3.10/dist-packages/docx2md/main.py", line 94, in convert
return converter.convert()
File "/usr/local/lib/python3.10/dist-packages/docx2md/converter.py", line 36, in convert
self.parse_node(of, body)
File "/usr/local/lib/python3.10/dist-packages/docx2md/converter.py", line 58, in parse_node
self.parse_p(of, child)
File "/usr/local/lib/python3.10/dist-packages/docx2md/converter.py", line 205, in parse_p
raise RuntimeError("pStyle: " + style)
RuntimeError: pStyle: Title
I also attached the docx file as a reference.
Thanks.
This is written in Python. Silly to have to make a system call to run it from Python.
Can you add a method for calling directly from Python?
raise RuntimeError("pStyle: " + style)
RuntimeError: pStyle: NormalWeb
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.