{"id":14967632,"url":"https://github.com/alexandremasy/markdown-to-pug","last_synced_at":"2025-10-25T20:31:39.847Z","repository":{"id":71639240,"uuid":"109661964","full_name":"alexandremasy/markdown-to-pug","owner":"alexandremasy","description":"Markdown to PugJS converter","archived":false,"fork":false,"pushed_at":"2023-04-14T03:05:12.000Z","size":128,"stargazers_count":7,"open_issues_count":5,"forks_count":4,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-09-14T23:20:33.368Z","etag":null,"topics":["converter","jade","markdown","pug","pugjs"],"latest_commit_sha":null,"homepage":"https://alexandremasy.github.io/markdown-to-pug/","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/alexandremasy.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-11-06T07:31:17.000Z","updated_at":"2022-09-07T02:29:39.000Z","dependencies_parsed_at":"2024-06-19T06:11:38.588Z","dependency_job_id":"0bf8022f-d44c-48c6-9f71-e2a7bba08e97","html_url":"https://github.com/alexandremasy/markdown-to-pug","commit_stats":{"total_commits":54,"total_committers":1,"mean_commits":54.0,"dds":0.0,"last_synced_commit":"e0d471aaa2ea448f45043caaebb9643ea4bd5e38"},"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"purl":"pkg:github/alexandremasy/markdown-to-pug","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexandremasy%2Fmarkdown-to-pug","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexandremasy%2Fmarkdown-to-pug/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexandremasy%2Fmarkdown-to-pug/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexandremasy%2Fmarkdown-to-pug/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alexandremasy","download_url":"https://codeload.github.com/alexandremasy/markdown-to-pug/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexandremasy%2Fmarkdown-to-pug/sbom","scorecard":{"id":180651,"data":{"date":"2025-08-11","repo":{"name":"github.com/alexandremasy/markdown-to-pug","commit":"e0d471aaa2ea448f45043caaebb9643ea4bd5e38"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.3,"checks":[{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Code-Review","score":0,"reason":"Found 0/30 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Vulnerabilities","score":4,"reason":"6 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-h6ch-v84p-w6p9","Warn: Project is vulnerable to: GHSA-6vfc-qv3f-vr6c","Warn: Project is vulnerable to: GHSA-f8q6-p94x-37v3","Warn: Project is vulnerable to: GHSA-vh95-rmgr-6w4m","Warn: Project is vulnerable to: GHSA-xvch-5gv4-984h"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-16T18:48:29.609Z","repository_id":71639240,"created_at":"2025-08-16T18:48:29.609Z","updated_at":"2025-08-16T18:48:29.609Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":281015579,"owners_count":26430111,"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-25T02:00:06.499Z","response_time":81,"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","jade","markdown","pug","pugjs"],"created_at":"2024-09-24T13:38:23.043Z","updated_at":"2025-10-25T20:31:39.584Z","avatar_url":"https://github.com/alexandremasy.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Markdown To [PugJS](https://pugjs.org/)\n\u003e Convert your Markdown to [PugJS](https://pugjs.org/)\n\n\u003chttps://alexandremasy.github.io/markdown-to-pug/\u003e\n\n[![CircleCI](https://img.shields.io/circleci/project/github/RedSparr0w/node-csgo-parser.svg)](https://circleci.com/gh/alexandremasy/markdown-to-pug)\n---\n\n## Why?\n\nSometimes you like the simplicity of markdown to just express whatever you want to say, but want to keep control on how it will look like. This is what it is about, get control over the output while adding simple ways to take advantage of the PugJS functionalities like mixins and layout.\n\n\n\n## Install\n\n**NodeJS**\n\n```shell\nnpm --save install markdown-to-pug\n```\n\nor\n\n```shell\nyarn add markdown-to-pug\n```\n\n\n\n**Dependencies**\n\n- [Markdown-It](https://github.com/markdown-it/markdown-it)\n\n\n\n\n## API\n\n#### constructor(options)\n\n**Parameters**\n\n| Property | Type   | Description                 |\n| -------- | ------ | --------------------------- |\n| options  | Object | An object with the options. |\n\n\n\n**Options**\n\n| Option        | Description                              |\n| ------------- | ---------------------------------------- |\n| `newline`     | Newline definition. Default value: `\\n`  |\n| `space`       | Space definition. Default value: `\\t`    |\n| `linkify`     | Allow the use of Linkify by MarkdownIt. Default value: `true` |\n| `typographer` | Allow the use of Typographer by MarkdownIt. Default value: `true` |\n| `langPrefix`  | Prefix to use to generate class on code block. Default value: `language-` |\n\n\n\n### .render(src)\n\n**Parameters**\n\n| Property | Type   | Description                      |\n| -------- | ------ | -------------------------------- |\n| src      | String | The Markdown you like to convert |\n\n\n\n**Return**\n\n| Type   | Description      |\n| ------ | ---------------- |\n| String | The PugJS String |\n\n### .md\n\nThe instance of markdown-it. Use it to add plugin support.\n\n\n## Example\n\n```js\nvar md2pug = new (require('markdown-to-pug'))();\n\nvar md = `![Stormtroopocat](https://octodex.github.com/images/stormtroopocat.jpg \"The Stormtroopocat\")`;\nvar pug = md2pug.render(md);\n```\n\n### Mixin support\n\nWith the folliwing PugJS mixin\n\n```pugjs\nmixin list\n  ul\n    li first\n    li second\n    li third    \n```\n\n```md\n\u003c!-- +list --\u003e\n```\n\n### Layout support\n\n```md\n\u003c!-- extends layout.pug --\u003e\n\n\u003c!-- block content --\u003e\n# Title\n```\n\nwill yield to\n\n```pugjs\nextend layout.pug\n\nblock content\n  h1 Title\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falexandremasy%2Fmarkdown-to-pug","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falexandremasy%2Fmarkdown-to-pug","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falexandremasy%2Fmarkdown-to-pug/lists"}