{"id":16870276,"url":"https://github.com/metagn/margrave","last_synced_at":"2025-04-11T10:41:49.411Z","repository":{"id":59206384,"uuid":"300205326","full_name":"metagn/margrave","owner":"metagn","description":"Markdown dialect","archived":false,"fork":false,"pushed_at":"2024-10-11T13:44:56.000Z","size":180,"stargazers_count":8,"open_issues_count":7,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-10-14T15:03:31.322Z","etag":null,"topics":["articles","html","markdown","nim","parser","pure"],"latest_commit_sha":null,"homepage":"https://metagn.github.io/margrave/browser/converter.html","language":"Nim","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/metagn.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":null,"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},"funding":{"github":"metagn","custom":"https://www.buymeacoffee.com/metagn"}},"created_at":"2020-10-01T08:30:53.000Z","updated_at":"2024-10-11T13:44:35.000Z","dependencies_parsed_at":"2023-08-21T04:25:00.283Z","dependency_job_id":"fc53430c-62d8-4225-bd21-cd07d09164b9","html_url":"https://github.com/metagn/margrave","commit_stats":null,"previous_names":["metagn/margrave"],"tags_count":15,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/metagn%2Fmargrave","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/metagn%2Fmargrave/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/metagn%2Fmargrave/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/metagn%2Fmargrave/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/metagn","download_url":"https://codeload.github.com/metagn/margrave/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248377733,"owners_count":21093870,"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":["articles","html","markdown","nim","parser","pure"],"created_at":"2024-10-13T15:03:35.786Z","updated_at":"2025-04-11T10:41:49.368Z","avatar_url":"https://github.com/metagn.png","language":"Nim","funding_links":["https://github.com/sponsors/metagn","https://www.buymeacoffee.com/metagn"],"categories":[],"sub_categories":[],"readme":"# margrave\n\nTweakable parser for a dialect of markdown that generates an HTML-like\nrepresentation, which can be converted to HTML. Not stable.\n[Try in browser](https://metagn.github.io/margrave/browser/converter.html).\n[Docs](https://metagn.github.io/margrave/docs/margrave.html)\n\nTested for C, JS and NimScript (so also VM).\n\nInput file ref.mrg:\n\n````markdown\nTo escape use \\\\\n\n# Heading1\n## Heading2\n### Heading3\n#### Heading4\n##### Heading5\n###### Heading6\n\n####{heading-id} Heading (new, makes heading-id the id of this heading)\n\n* Bullet points\n+ Plus\n- Minus\n\n1. Numbered list\n2. Can be\n4. Any number\n.  or just a dot (new),\n   can also indent\n\n\u003e Blockquotes\n\u003e\n\u003e can _be_ **formatted**\n\n```\nCode blocks\nHave no formatting\n\nHTML \u0026 chars \u003c automatically \u003e escaped\n```\n\nInline formatting:\n\nLink: [text](url)\n      [text **can have formatting**](url \"tooltip text\")\nImage: ![](url)\n       ![alt text (image doesnt load)](url \"tooltip text\")\nSuperscript (new): 4^(3) = 64\nSubscript (new): a[n] = 2n + 1\nBold: **text**\nUnderline: __text__\nitalic: *text* _text_\nStrikethrough: ~~text~~\nInline code (has formatting!): `text`\nCheckboxes anywhere in the document, not just lists: [ ] [x]\nUnformatted text with curly braces (new): {aaa **aaa** __aaa__}\nRaw curly braces (HTML chars left unescaped): {! foo \u003cspan\u003ebar\u003c/span\u003e}\nNested curly braces: {aa {bb} cc {dd {ee}} ff}\nInline code without formatting: `{1 \u003c 3 ? _ * 3 + 3 * _ + 2 ** 2 ** 2 : 4 \u0026 2}`\n\nInline HTML (no formatting inside, raw curly braces might be better): \u003ctable\u003e\n  \u003ctbody\u003e\n    \u003ctr\u003e\n      \u003ctd\u003ea 1\u003c/td\u003e\n      \u003ctd\u003ea 2\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n      \u003ctd\u003eb 1\u003c/td\u003e\n      \u003ctd\u003eb 2\u003c/td\u003e\n    \u003c/tr\u003e\n  \u003c/tbody\u003e\n\u003c/table\u003e\n````\n\noutputs to ref.html:\n\n```HTML\n\u003cp\u003eTo escape use \\\u003c/p\u003e\n\u003ch1\u003e Heading1\u003c/h1\u003e\n\u003ch2\u003e Heading2\u003c/h2\u003e\n\u003ch3\u003e Heading3\u003c/h3\u003e\n\u003ch4\u003e Heading4\u003c/h4\u003e\n\u003ch5\u003e Heading5\u003c/h5\u003e\n\u003ch6\u003e Heading6\u003c/h6\u003e\n\u003ch4 id=\"heading-id\"\u003e Heading (new, makes heading-id the id of this heading)\u003c/h4\u003e\n\u003cul\u003e\u003cli\u003eBullet points\u003c/li\u003e\u003cli\u003ePlus\u003c/li\u003e\u003cli\u003eMinus\u003c/li\u003e\u003c/ul\u003e\n\u003col\u003e\u003cli\u003e Numbered list\u003c/li\u003e\u003cli\u003e Can be\u003c/li\u003e\u003cli\u003e Any number\u003c/li\u003e\u003cli\u003e  or just a dot (new),\n    can also indent\u003c/li\u003e\u003c/ol\u003e\n\u003cblockquote\u003e\u003cp\u003e Blockquotes\u003c/p\u003e\n\n\u003cp\u003e can \u003cem\u003ebe\u003c/em\u003e \u003cstrong\u003eformatted\u003c/strong\u003e\u003c/p\u003e\u003c/blockquote\u003e\n\u003cpre\u003eCode blocks\nHave no formatting\n\nHTML \u0026amp; chars \u0026lt; automatically \u0026gt; escaped\n\u003c/pre\u003e\n\u003cp\u003eInline formatting:\u003c/p\u003e\n\u003cp\u003eLink: \u003ca href=\"url\"\u003etext\u003c/a\u003e\n      \u003ca title=\"tooltip text\" href=\"url\"\u003etext \u003cstrong\u003ecan have formatting\u003c/strong\u003e\u003c/a\u003e\nImage: \u003cimg src=\"url\"\u003e\n       \u003cimg alt=\"alt text (image doesnt load)\" title=\"tooltip text\" src=\"url\"\u003e\nSuperscript (new): 4\u003csup\u003e3\u003c/sup\u003e = 64\nSubscript (new): a\u003csub\u003en\u003c/sub\u003e = 2n + 1\nBold: \u003cstrong\u003etext\u003c/strong\u003e\nUnderline: \u003cu\u003etext\u003c/u\u003e\nitalic: \u003cem\u003etext\u003c/em\u003e \u003cem\u003etext\u003c/em\u003e\nStrikethrough: \u003cs\u003etext\u003c/s\u003e\nInline code (has formatting!): \u003ccode\u003etext\u003c/code\u003e\nCheckboxes anywhere in the document, not just lists: \u003cinput type=\"checkbox\" disabled\u003e \u003cinput type=\"checkbox\" disabled checked\u003e\nUnformatted text with curly braces (new): aaa **aaa** __aaa__\nRaw curly braces (HTML chars left unescaped):  foo \u003cspan\u003ebar\u003c/span\u003e\nNested curly braces: aa {bb} cc {dd {ee}} ff\nInline code without formatting: \u003ccode\u003e1 \u0026lt; 3 ? _ * 3 + 3 * _ + 2 ** 2 ** 2 : 4 \u0026amp; 2\u003c/code\u003e\u003c/p\u003e\n\u003cp\u003eInline HTML (no formatting inside, raw curly braces might be better): \u003ctable\u003e\n  \u003ctbody\u003e\n    \u003ctr\u003e\n      \u003ctd\u003ea 1\u003c/td\u003e\n      \u003ctd\u003ea 2\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n      \u003ctd\u003eb 1\u003c/td\u003e\n      \u003ctd\u003eb 2\u003c/td\u003e\n    \u003c/tr\u003e\n  \u003c/tbody\u003e\n\u003c/table\u003e\n\u003c/p\u003e\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmetagn%2Fmargrave","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmetagn%2Fmargrave","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmetagn%2Fmargrave/lists"}