Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/RoffyS/MarkEverythingDown
/ functions
Functions
52 in github.com/RoffyS/MarkEverythingDown
⨍
Functions
52
◇
Types & classes
14
↓ 33 callers
Method
add_element
Add an element to the section
processors/base.py:112
↓ 25 callers
Method
add_section
Add a section to the document
processors/base.py:152
↓ 7 callers
Method
from_file_extension
Determine document type from file extension
processors/base.py:24
↓ 5 callers
Method
process
Process document using Qwen2.5-VL Args: file_path: Path to document file max_concurrent: Maximum num
processors/vision/vision_processor.py:71
↓ 5 callers
Method
to_markdown
Convert to markdown representation
processors/base.py:76
↓ 3 callers
Method
_prepare_image
Read image file and encode as base64
processors/vision/vision_processor.py:137
↓ 3 callers
Method
_reconstruct_tables_from_python_docx
Completely reconstruct tables using python-docx Args: content: Original markdown content tables: Tab
processors/text/docx_processor.py:362
↓ 2 callers
Method
_call_api
Call vision model API to get markdown representation of document Args: image_content: Base64 encoded image
processors/vision/vision_processor.py:392
↓ 2 callers
Method
_complex_df_to_markdown
Convert complex DataFrames to markdown tables Handles cases where the standard to_markdown might fail Args:
processors/text/excel_processor.py:114
↓ 2 callers
Method
_convert_python_docx_table
Convert a python-docx table to markdown Args: table: python-docx table object Returns:
processors/text/docx_processor.py:413
↓ 2 callers
Method
_detect_and_format_tables_from_content
Detect and format tables directly from the content when docx2python fails Args: content: Markdown content
processors/text/docx_processor.py:275
↓ 2 callers
Method
_remove_page_markers
Remove page marker headings from the markdown content Args: content: Markdown content with page markers
processors/vision/vision_processor.py:673
↓ 2 callers
Method
_table_to_markdown
Convert python-docx table to markdown table format Args: table: python-docx Table object Re
processors/text/docx_processor.py:143
↓ 2 callers
Method
configure_api
Configure API settings for all instances Args: api_key: API key for the vision model base_url: Base
processors/vision/vision_processor.py:20
↓ 2 callers
Function
create_ui
Create enhanced Gradio UI with batch processing
ui/app.py:192
↓ 2 callers
Method
get_processor
Factory method to get appropriate processor for a file
processors/base.py:251
↓ 2 callers
Function
process_file
Process a single file
main.py:7
↓ 2 callers
Method
to_dict
Convert to dictionary representation
processors/base.py:67
↓ 2 callers
Method
to_markdown
Convert document to markdown format
processors/base.py:166
↓ 1 callers
Method
_call_api_multi_image
Call vision model API with multiple images Args: image_contents: List of base64 encoded images page_
processors/vision/vision_processor.py:461
↓ 1 callers
Method
_df_to_markdown
Convert pandas DataFrame to markdown table
processors/text/docx_processor.py:460
↓ 1 callers
Method
_extract_text
Extract text from PDF using PyPDF2
processors/text/pdf_processor.py:39
↓ 1 callers
Method
_handle_tables_directly
Extract tables directly from python-docx and insert them as proper markdown tables Args: doc: python-docx Docume
processors/text/docx_processor.py:70
↓ 1 callers
Method
_process_pdf
Process PDF document with parallel page processing Args: file_path: Path to PDF file document: Docum
processors/vision/vision_processor.py:142
↓ 1 callers
Method
_process_pdf_multi
Process PDF document with multi-image batches for improved context Args: file_path: Path to PDF file
processors/vision/vision_processor.py:237
↓ 1 callers
Method
_process_tables
Process tables extracted by docx2python and replace mammoth's table output with better markdown tables Args:
processors/text/docx_processor.py:192
↓ 1 callers
Function
detect_document_type
Detect document type from file extension
ui/app.py:11
↓ 1 callers
Function
main
()
main.py:65
↓ 1 callers
Function
process_directory
Process all files in directory
main.py:56
Method
__init__
( self, content: str, element_type: str, position: Optional[Dict[str, Any]]
processors/base.py:55
Method
__init__
( self, title: Optional[str] = None, elements: Optional[List[DocumentElement]] = None,
processors/base.py:100
Method
__init__
( self, title: Optional[str] = None, source_file: Optional[str] = None, doc_ty
processors/base.py:138
Method
__init__
Initialize the document processor
processors/base.py:233
Method
__init__
Initialize vision document processor Args: api_key: API key for the vision model base_url: Base URL
processors/vision/vision_processor.py:33
Method
__init__
Initialize PDF processor Args: use_vision_for_complex: Whether to use vision processing for complex PDFs
processors/text/pdf_processor.py:10
Method
_process_multi_page_batch
Process multiple pages in a single API call Args: temp_dir: Temporary directory page_indices: List o
processors/vision/vision_processor.py:539
Method
_process_single_page
Process a single page in the PDF Args: temp_dir: Temporary directory page_index: Index of the page
processors/vision/vision_processor.py:360
Method
get_direct_markdown
Get direct markdown if available, otherwise generate from structure Returns: str: Markdown representation of the
processors/base.py:218
Method
process
Process a document and return structured content Args: file_path: Path to the document file
processors/base.py:238
Method
process
Process code file
processors/text/code_processor.py:22
Method
process
Process text file
processors/text/text_processor.py:7
Method
process
Process Excel file and convert to markdown Args: file_path: Path to Excel file Returns:
processors/text/excel_processor.py:9
Method
process
Process Jupyter Notebook
processors/text/ipynb_processor.py:9
Method
process
Process DOCX document with improved table handling
processors/text/docx_processor.py:13
Method
process
Process markdown file
processors/text/markdown_processor.py:8
Method
process
Process PDF document
processors/text/pdf_processor.py:20
Method
process
Process PowerPoint presentation
processors/text/pptx_processor.py:8
Function
process_documents
Process multiple documents and return summary
ui/app.py:21
Method
save_markdown
Save as markdown file
processors/base.py:213
Method
to_dict
Convert to dictionary representation
processors/base.py:116
Method
to_dict
Convert to dictionary representation
processors/base.py:156
Method
to_markdown
Convert to markdown representation
processors/base.py:125