{"id":13743923,"url":"https://github.com/Corsaair/markdownlib","last_synced_at":"2025-05-09T02:31:51.843Z","repository":{"id":32263766,"uuid":"35838268","full_name":"Corsaair/markdownlib","owner":"Corsaair","description":"An ActionScript 3.0 implementation of Markdown","archived":false,"fork":false,"pushed_at":"2019-07-18T16:26:35.000Z","size":896,"stargazers_count":5,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-11-15T15:41:09.979Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"ActionScript","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/Corsaair.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-05-18T19:33:07.000Z","updated_at":"2021-09-16T04:23:59.000Z","dependencies_parsed_at":"2022-09-11T07:52:31.748Z","dependency_job_id":null,"html_url":"https://github.com/Corsaair/markdownlib","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Corsaair%2Fmarkdownlib","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Corsaair%2Fmarkdownlib/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Corsaair%2Fmarkdownlib/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Corsaair%2Fmarkdownlib/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Corsaair","download_url":"https://codeload.github.com/Corsaair/markdownlib/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253177756,"owners_count":21866394,"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-08-03T05:00:59.771Z","updated_at":"2025-05-09T02:31:51.438Z","avatar_url":"https://github.com/Corsaair.png","language":"ActionScript","readme":"markdownlib\n===========\n\nAn ActionScript 3.0 implementation of Markdown based on the\noriginal work of John Gruber.\n\nA straightforward (as much as possible) port of `Markdown.pl` v*1.0.1*.\n\nThis project can also be seen as a nice tutorial on how to port perl regexp\nto AS3 regexp, with identical or similar features, with limitations, and\nin some cases their workaround.\n\n\nWhy do it like that ?\n---------------------\n\nI looked around and there were no AS3 libraries to parse the markdown format\n(well .. there were a gist `Showdown.as` but it was not working).\n\nTo write such a library, you have basically two choices, either you fully\nembrace the original code and try to port it line-by-line and stay as\nclose as possible to the original, or you go the opposite way and try\nto rethink the whole thing.\n\nI decided to go with the line-by-line port to first acclimate myself\non how markdown internals are working and to produce a fairly\ncompatible output.\n\nAlso, I deliberately used a perl'ish coding style for the AS3 code organisation,\ninstead of having a class with static methods you have a public function relying\non internal functions (yes you can also do it this way in AS3).\n\n\nInstall\n-------\n\nThis AS3 library is meant to be used in the context of [Redtamarin](https://github.com/Corsaair/redtamarin)\nor other utilities like [as3shebang](https://github.com/Corsaair/as3shebang).\n\nWe do not have yet a package manager for Redtamarin, so you will have\nto install \"by hand\" (eg. copy the right file at the right place).\n\n\nFlash Platform Compatibility\n----------------------------\n\nThe code does not rely on any particular API or features not available\nin the Flash Player or AIR runtime and so should work there too.\n\nMy main focus being Redtamarin I did not provide a build to generate a SWC yet.\n\nSimply put, it should work but I did not test it and you are welcome to try it\nfor yourself (and contributions are welcome).\n\n\nUsage\n-----\n\n**ABC library**\n\n```as3\nvar markdownlib:* = Domain.currentDomain.load( \"markdownlib.abc\" );\ntrace( markdownlib + \" loaded\"  ); //optional\n\nimport text.markdown.*;\n\n//use any definitions of the markdown library\n```\n\n**sources**\n\nCopy `markdownlib/src` to your current AS3 project path.\n\nIn your main AS3 file\n```as3\ninclude \"markdownlib.as\";\n\nimport text.markdown.*;\n\n//use any definitions of the markdown library\n```\n\n\nExample\n-------\n\n```as3\nimport text.markdown.*;\n\nvar md:String = \"This is **Markdown**\";\nvar html:String = Markdown( md );\ntrace( html );\"\n\n```\n\n\nKnown Differences in Output\n---------------------------\n\nTo be continued ...\n\n\n\n","funding_links":[],"categories":["File Formats"],"sub_categories":["Markdown"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FCorsaair%2Fmarkdownlib","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FCorsaair%2Fmarkdownlib","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FCorsaair%2Fmarkdownlib/lists"}