{"id":26870973,"url":"https://github.com/btbytes/mdninja","last_synced_at":"2025-05-07T06:29:02.116Z","repository":{"id":54319722,"uuid":"110784911","full_name":"btbytes/mdninja","owner":"btbytes","description":"mdninja + markdown + jinja2 templating = beautiful HTML documents.","archived":false,"fork":false,"pushed_at":"2023-05-23T14:52:30.000Z","size":6,"stargazers_count":5,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-30T22:16:12.988Z","etag":null,"topics":["html","jinja2","markdown","python","static-pages"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/btbytes.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-11-15T04:48:43.000Z","updated_at":"2023-05-23T01:46:01.000Z","dependencies_parsed_at":"2022-08-13T12:00:18.277Z","dependency_job_id":null,"html_url":"https://github.com/btbytes/mdninja","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/btbytes%2Fmdninja","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/btbytes%2Fmdninja/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/btbytes%2Fmdninja/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/btbytes%2Fmdninja/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/btbytes","download_url":"https://codeload.github.com/btbytes/mdninja/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252420931,"owners_count":21745154,"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":["html","jinja2","markdown","python","static-pages"],"created_at":"2025-03-31T07:18:03.794Z","updated_at":"2025-05-07T06:29:02.092Z","avatar_url":"https://github.com/btbytes.png","language":"Python","readme":"=======\nmdninja\n=======\n\n**mdninja + markdown + jinja2 = beautiful HTML documents**\n\n`mdninja` is a document processor that converts markdown documents into HTML document by applying Jinja2 templating.\n\nInstallation\n------------\n\n::\n\n  pip install mdninja\n\nUsage\n-----\n\nSimple use:\n\n::\n\n  mdninja doc.md -o doc.html\n\n\nIf you want to use a different template:\n\n::\n\n  mdninja doc.md -o doc.html --template=stylish.html\n\n\nThe default template is:\n\n::\n\n\t\u003c!DOCTYPE html\u003e\n\t\u003chtml\u003e\n\t\t\u003chead\u003e\n\t\t\t\u003ctitle\u003e{% for title in meta.title %}{{title}} {% endfor %}\u003c/title\u003e\n\t\t\u003c/head\u003e\n\t\t\u003cbody\u003e\n\t\t\t\u003ch1\u003e{% for title in meta.title %}{{title}} {% endfor %}\u003c/h1\u003e\n\t\t\t{{ body }}\n\t\t\t\u003chr/\u003e\n\t\t\u003c/body\u003e\n\t\u003c/html\u003e\n\nMetadata (like `title` above) is added to the document by adding metadata headers like this at the top of the file\n\n::\n\n  Title: A simple document\n\n\nAlternatively, you can specify the meatadata using a YAML style header too:\n\n::\n\n\t---\n\ttitle: A simple document\n\t---\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbtbytes%2Fmdninja","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbtbytes%2Fmdninja","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbtbytes%2Fmdninja/lists"}