{"id":15156517,"url":"https://github.com/narendrakoya999/markdown-previewer","last_synced_at":"2026-01-19T09:01:54.953Z","repository":{"id":254554443,"uuid":"846892420","full_name":"NarendraKoya999/markdown-previewer","owner":"NarendraKoya999","description":null,"archived":false,"fork":false,"pushed_at":"2024-08-24T10:19:23.000Z","size":110,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-07T14:21:30.013Z","etag":null,"topics":["css3","es6","git","html5","javascript","markdown","nodejs","npm","prismjs","reactjs","redux","responsive-web-design","state-management"],"latest_commit_sha":null,"homepage":"https://narendrakoya999.github.io/markdown-previewer/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/NarendraKoya999.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-08-24T08:43:40.000Z","updated_at":"2024-08-25T07:16:36.000Z","dependencies_parsed_at":"2024-09-22T05:01:58.401Z","dependency_job_id":null,"html_url":"https://github.com/NarendraKoya999/markdown-previewer","commit_stats":{"total_commits":3,"total_committers":1,"mean_commits":3.0,"dds":0.0,"last_synced_commit":"3db6197253eb8189429dec9e3e4cc0098efa867b"},"previous_names":["narendrakoya999/markdown-previewer"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/NarendraKoya999/markdown-previewer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NarendraKoya999%2Fmarkdown-previewer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NarendraKoya999%2Fmarkdown-previewer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NarendraKoya999%2Fmarkdown-previewer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NarendraKoya999%2Fmarkdown-previewer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/NarendraKoya999","download_url":"https://codeload.github.com/NarendraKoya999/markdown-previewer/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NarendraKoya999%2Fmarkdown-previewer/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28565001,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-19T08:53:44.001Z","status":"ssl_error","status_checked_at":"2026-01-19T08:52:40.245Z","response_time":67,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["css3","es6","git","html5","javascript","markdown","nodejs","npm","prismjs","reactjs","redux","responsive-web-design","state-management"],"created_at":"2024-09-26T19:22:27.751Z","updated_at":"2026-01-19T09:01:54.928Z","avatar_url":"https://github.com/NarendraKoya999.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Markdown Previewer\n\nThis project is a Markdown Previewer built with React. It allows users to write Markdown in an editor and see a live preview of the rendered Markdown. The app includes features such as formatting options, word and character count, theme toggle, and the ability to save, load, and download Markdown content.\n\n## Features\n\n- **Editor**: Write Markdown and see a live preview.\n- **Formatting**: Apply formatting options such as bold, italic, and headers using the toolbar.\n- **Markdown Preview**: Real-time rendering of Markdown with support for various Markdown syntax elements.\n- **Word and Character Count**: Display the number of words and characters in the Markdown text.\n- **Theme Toggle**: Switch between light and dark mode for better readability.\n- **View Modes**: Toggle between split view (editor and preview side-by-side) and live preview mode.\n- **Local Storage**: Save and load Markdown content from local storage.\n- **Download as File**: Download the Markdown content as a `.md` file.\n\n## Installation\n\n1. Clone the repository:\n   ```bash\n   git clone https://github.com/your-username/markdown-previewer.git\n   ```\n2. Navigate to the project directory:\n   ```bash\n   cd markdown-previewer\n   ```\n3. Install the dependencies:\n   ```bash\n   npm install\n   ```\n\n## Usage\n\n1. Start the development server:\n   ```bash\n   npm start\n   ```\n2. Open your browser and go to `http://localhost:3000` to view the app.\n\n## Components\n\n### `App.js`\n\n- **State Management**: Manages the state for Markdown content, view mode, and theme mode.\n- **Handlers**: \n  - Toggle view mode between split view and live preview.\n  - Toggle theme between dark mode and light mode.\n  - Save and load Markdown from local storage.\n  - Download the Markdown content as a file.\n\n### `Editor.js`\n\n- **Markdown Input**: A textarea where users can write or paste their Markdown content.\n- **Formatting**: Provides functions to format the selected text as bold, italic, or header using a toolbar.\n\n### `Preview.js`\n\n- **Markdown Rendering**: Uses the `marked` library to render Markdown content as HTML.\n\n### `MarkdownStats.js`\n\n- **Word and Character Count**: Displays the number of words and characters in the Markdown content.\n\n### `Toolbar.js`\n\n- **Formatting Toolbar**: A set of buttons to apply Markdown formatting to selected text.\n\n## Styling\n\n- The app is styled using CSS, with support for both dark and light themes.\n\n## Future Enhancements\n\n- Add more formatting options like code blocks, links, and images.\n- Implement drag-and-drop support for uploading Markdown files.\n- Add a mobile-responsive design for smaller screens.\n\n## License\n\nThis project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.\n\n# React + Vite\n\nThis template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.\n\nCurrently, two official plugins are available:\n\n- [@vitejs/plugin-react](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react/README.md) uses [Babel](https://babeljs.io/) for Fast Refresh\n- [@vitejs/plugin-react-swc](https://github.com/vitejs/vite-plugin-react-swc) uses [SWC](https://swc.rs/) for Fast Refresh\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnarendrakoya999%2Fmarkdown-previewer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnarendrakoya999%2Fmarkdown-previewer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnarendrakoya999%2Fmarkdown-previewer/lists"}