{"id":20168810,"url":"https://github.com/leanote/markdown-to-html","last_synced_at":"2025-04-10T02:03:03.475Z","repository":{"id":31085831,"uuid":"34644861","full_name":"leanote/markdown-to-html","owner":"leanote","description":"Parse markdown to html. Support for Markdown-extra(tables, definition lists, fenced code blocks, footnotes, table of contents), Latex, UML diagrams. http://leanote.org","archived":false,"fork":false,"pushed_at":"2015-12-21T02:27:46.000Z","size":4312,"stargazers_count":64,"open_issues_count":0,"forks_count":29,"subscribers_count":11,"default_branch":"master","last_synced_at":"2025-03-24T03:42:35.313Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://leanote.com","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/leanote.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-04-27T03:54:27.000Z","updated_at":"2025-02-23T04:33:29.000Z","dependencies_parsed_at":"2022-09-02T12:30:12.729Z","dependency_job_id":null,"html_url":"https://github.com/leanote/markdown-to-html","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leanote%2Fmarkdown-to-html","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leanote%2Fmarkdown-to-html/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leanote%2Fmarkdown-to-html/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leanote%2Fmarkdown-to-html/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/leanote","download_url":"https://codeload.github.com/leanote/markdown-to-html/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248142959,"owners_count":21054671,"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":[],"created_at":"2024-11-14T01:10:04.711Z","updated_at":"2025-04-10T02:03:03.319Z","avatar_url":"https://github.com/leanote.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Markdown to Html\n\nParse markdown to html. Support for Markdown-extra(tables, definition lists, fenced code blocks, footnotes, table of contents), Latex, UML diagrams.\n\n## How to use it\n```javascript\n\u003cscript src=\"markdown-to-html.min.js\"\u003e\u003c/script\u003e\n\u003cscript\u003e\nvar markdown = `# h1\n# h2\n# h3\n`;\n// 1. Parse markdown to id=\"content\" dom\nmarkdownToHtml(markdown, document.getElementById('content'));\n\n// 2. Parse markdown to id=\"content\" dom and get the html by callback\nmarkdownToHtml(markdown, document.getElementById('content'), function(html) {\n\tconsole.log(html);\n});\n\n// 3. Just get the html\nmarkdownToHtml('# h1', function(html) {\n  console.log(html);\n});\n\n\u003c/script\u003e\n```\n\n## Thanks to\n\n* PageDown, the Markdown library used by Stack Overflow\n* https://github.com/jmcmanus/pagedown-extra\n* http://bramp.github.io/js-sequence-diagrams\n* http://adrai.github.io/flowchart.js\n* http://www.mathjax.org\n* https://stackedit.io\n\n## LICENSE\n\nLEANOTE - NOT JUST A NOTEPAD!\n\nCopyright 2015 by the contributors.\n\nThis program is free software; you can redistribute it and/or modify\nit under the terms of the GNU General Public License as published by\nthe Free Software Foundation; either version 2 of the License, or\n(at your option) any later version.\n\nThis program is distributed in the hope that it will be useful,\nbut WITHOUT ANY WARRANTY; without even the implied warranty of\nMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\nGNU General Public License for more details.\n\nLeanote Markdown to Html is licensed under the GPL v2.\n\n[LICENSE](https://github.com/leanote/markdown-to-html/blob/master/LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleanote%2Fmarkdown-to-html","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fleanote%2Fmarkdown-to-html","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleanote%2Fmarkdown-to-html/lists"}