{"id":13941237,"url":"https://github.com/vimtaai/extramark","last_synced_at":"2026-02-17T00:08:35.452Z","repository":{"id":34081321,"uuid":"168727541","full_name":"vimtaai/extramark","owner":"vimtaai","description":"CommonMark superset with the most widely used syntax extensions","archived":false,"fork":false,"pushed_at":"2025-06-13T09:44:55.000Z","size":191,"stargazers_count":12,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-07-16T03:43:42.034Z","etag":null,"topics":["commonmark","commonmark-superset","markdown"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/vimtaai.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.md","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,"zenodo":null}},"created_at":"2019-02-01T16:34:24.000Z","updated_at":"2025-06-13T09:44:57.000Z","dependencies_parsed_at":"2025-06-13T09:33:16.817Z","dependency_job_id":"0074dda2-1b97-48ea-b0ff-281f0d67c38f","html_url":"https://github.com/vimtaai/extramark","commit_stats":{"total_commits":34,"total_committers":1,"mean_commits":34.0,"dds":0.0,"last_synced_commit":"9ecab196df667a1873d70f16127bbdaf304c3aff"},"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/vimtaai/extramark","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vimtaai%2Fextramark","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vimtaai%2Fextramark/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vimtaai%2Fextramark/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vimtaai%2Fextramark/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vimtaai","download_url":"https://codeload.github.com/vimtaai/extramark/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vimtaai%2Fextramark/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266067255,"owners_count":23871324,"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","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":["commonmark","commonmark-superset","markdown"],"created_at":"2024-08-08T02:01:14.615Z","updated_at":"2026-02-17T00:08:30.410Z","avatar_url":"https://github.com/vimtaai.png","language":"JavaScript","readme":"# ExtraMark\n\n[![License][badge-license]][link-license]\n[![Version][badge-version]][link-version]\n\n[badge-license]: https://img.shields.io/npm/l/extramark.svg\n[link-license]: https://github.com/vimtaai/extramark/blob/master/LICENSE.md\n[badge-version]: https://img.shields.io/npm/v/extramark.svg\n[link-version]: https://npmjs.com/package/extramark\n\n**ExtraMark** is a superset of [CommonMark](https://commonmark.org/) that includes syntax extensions that are commonly used by other Markdown dialects. The list and syntax for the extensions are decided by looking at the most popular Markdown dialects and selecting the most common syntax for each feature. The goal of the project is to create a (somewhat) standard superset of CommonMark that supports the features that are requested by most. The parser is based on [markdown-it](https://github.com/markdown-it/markdown-it) and uses plugins for syntax extensions.\n\n## Installation\n\nInstall via `npm`:\n\n```bash\nnpm install extramark\n```\n\n## Usage\n\nThe `extramark` package exposes two functions, `parse()` and `render()`. The `parse()` function creates an abstract syntax tree from the input while the `render()` function returns the generated HTML code (see [markdown-it](https://github.com/markdown-it/markdown-it)).\n\n```js\nconst { parse, render } = require(\"extramark\");\n\nparse(\"# Heading\");\n// [Object] - AST of the Markdown code\n\nrender(\"# Heading\");\n// \u003ch1\u003eHeading\u003c/h1\u003e\n```\n\nIn a browser environment you can access the `parse()` and `render()` functions via the `ExtraMark` global object.\n\n```js\nconst { parse, render } = ExtraMark;\n```\n\n### CLI\n\nTo transform documents in the command line you have to install the `extramark` package globally.\n\n```bash\nnpm install -g extramark\n```\n\nAfter the installation the `extramark` command becomes available. The command can be used to transform the input text (file or `stdin`) to HTML (file or `stdout`).\n\n```bash\nextramark input.md -o output.html -c style.css\n```\n\nTo see all options of the `extramark` see it's help:\n\n```bash\nextramark --help\n```\n\n### Features\n\n- Defined clearly as a superset of CommonMark\n- Syntax extensions\n  - [Automatic typographic replacements][typographer]\n  - [Tables][table]\n  - [Anchors for headings][anchor] (up to heading level 3)\n  - [Definition lists][definition-list]\n  - [Superscript][superscript]\n  - [Subscript][subscript]\n  - [Abbreviations][abbreviation]\n  - [Footnotes][footnote]\n  - [Critic Markup][critic-markup]\n- Integrated CLI tool for command-line conversion to HTML\n\n[typographer]: https://github.com/markdown-it/markdown-it/blob/master/lib/rules_core/replacements.js\n[table]: https://help.github.com/articles/organizing-information-with-tables/\n[anchor]: https://github.com/valeriangalliat/markdown-it-anchor\n[definition-list]: https://github.com/markdown-it/markdown-it-deflist\n[superscript]: https://github.com/markdown-it/markdown-it-sup\n[subscript]: https://github.com/markdown-it/markdown-it-sub\n[abbreviation]: https://github.com/markdown-it/markdown-it-abbr\n[footnote]: https://github.com/markdown-it/markdown-it-footnote\n[critic-markup]: http://criticmarkup.com/\n\n## Contributing\n\nAll ideas, recommendations, bug reports, pull requests are welcome. 🙂\n","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvimtaai%2Fextramark","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvimtaai%2Fextramark","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvimtaai%2Fextramark/lists"}