{"id":16545721,"url":"https://github.com/geekplux/markdown-it-fence","last_synced_at":"2025-10-05T06:48:00.602Z","repository":{"id":71681543,"uuid":"85679423","full_name":"geekplux/markdown-it-fence","owner":"geekplux","description":"fence customize plugin for markdown-it","archived":false,"fork":false,"pushed_at":"2022-12-04T10:38:07.000Z","size":69,"stargazers_count":20,"open_issues_count":0,"forks_count":7,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-01T05:12:36.186Z","etag":null,"topics":["markdown","markdown-it","markdown-it-plugin"],"latest_commit_sha":null,"homepage":"","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/geekplux.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-03-21T08:54:06.000Z","updated_at":"2024-09-30T05:34:06.000Z","dependencies_parsed_at":"2023-05-14T06:30:21.835Z","dependency_job_id":null,"html_url":"https://github.com/geekplux/markdown-it-fence","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/geekplux%2Fmarkdown-it-fence","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/geekplux%2Fmarkdown-it-fence/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/geekplux%2Fmarkdown-it-fence/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/geekplux%2Fmarkdown-it-fence/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/geekplux","download_url":"https://codeload.github.com/geekplux/markdown-it-fence/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244777900,"owners_count":20508807,"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":["markdown","markdown-it","markdown-it-plugin"],"created_at":"2024-10-11T19:07:27.860Z","updated_at":"2025-10-05T06:47:55.571Z","avatar_url":"https://github.com/geekplux.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# markdown-it-fence\n\n[![NPM version](https://img.shields.io/npm/v/markdown-it-fence.svg?style=flat)](https://npmjs.com/package/markdown-it-fence) [![NPM downloads](https://img.shields.io/npm/dm/markdown-it-fence.svg?style=flat)](https://npmjs.com/package/markdown-it-fence) [![Build Status](https://img.shields.io/circleci/project/geekplux/markdown-it-fence/master.svg?style=flat)](https://circleci.com/gh/geekplux/markdown-it-fence) [![codecov](https://codecov.io/gh/geekplux/markdown-it-fence/branch/master/graph/badge.svg)](https://codecov.io/gh/geekplux/markdown-it-fence)\n [![donate](https://img.shields.io/badge/$-donate-ff69b4.svg?maxAge=2592000\u0026style=flat)](http://donate.geekplux.com)\n\n\u003e fence customize plugin for markdown-it\n\n## Install\n\n```bash\nyarn add markdown-it-fence --save\nnpm install markdown-it-fence --save\n```\n\n## Usage\n\n```js\nconst markdownitfence = require('markdown-it-fence')\n\nfunction yourPlugin (md, options) {\n  return markdownitfence(md, 'yourPluginName', {\n    marker: yourMarker,   // default is '`'\n    render: yourRender,\n    validate: yourValidate\n  })\n}\n\nconst md = require('markdown-it')();\nmd.use(yourPlugin).render(`content you want to parse`)\n\n```\n\n### Option params\n\n##### marker\n\nType: `string`\u003cbr\u003e\nDefault: `\n\nMarker of fence block.\n\n##### render\n\nType: `function`\u003cbr\u003e\nDefault: [defaultRender](./src/index.js)\n\nRender function.\n\n##### validate\n\nType: `function`\u003cbr\u003e\nDefault: [defaultValidate](./src/index.js)\n\nValidate function.\n\n## Contributing\n\n1. Fork it!\n2. Create your feature branch: `git checkout -b my-new-feature`\n3. Commit your changes: `git commit -am 'Add some feature'`\n4. Push to the branch: `git push origin my-new-feature`\n5. Submit a pull request :D\n\n\n## Author\n\n**markdown-it-fence** © [geekplux](https://github.com/geekplux), Released under the [MIT](./LICENSE) License.\u003cbr\u003e\nAuthored and maintained by geekplux with help from contributors ([list](https://github.com/geekplux/markdown-it-fence/contributors)).\n\n\u003e [github.com/geekplux](https://github.com/geekplux) · GitHub [@geekplux](https://github.com/geekplux) · Twitter [@geekplux](https://twitter.com/geekplux)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgeekplux%2Fmarkdown-it-fence","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgeekplux%2Fmarkdown-it-fence","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgeekplux%2Fmarkdown-it-fence/lists"}