{"id":21326242,"url":"https://github.com/masylum/minimarkdown","last_synced_at":"2025-08-10T15:07:33.078Z","repository":{"id":66822738,"uuid":"43312811","full_name":"masylum/miniMarkdown","owner":"masylum","description":"An easy to extend parser for a subset of markdown","archived":false,"fork":false,"pushed_at":"2015-11-12T13:31:54.000Z","size":195,"stargazers_count":2,"open_issues_count":2,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-15T23:44:33.771Z","etag":null,"topics":[],"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/masylum.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-09-28T16:32:01.000Z","updated_at":"2025-01-22T20:06:16.000Z","dependencies_parsed_at":null,"dependency_job_id":"6e23fc89-1964-4c86-a1a5-8a7948bf93a6","html_url":"https://github.com/masylum/miniMarkdown","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/masylum/miniMarkdown","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/masylum%2FminiMarkdown","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/masylum%2FminiMarkdown/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/masylum%2FminiMarkdown/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/masylum%2FminiMarkdown/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/masylum","download_url":"https://codeload.github.com/masylum/miniMarkdown/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/masylum%2FminiMarkdown/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269740355,"owners_count":24467757,"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-08-10T02:00:08.965Z","response_time":71,"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":[],"created_at":"2024-11-21T21:08:53.762Z","updated_at":"2025-08-10T15:07:33.041Z","avatar_url":"https://github.com/masylum.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# miniMarkdown\n\n![](https://media.giphy.com/media/qs6ev2pm8g9dS/giphy.gif)\n\n^ Markdown\n\nAn easy to extend parser for a subset of markdown.\n\n[![travis](https://img.shields.io/travis/masylum/miniMarkdown.svg?style=flat)](https://travis-ci.org/masylum/miniMarkdown)\n[![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat)](https://github.com/feross/standard)\n\n## Markdown support\n\nminiMarkdown supports:\n\n  - ```` ```pre``` ````\n  - `` `code` ``\n  - ` _Italics_ `\n  - ` *Bold* `\n  - ` ~Strike~ `\n\nYou can easily add more grammar to make your own extensions\n\n## API\n\nTo run with the default grammar:\n\n```js\nlet miniMarkdown = require('miniMarkdown');\nlet text = 'this *is* an _example_';\nlet grammar = miniMarkdown.DEFAULT_GRAMMAR;\nlet tokenizer = new miniMarkdown.Tokenizer(text, grammar);\n\ntokenizer.run();\n=\u003e [\n     {type: 'word', text: 'this '}\n   , {type: 'bold', children: [{type: 'word', text: 'is'}]}\n   , {type: 'word', text: ' an '}\n   , {type: 'italic', children: [{type: 'word', text: 'example'}]}\n   ]\n```\n\nIf you are interested into adding more grammar you can also do so!\n\n`TokenType` offers you an API to define grammar:\n\n  - `start`: The string that defines the beggining of a token.\n  - `end`: The string that defines the ending of a token.\n  - `surround`: When both start and end delimiters are the same you can use this instead.\n  - `grammar`: If you want a different grammar for a given token.\n  - `constraint`: If you want to validate whether the token is valid before pushing it to the tree.\n\nYou can see grammar examples on the `spec/grammar_spec.js` test file.\n\n## TEST\n\nTo test just run `npm test`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmasylum%2Fminimarkdown","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmasylum%2Fminimarkdown","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmasylum%2Fminimarkdown/lists"}