Merge branch 'main' into embedded_image

This commit is contained in:
FeuRicardo 2024-12-19 18:06:30 -03:00 committed by GitHub
commit 8d114c371c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 26 additions and 19 deletions

2
.gitignore vendored
View file

@ -1,3 +1,5 @@
.vscode
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]

View file

@ -1,10 +1,12 @@
> [!IMPORTANT]
> (12/19/24) Hello! MarkItDown team members will be resting and recharging with family and friends over the holiday period. Activity/responses on the project may be delayed during the period of Dec 21-Jan 06. We will be excited to engage with you in the new year!
# MarkItDown
[![PyPI](https://img.shields.io/pypi/v/markitdown.svg)](https://pypi.org/project/markitdown/)
![PyPI - Downloads](https://img.shields.io/pypi/dd/markitdown)
MarkItDown is a utility for converting various files to Markdown (e.g., for indexing, text analysis, etc).
It supports:
- PDF

View file

@ -3,6 +3,7 @@
# SPDX-License-Identifier: MIT
import sys
import argparse
from textwrap import dedent
from ._markitdown import MarkItDown
@ -10,7 +11,8 @@ def main():
parser = argparse.ArgumentParser(
description="Convert various file formats to markdown.",
formatter_class=argparse.RawDescriptionHelpFormatter,
usage="""
usage=dedent(
"""
SYNTAX:
markitdown <OPTIONAL: FILENAME>
@ -27,7 +29,8 @@ EXAMPLE:
OR
markitdown < example.pdf
""".strip(),
"""
).strip(),
)
parser.add_argument("filename", nargs="?")