Document Converter is a Go-based application designed to convert .docx and .xlsx documents into Markdown format while preserving text styles and formatting.
- Converts text with styling (bold, italic) into Markdown format.
- Handles document headers and formats them as Markdown headings.
- Converts lists and formats them accordingly in Markdown.
- Converts Excel tables into Markdown format.
-
Clone or download the repository to your local machine.
-
Make sure Go is installed on your system.
-
Open the terminal and navigate to the project directory.
-
Run the following command to compile the program:
go build -o DocumentConverter
-
To convert a document, run the compiled executable with the input file path and output directory as arguments. For example:
./DocumentConverter input.docx /output/directory
-
The converted Markdown file will be saved in the specified output directory.
- Select a .docx file and specify an output directory.
- Click the "Start Conversion" button.
- The file will be converted to Markdown and saved in the specified directory.
- Select a .xlsx file and specify an output directory.
- Click the "Start Conversion" button.
- The file will be converted to a Markdown table and saved in the specified directory.
- Select a .md file and specify an output directory.
- Click the "Start Conversion" button.
- The file will be converted to a Word document and saved in the specified directory.
The application automatically selects the appropriate formatting scenario based on the selected file type:
- If you choose a .docx file, it converts it to Markdown.
- If you choose a .xlsx file, it converts it to a Markdown table.
- If you choose a .md file, it converts it to a .docx Word document.
- Go installed on your system.
-
Download or clone the repository.
-
Open a terminal and navigate to the project directory.
-
Run the command:
go build -o DocumentConverter
-
The program will be compiled, and you can use it to convert documents.
- The program is initially designed for Windows, but it can be adapted for macOS and Linux by replacing the
walk
(GUI) library with cross-platform alternatives or by using a console mode.