Giter VIP home page Giter VIP logo

docx2md's People

Contributors

dogatana avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

docx2md's Issues

RuntimeError: pStyle: Title

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.

temp.docx

Thanks.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.