Overview
TheSupportedFormats component displays a comprehensive list of all file formats supported by MkDowner. It organizes formats into categories and provides users with clear information about what files can be converted to Markdown.
Key Features
- Categorized format display
- Four main categories: Documents, Presentations & Spreadsheets, Web & Data, Images & Media
- Technology attribution (Microsoft MarkItDown)
- No props required (static content)
- Responsive grid layout
Props
This component does not accept any props. It renders static content displaying supported file formats.Usage Example
Supported File Formats
The component displays the following formats, organized by category:Documents
- PDF files (.pdf)
- Word documents (.docx)
- Text files (.txt)
- Rich Text (.rtf)
Presentations & Spreadsheets
- PowerPoint (.pptx)
- Excel files (.xlsx)
- CSV files (.csv)
Web & Data
- HTML files (.html)
- JSON files (.json)
- XML files (.xml)
Images & Media
- PNG, JPG images
- Audio files (.wav, .mp3)
- OCR text extraction
Component Structure
The component consists of:-
Header Section
- Icon (📋)
- Title: “Supported File Formats”
- Subtitle: “Works out-of-the-box with the formats you use every day.”
-
Format Grid
- Four category sections
- Each category has a heading and bulleted list
- Responsive grid layout
-
Technology Attribution
- Credits Microsoft MarkItDown
- Mentions AI-enhanced conversion
Styling & Customization
The component uses CSS classes fromSupportedFormats.css:
.supported-card- Main container.supported-header- Header section with icon and titles.supported-icon- Icon wrapper.supported-title- Main heading.supported-subtitle- Descriptive subtitle.supported-grid- Grid container for categories.format-category- Individual category section.format-list- Bulleted list of formats.supported-tip- Technology attribution footer
Customization Options
While the component doesn’t accept props, you can customize it by:- Adding/Removing Formats: Edit the JSX to include additional file types
- Reorganizing Categories: Change category names or groupings
- Updating Styling: Modify
SupportedFormats.cssfor different layouts - Making it Dynamic: Convert to accept props for dynamic format lists
Implementation Details
Source Code Location
~/workspace/source/src/components/SupportedFormats/SupportedFormats.tsx:4-62
Key Implementation Notes
- Simple functional component with no state or props
- Uses semantic HTML with proper heading hierarchy (h3, h4)
- Grid layout allows responsive reorganization
- HTML entities used for proper character encoding (
&for ”&“)