{"id":24521850,"url":"https://github.com/dev-pengi/mark-parse","last_synced_at":"2026-04-29T21:01:52.312Z","repository":{"id":168820003,"uuid":"644593764","full_name":"dev-pengi/mark-parse","owner":"dev-pengi","description":"a package that parses Markdown syntax and converts it into HTML","archived":false,"fork":false,"pushed_at":"2023-05-24T05:17:36.000Z","size":38,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-11T01:45:39.258Z","etag":null,"topics":["converter","formatter","html","markdown","markdown-to-html","markup","markup-converter","parser","text-to-html"],"latest_commit_sha":null,"homepage":"https://npmjs.com/mark-parse","language":"TypeScript","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/dev-pengi.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}},"created_at":"2023-05-23T21:09:36.000Z","updated_at":"2023-05-24T01:19:42.000Z","dependencies_parsed_at":"2023-05-27T17:30:10.222Z","dependency_job_id":null,"html_url":"https://github.com/dev-pengi/mark-parse","commit_stats":{"total_commits":11,"total_committers":1,"mean_commits":11.0,"dds":0.0,"last_synced_commit":"6d165be580ea6aeec19a3b696ea07f07de78b1dd"},"previous_names":["dev-pengi/mark-parse"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/dev-pengi/mark-parse","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dev-pengi%2Fmark-parse","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dev-pengi%2Fmark-parse/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dev-pengi%2Fmark-parse/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dev-pengi%2Fmark-parse/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dev-pengi","download_url":"https://codeload.github.com/dev-pengi/mark-parse/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dev-pengi%2Fmark-parse/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279059364,"owners_count":26094941,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-15T02:00:07.814Z","response_time":56,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["converter","formatter","html","markdown","markdown-to-html","markup","markup-converter","parser","text-to-html"],"created_at":"2025-01-22T03:16:43.820Z","updated_at":"2025-10-17T04:37:22.520Z","avatar_url":"https://github.com/dev-pengi.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# Mark parse\n\nMark parse is a JavaScript module that allows you to parse Markdown text and convert it into HTML.\n\n## Installation\n\nYou can install the Make parse module using npm:\n\n```bash\nnpm install mark-parse\n```\n\n## Usage\n\nImport the `Make parse` class into your JavaScript file:\n\n```javascript\nimport { MarkdownParser } from 'mark-parse';\n```\n\nCreate an instance of the `MarkdownParser` class:\n\n```javascript\nconst parser = new MarkdownParser();\n```\n\nParse Markdown text:\n\n```javascript\nconst markdown = '# Hello, World!';\nconst html = parser.parse(markdown);\nconsole.log(html);\n```\n\n### Options\n\nThe `MarkdownParser` constructor accepts an optional `options` parameter that allows you to customize the parsing behavior. The available options are:\n\n- `parseList` (default: `true`): Set to `false` to disable parsing of lists.\n- `parseCodeBlock` (default: `true`): Set to `false` to disable parsing of code blocks.\n- `parseBlockQuote` (default: `true`): Set to `false` to disable parsing of block quotes.\n- `parseHeading` (default: `true`): Set to `false` to disable parsing of headings.\n- `parseInlineCode` (default: `true`): Set to `false` to disable parsing of inline code.\n- `parseHorizontalRule` (default: `true`): Set to `false` to disable parsing of horizontal rules.\n- `parseBold` (default: `true`): Set to `false` to disable parsing of bold text.\n- `parseItalic` (default: `true`): Set to `false` to disable parsing of italic text.\n- `parseUnderline` (default: `true`): Set to `false` to disable parsing of underline text.\n- `parseStrikethrough` (default: `true`): Set to `false` to disable parsing of strikethrough text.\n- `parseLink` (default: `true`): Set to `false` to disable parsing of links.\n- `parseImage` (default: `true`): Set to `false` to disable parsing of images.\n\nYou can customize the parsing behavior by providing an options object when creating the `MarkdownParser` instance:\n\n```javascript\nconst options = {\n  parseList: true,\n  parseCodeBlock: true,\n  parseBlockQuote: true,\n  parseHeading: true,\n  parseInlineCode: true,\n  parseHorizontalRule: true,\n  parseBold: true,\n  parseItalic: true,\n  parseUnderline: true,\n  parseStrikethrough: true,\n  parseLink: true,\n  parseImage: true,\n};\n\nconst parser = new MarkdownParser(options);\n```\n\n### Example\n\nHere's an example of parsing Markdown text and rendering the HTML output:\n\n```javascript\nimport { MarkdownParser } from 'markdown-parser';\n\nconst options = {\n  parseHeading: false,\n};\n\nconst parser = new MarkdownParser(options);\n\nconst markdown = '# Hello, World!';\n\nconst html = parser.parse(markdown);\n\nconsole.log(html);\n```\n\nThis output:\n\n```\n\u003cp\u003eHello, World!\u003c/p\u003e\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdev-pengi%2Fmark-parse","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdev-pengi%2Fmark-parse","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdev-pengi%2Fmark-parse/lists"}