Sign inSign up

jonesckevin/mht2md

By jonesckevin

Updated 6 months ago

Image
0

426

jonesckevin/mht2md repository overview

mht2md.py

Overview

mht2md.py is a Python script designed to convert MHT (MIME HTML) files to Markdown format. This tool simplifies the process of transforming into the Markdown format.

Example Image

Installation and Usage

You only need to run the script in the folder with 1 or more MHT files. The script will convert all MHT files in the folder to Markdown format. Each MHT file will be converted to a separate Markdown file in their own folder with the same name as the MHT file.

  1. Clone the repository:
    git clone https://github.com/jonesckevin/mht2md.git
    
  2. Navigate to the project directory:
    cd mht2md
    
  3. Install the required dependencies:
    pip install -r requirements.txt
    
  4. Run the script with the following command:
    python3 mht2md.py
    

Docker Webapp

Docker-Run

cd app
docker build -t mht2md .
docker run -it --rm -p 6754:80 -v $(pwd):/app mht2md

Docker Compose

services:
    mht2md:
      build:
        context: ./app
      image: jonesckevin/mht2md:latest
      container_name: mht2md-webapp
      ports:
        - 5674:80

Tag summary

Content type

Image

Digest

sha256:d7f7dda9c

Size

53.8 MB

Last updated

6 months ago

docker pull jonesckevin/mht2md