How realdennis/md2pdf works
Project type and purpose
• This is a single-page React-based Progressive Web App (PWA) for editing and previewing Markdown.
• There is no separate backend; all logic resides in the client, with optional file-upload utilities and service-worker support for offline caching.
File structure
• “src” contains the React application:
• App/Components – presentational React components (Header, Markdown editor and previewer subtrees)
• App/Container – custom hooks that encapsulate business logic and state (useText, useDrop, InitialText)
• App/Lib – utility functions (e.g., uploadFile)
• service-worker.js & serviceWorkerRegistration.js – PWA offline/caching support
• setupTests.js, App.test.js, useText.test.js – testing setup and unit tests
Available documentation
• README is empty; rely entirely on code layout and naming conventions.