# md-marked **Repository Path**: dulang104/md-marked ## Basic Information - **Project Name**: md-marked - **Description**: Markdown 解析器 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2026-04-22 - **Last Updated**: 2026-04-24 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # md-marked ## Description `md-marked` is a static Markdown preview demo project that uses the `marked` library to convert Markdown files into HTML and display them in the browser. ## Features - Parses Markdown using `marked.min.js` - Renders HTML output in a right-side preview panel - Automatically generates a left-side table of contents (TOC) - Adds copy buttons to code blocks for easy copying - Loads `gzhwz01.md` by default as demo content ## Usage 1. Open `md-marked.html` in a browser. 2. If direct file opening fails due to browser `fetch` restrictions, use a local server: - `python -m http.server 8000` - Then visit `http://localhost:8000/md-marked.html` 3. The page will automatically load and render `gzhwz01.md`. ## Project Structure - `md-marked.html`: demo page with styles, TOC generation, and Markdown rendering logic - `marked.min.js`: minified `marked` Markdown parser library - `gzhwz01.md`: default Markdown content for rendering - `data.md`: additional Markdown file - `README.md`: Chinese project documentation - `README.en.md`: English project documentation ## Contribution 1. Fork the repository 2. Create a `Feat_xxx` branch 3. Commit your changes 4. Create a Pull Request ## Note - `README.md` and `README.en.md` support Chinese and English documentation. - To render another Markdown file, update `fetch('gzhwz01.md')` in `md-marked.html` to the target filename.