Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .idea/git_toolbox_blame.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/inspectionProfiles/profiles_settings.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions .idea/md2docx-python.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions .idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file added dist/md2docx_python-0.3.1-py3-none-any.whl
Binary file not shown.
Binary file added dist/md2docx_python-0.3.1.tar.gz
Binary file not shown.
52 changes: 44 additions & 8 deletions md2docx_python.egg-info/PKG-INFO
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Metadata-Version: 2.1
Name: md2docx-python
Version: 0.3.0
Version: 0.3.1
Summary: Markdown to Word Converter.
Simple and straight forward Python utility
that converts a Markdown file (`.md`) to a Microsoft
Expand Down Expand Up @@ -39,20 +39,56 @@ Description: # Markdown to Word Converter
- `python-docx` for creating and editing Word documents.
- `beautifulsoup4` for parsing HTML.

You can install the required libraries using pip:
Sure, let's enhance your instructions for clarity and completeness:

---

### How to Convert Markdown to Word Using `md2docx-python`

#### Step 1: Install the Required Library
First, you need to install the `md2docx-python` library using pip. Open your terminal and run the following command:

```bash
pip install -r requirements.txt
pip install md2docx-python
```

To run the sample files follow the below steps:
#### Step 2: Import the Library in Your Code
To use the library, import it into your Python code with the following line:

```bash
python md2docx_python.py
Enter the path to the Markdown file (e.g., README.md): ..\sample_files\amazon_case_study.md
Enter the path for the output Word file (e.g., README.docx): ..\sample_files\amazon_case_study.docx
```python
from md2docx_python.src.md2docx_python import markdown_to_word
```

#### Step 3: Convert Markdown to Word
Call the `markdown_to_word()` function to convert your Markdown file to a Word document. Here's the syntax:

```python
markdown_to_word(markdown_file, word_file)
```

- `markdown_file`: The path to the Markdown file you want to convert.
- `word_file`: The desired path and name for the output Word document.

#### Step 4: Sample Code
Here's a complete example to illustrate how it works:

```python
from md2docx_python.src.md2docx_python import markdown_to_word

# Define the paths to your files
markdown_file = "sample_files/amazon_case_study.md"
word_file = "sample_files/amazon_case_study.docx"

# Convert the Markdown file to a Word document
markdown_to_word(markdown_file, word_file)
```

This code will create a file named `amazon_case_study.docx`, which is the conversion of `amazon_case_study.md` to the Word format.

---

This should make it easier to understand and follow the steps. Let me know if you need any more help or further enhancements!

## Why this repo and not others ?

Here are some reasons why this repo might be considered better or more suitable for certain use cases compared to other scripts available on the internet:
Expand Down
99 changes: 0 additions & 99 deletions md2docx_python_python.egg-info/PKG-INFO

This file was deleted.

9 changes: 0 additions & 9 deletions md2docx_python_python.egg-info/SOURCES.txt

This file was deleted.

1 change: 0 additions & 1 deletion md2docx_python_python.egg-info/dependency_links.txt

This file was deleted.

3 changes: 0 additions & 3 deletions md2docx_python_python.egg-info/requires.txt

This file was deleted.

1 change: 0 additions & 1 deletion md2docx_python_python.egg-info/top_level.txt

This file was deleted.

2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

setup(
name='md2docx_python',
version='0.3.0',
version='0.3.1',
url='https://github.com/shloktech/md2docx-python',
author='Shlok Tadilkar',
author_email='shloktadilkar@gmail.com',
Expand Down
Loading