{"id":21831365,"url":"https://github.com/nodef/extra-marked","last_synced_at":"2026-05-04T10:33:41.916Z","repository":{"id":33704923,"uuid":"160868100","full_name":"nodef/extra-marked","owner":"nodef","description":"A markdown parser, compiler, and viewer (via \"marked\").","archived":false,"fork":false,"pushed_at":"2025-04-08T17:12:02.000Z","size":40,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-09T17:11:18.521Z","etag":null,"topics":["cli","compiler","console","extra","html","markdown","marked","markup","parser","shell","terminal","view"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/extra-marked","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/nodef.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,"zenodo":null}},"created_at":"2018-12-07T19:41:26.000Z","updated_at":"2025-04-08T17:12:07.000Z","dependencies_parsed_at":"2025-06-30T14:06:08.000Z","dependency_job_id":"c0dfc46f-e846-47d4-82c8-5c14d4771081","html_url":"https://github.com/nodef/extra-marked","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/nodef/extra-marked","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nodef%2Fextra-marked","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nodef%2Fextra-marked/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nodef%2Fextra-marked/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nodef%2Fextra-marked/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nodef","download_url":"https://codeload.github.com/nodef/extra-marked/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nodef%2Fextra-marked/sbom","scorecard":{"id":692426,"data":{"date":"2025-08-11","repo":{"name":"github.com/nodef/extra-marked","commit":"a898d77374097976912dfc54cb0d51e0744fc4a3"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/27 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":"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":"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":"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":"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":"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":"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":"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":10,"reason":"0 existing vulnerabilities detected","details":null,"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-22T02:36:00.979Z","repository_id":33704923,"created_at":"2025-08-22T02:36:00.979Z","updated_at":"2025-08-22T02:36:00.979Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32604236,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-04T10:08:07.713Z","status":"ssl_error","status_checked_at":"2026-05-04T10:08:02.005Z","response_time":58,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["cli","compiler","console","extra","html","markdown","marked","markup","parser","shell","terminal","view"],"created_at":"2024-11-27T19:10:00.093Z","updated_at":"2026-05-04T10:33:41.874Z","avatar_url":"https://github.com/nodef.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"A markdown parser, compiler, and viewer (via [\"marked\"]).\n\u003e Do you want to:\n\u003e - Get markdown files as HTML?\n\u003e - Or, Read markdown files in terminal?\n\u003cbr\u003e\n\n\n## Setup\n\n1. Install [Node.js], if not installed.\n2. Run `npm install -g extra-marked` in [console].\n3. To install this as a package use `npm install extra-marked`.\n\u003cbr\u003e\n\n\n## Console\n\n```bash\nmarked README.md\n# view README.md\n\ncat README.md | marked\n# view README.md\n\nmarked README.md \u003e README.html\n# get README.md as HTML\n\nmarked -i README.md --sanitize -o README.html\n# ignore HTML in markdown\n\nmarked -i README.md --no-gfm -o README.html\n# disable GFM in markdown\n\nmarked -i README.md -v | more\n# view README.md with more\n# (when piping view needs enabling)\n\nmarked -i README.md --view_heading red.bold\n# view README.md with red and bold headings\n# (view is enabled by default when not piping)\n```\n\n### Reference\n\n```bash\nmarked [options] \u003cinput\u003e\n# input: input markdown file\n\n# Options:\n# --help:         show this help\n# -o, --output:   set output file\n# -i, --input:    set input markdown file\n# -s, --string:   set input markdown string\n# -t, --tokens:   enable tokens (0)\n# -v, --view:     view as markdown (0)\n# --baseurl:      set prefix URL for any relative link\n# --breaks:       enable adding \u003cbr\u003e on a single line break. requires GFM enabled (0)\n# --gfm:          enable use of GitHub Flavored Markdown specification (1)\n# --headerids:    enable including id attribute when emitting headings (1)\n# --headerprefix: set string to prefix the id attribute when emitting headings\n# --langprefix:   set string to prefix the className in a \u003ccode\u003e block. useful for syntax highlighting (language-)\n# --mangle:       enable escaping autolinked email address with HTML character references (1)\n# --pedantic:     enable conform to the original markdown.pl as much as possible. dont fix original markdown bugs or behavior. turns off and overrides gfm. (0)\n# --sanitize:     enable sanitizing the HTML passed into markdownString with the sanitizer function (0)\n# --silent:       enable silent parsing (0)\n# --smartlists:   enable using smarter list behavior than those found in markdown.pl (0)\n# --smartypants:  enable using \"smart\" typographic punctuation for things like quotes and dashes (0)\n# --tables:       enable using GFM tables extension, when gfm is also enabled (1)\n# --xhtml:        enable emitting self-closing HTML tags for void elements (\u003cbr/\u003e, \u003cimg/\u003e, etc.) with a \"/\" as required by XHTML (0)\n# --no-breaks:     disable breaks\n# --no-gfm:        disable GFM\n# --no-headerids:  disable header IDs\n# --no-mangle:     disable mangle\n# --no-pedantic:   disable pednatic\n# --no-sanitize:   disable sanitize\n# --no-silent:     disable silent\n# --no-smartlists: disable smart lists\n# --no-tables:     disable tables\n# --no-xhtml:      disable XHTML\n# --view_code:         set code color (yellow)\n# --view_blockquote:   set blockquote color (gray.italic)\n# --view_html:         set html color (gray)\n# --view_heading:      set heading color (green.bold)\n# --view_firstheading: set first heading color (magenta.underline.bold)\n# --view_hr:           set hr color (reset)\n# --view_listitem:     set list item color (reset)\n# --view_table:        set table color (reset)\n# --view_paragraph:    set paragraph color (reset)\n# --view_strong:       set strong color (bold)\n# --view_em:           set em color (italic)\n# --view_codespan:     set code span color (yellow)\n# --view_del:          set del color (dim.gray.strikethrough)\n# --view_link:         set link color (blue)\n# --view_href:         set href color (blur.underline)\n# --view_text:         set text color\n# --view_unescape:     enable unescape (1)\n# --view_emoji:        enable emoji (1)\n# --view_width:        set width (80)\n# --view_showsectionprefix: enable show section prefix (1)\n# --view_showhref:          enable show href (0)\n# --view_reflowtext:        enable reflow text (0)\n# --view_tab:               set tab (4)\n# --no-view_unescape: disbale unescape\n# --no-view_emoji:    disable emoji\n# --no-view_showsectionprefix: disable show section prefix\n# --no-view_showhref:          disable show href\n# --no-view_reflowtext:        disable reflow text\n\n# Environment variables:\n$MARKED_OUTPUT   # set output file\n$MARKED_INPUT    # set input markdown file\n$MARKED_STRING   # set input markdown string\n$MARKED_TOKENS   # enable tokens (0)\n$MARKED_VIEW     # view as markdown (0)\n$MARKED_BASEURL      # set prefix URL for any relative link\n$MARKED_BREAKS       # enable adding \u003cbr\u003e on a single line break. requires GFM enabled (0)\n$MARKED_GFM          # enable use of GitHub Flavored Markdown specification (1)\n$MARKED_HEADERIDS    # enable including id attribute when emitting headings (1)\n$MARKED_HEADERPREFIX # set string to prefix the id attribute when emitting headings\n$MARKED_LANGPREFIX   # set string to prefix the className in a \u003ccode\u003e block. useful for syntax highlighting (language-)\n$MARKED_MANGLE       # enable escaping autolinked email address with HTML character references (1)\n$MARKED_PEDANTIC     # enable conform to the original markdown.pl as much as possible. dont fix original markdown bugs or behavior. turns off and overrides gfm (0)\n$MARKED_SANITIZE     # enable sanitizing the HTML passed into markdownString with the sanitizer function (0)\n$MARKED_SILENT       # enable silent parsing (0)\n$MARKED_SMARTLISTS   # enable using smarter list behavior than those found in markdown.pl (0)\n$MARKED_SMARTYPANTS  # enable using \"smart\" typographic punctuation for things like quotes and dashes (0)\n$MARKED_TABLES       # enable using GFM tables extension, when gfm is also enabled (1)\n$MARKED_XHTML        # enable emitting self-closing HTML tags for void elements (\u003cbr/\u003e, \u003cimg/\u003e, etc.) with a \"/\" as required by XHTML (0)\n$MARKED_VIEW_CODE         # set code color (yellow)\n$MARKED_VIEW_BLOCKQUOTE   # set blockquote color (gray.italic)\n$MARKED_VIEW_HTML         # set html color (gray)\n$MARKED_VIEW_HEADING      # set heading color (green.bold)\n$MARKED_VIEW_FIRSTHEADING # set first heading color (magenta.underline.bold)\n$MARKED_VIEW_HR           # set hr color (reset)\n$MARKED_VIEW_LISTITEM     # set list item color (reset)\n$MARKED_VIEW_TABLE        # set table color (reset)\n$MARKED_VIEW_PARAGRAPH    # set paragraph color (reset)\n$MARKED_VIEW_STRONG       # set strong color (bold)\n$MARKED_VIEW_EM           # set em color (italic)\n$MARKED_VIEW_CODESPAN     # set code span color (yellow)\n$MARKED_VIEW_DEL          # set del color (dim.gray.strikethrough)\n$MARKED_VIEW_LINK         # set link color (blue)\n$MARKED_VIEW_HREF         # set href color (blur.underline)\n$MARKED_VIEW_TEXT         # set text color\n$MARKED_VIEW_UNESCAPE     # enable unescape (1)\n$MARKED_VIEW_EMOJI        # enable emoji (1)\n$MARKED_VIEW_WIDTH        # set width (80)\n$MARKED_VIEW_SHOWSECTIONPREFIX # enable show section prefix (1)\n$MARKED_VIEW_SHOWHREF          # enable show href (0)\n$MARKED_VIEW_REFLOWTEXT        # enable reflow text (0)\n$MARKED_VIEW_TAB               # set tab (4)\n```\n\u003cbr\u003e\n\n\n## Package\n\n```javascript\nconst marked = require('extra-marked');\n\nmarked('I am using __markdown__.');\n// \u003cp\u003eI am using \u003cstrong\u003emarkdown\u003c/strong\u003e.\u003c/p\u003e\\n\n\nmarked.setOptions({headerPrefix: 'topic-'});\nmarked('# this is a header');\n// \u003ch1 id=\"topic-this-is-a-header\"\u003ethis is a header\u003c/h1\u003e\\n\n\nmarked.view('get **markdown** view');\n// \\u001b[0mget \\u001b[1mmarkdown\\u001b[22m view\\u001b[0m\\n\\n\n\nconst kleur = require('kleur');\nmarked.view('get **markdown** view', {strong: kleur.red().bold});\n// \\u001b[0mget \\u001b[1m\\u001b[31mmarkdown\\u001b[39m\\u001b[22m view\\u001b[0m\\n\\n\n```\n\n### Reference\n\n```javascript\nconst marked = require('extra-marked');\n\nmarked(string)\n// string: input markdown string\n// -\u003e \u003chtml\u003e\n\nmarked.setOptions(options)\n\n// Default options:\noptions = {\n  baseUrl: null,            // set prefix URL for any relative link\n  breaks: false,            // enable adding \u003cbr\u003e on a single line break. requires GFM enabled\n  gfm: true,                // enable use of GitHub Flavored Markdown specification\n  headerIds: true,          // enable including id attribute when emitting headings\n  headerPrefix: '',         // set string to prefix the id attribute when emitting headings\n  highlight: null,          // set function to highlight code blocks\n  langPrefix: 'language-',  // set string to prefix the className in a \u003ccode\u003e block. useful for syntax highlighting\n  mangle: true,             // enable escaping autolinked email address with HTML character references\n  pedantic: false,          // enable conform to the original markdown.pl as much as possible. dont fix original markdown bugs or behavior. turns off and overrides gfm\n  renderer: new Renderer(), // set object containing functions to render tokens to HTML\n  sanitize: false,          // enable sanitizing the HTML passed into markdownString with the sanitizer function\n  silent: false,            // enable silent parsing\n  smartLists: false,        // enable using smarter list behavior than those found in markdown.pl\n  smartypants: false,       // enable using \"smart\" typographic punctuation for things like quotes and dashes\n  tables: true,             // enable using GFM tables extension, when gfm is also enabled\n  xhtml: false              // enable emitting self-closing HTML tags for void elements (\u003cbr/\u003e, \u003cimg/\u003e, etc.) with a \"/\" as required by XHTML\n}\n\n\nconst kleur = require('kleur');\nmarked.view(string, options)\n// string: input markdown string\n// -\u003e \u003cmarkdown with ansi color codes\u003e\n\n// Default options:\noptions = {\n  code: kleur.yellow,              // set code color\n  blockquote: kleur.gray().italic, // set blockquote color\n  html: kleur.gray,                // set html color\n  heading: kleur.green().bold,     // set heading color\n  firstHeading: kleur.magenta().underline().bold, // set first heading color\n  hr: kleur.reset,                 // set hr color\n  listitem: kleur.reset,           // set list item color\n  list: /* list function */,       // set list function\n  table: kleur.reset,              // set table color\n  paragraph: kleur.reset,          // set paragraph color\n  strong: kleur.bold,              // set strong color\n  em: kleur.italic,                // set em color\n  codespan: kleur.yellow,          // set code span color\n  del: kleur.dim().gray().strikethrough,          // set del color\n  link: kleur.blue,                // set link color\n  href: kleur.blue().underline,    // set href color\n  text: a =\u003e a,                    // set text color\n  unescape: true,                  // enable unescape\n  emoji: true,                     // enable emoji\n  width: 80,                       // set width\n  showSectionPrefix: true,         // enable show section prefix\n  showHref: false,                 // enable show href\n  reflowText: false,               // enable reflow text\n  tab: 4,                          // set tab\n  tableOptions: {}                 // set table options\n};\n```\n\u003cbr\u003e\n\n\n## Similar\n\nDo you need anything similar?\n- [parse5] can parse and serialize HTML.\n- [esprima] can parse an JavaScript program.\n\nSuggestions are welcome. Please [create an issue].\n\u003cbr\u003e\u003cbr\u003e\n\n\n[![nodef](https://i.imgur.com/T4EGQLy.jpg)](https://nodef.github.io)\n\u003e References: [marked-terminal], [markcat], [kleur].\n\n[\"marked\"]: https://www.npmjs.com/package/marked\n\n[Node.js]: https://nodejs.org/en/download/\n[console]: https://en.wikipedia.org/wiki/Shell_(computing)#Text_(CLI)_shells\n\n[parse5]: https://www.npmjs.com/package/parse5\n[esprima]: https://www.npmjs.com/package/esprima\n[create an issue]: https://github.com/nodef/extra-marked/issues\n\n![](https://ga-beacon.deno.dev/G-RC63DPBH3P:SH3Eq-NoQ9mwgYeHWxu7cw/github.com/nodef/extra-marked)\n\n[marked-terminal]: https://www.npmjs.com/package/marked-terminal\n[markcat]: https://www.npmjs.com/package/markcat\n[kleur]: https://www.npmjs.com/package/kleur\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnodef%2Fextra-marked","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnodef%2Fextra-marked","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnodef%2Fextra-marked/lists"}