Skip to content

Commit 534657c

Browse files
authored
Merge pull request #16 from shloktech/package-rename-and-import-refactoring
Package rename and import refactoring
2 parents 9cfa46d + 7800773 commit 534657c

8 files changed

Lines changed: 3 additions & 13 deletions

File tree

build/lib/md2docx_python/src/md2docx_python.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,3 @@ def markdown_to_word(markdown_file, word_file):
4141
doc.add_paragraph(li.text, style='List Number')
4242

4343
doc.save(word_file)
44-
45-
markdown_file = input("Enter the path to the Markdown file (e.g., README.md): ")
46-
word_file = input("Enter the path for the output Word file (e.g., README.docx): ")
47-
48-
markdown_to_word(markdown_file, word_file)
-25 Bytes
Binary file not shown.
-74 Bytes
Binary file not shown.
151 Bytes
Binary file not shown.
1.12 KB
Binary file not shown.

md2docx_python/src/md2docx_python.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,3 @@ def markdown_to_word(markdown_file, word_file):
4141
doc.add_paragraph(li.text, style='List Number')
4242

4343
doc.save(word_file)
44-
45-
markdown_file = input("Enter the path to the Markdown file (e.g., README.md): ")
46-
word_file = input("Enter the path for the output Word file (e.g., README.docx): ")
47-
48-
markdown_to_word(markdown_file, word_file)

run.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
from md2docx_python import markdown_to_word
1+
from md2docx_python.src.md2docx_python import markdown_to_word
22

3-
markdown_file = "md2docx_python-python\sample_files\amazon_case_study.docx"
4-
word_file = "md2docx_python-python\sample_files\amazon_case_study2.md"
3+
markdown_file = "sample_files/amazon_case_study.md"
4+
word_file = "sample_files/amazon_case_study.docx"
55

66
markdown_to_word(markdown_file, word_file)
0 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)