{"id":22147219,"url":"https://github.com/centerforopenscience/markdown-it-atrules","last_synced_at":"2026-06-12T16:33:10.496Z","repository":{"id":93251177,"uuid":"118956914","full_name":"CenterForOpenScience/markdown-it-atrules","owner":"CenterForOpenScience","description":null,"archived":false,"fork":false,"pushed_at":"2018-10-11T20:13:16.000Z","size":100,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-21T22:39:15.429Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/CenterForOpenScience.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","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":"2018-01-25T19:20:26.000Z","updated_at":"2018-10-11T20:13:17.000Z","dependencies_parsed_at":"2023-07-28T06:30:33.387Z","dependency_job_id":null,"html_url":"https://github.com/CenterForOpenScience/markdown-it-atrules","commit_stats":null,"previous_names":["johnetordoff/markdown-it-atrules"],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CenterForOpenScience%2Fmarkdown-it-atrules","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CenterForOpenScience%2Fmarkdown-it-atrules/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CenterForOpenScience%2Fmarkdown-it-atrules/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CenterForOpenScience%2Fmarkdown-it-atrules/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CenterForOpenScience","download_url":"https://codeload.github.com/CenterForOpenScience/markdown-it-atrules/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245268292,"owners_count":20587589,"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-12-01T23:14:44.166Z","updated_at":"2026-01-12T02:22:48.924Z","avatar_url":"https://github.com/CenterForOpenScience.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# markdown-it-atrules\n# Work in progess\n\n\u003e markdown-it plugin for embedding MFR files.\n\n## Usage\n\n\n```js\n  md = require('markdown-it')({\n    html: true,\n    linkify: true,\n    typography: true,\n  }).use(require('../'), {\n    type: 'osf',\n    pattern: /^http(?:s?):\\/\\/(?:www\\.)?[a-zA-Z0-9 .:]{1,}\\/render\\?url=http(?:s?):\\/\\/[a-zA-Z0-9 .:]{1,}\\/([a-zA-Z0-9]{5})\\/\\?action=download|(^[a-zA-Z0-9]{5}$)/,\n    format(assetID) {\n      var id = '__markdown-it-atrules-' + (new Date()).getTime();\n      return '\u003cdiv id=\"' + id + '\" class=\"mfr mfr-file\"\u003e\u003c/div\u003e' +\n        '\u003cscript\u003e$(document).ready(function () {new mfr.Render(\"' + id + '\", \"' + getMfrUrl(assetID) + '\");    }); \u003c/script\u003e';\n    }\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcenterforopenscience%2Fmarkdown-it-atrules","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcenterforopenscience%2Fmarkdown-it-atrules","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcenterforopenscience%2Fmarkdown-it-atrules/lists"}