{"id":24289270,"url":"https://github.com/rla/prolog-markdown","last_synced_at":"2025-09-25T12:30:54.090Z","repository":{"id":9918978,"uuid":"11929558","full_name":"rla/prolog-markdown","owner":"rla","description":"Markdown parser for SWI-Prolog.","archived":false,"fork":false,"pushed_at":"2020-10-22T17:43:37.000Z","size":73,"stargazers_count":20,"open_issues_count":5,"forks_count":5,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-04-11T20:56:28.015Z","etag":null,"topics":["markdown","markdown-parser","swi-prolog"],"latest_commit_sha":null,"homepage":null,"language":"Prolog","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/rla.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":"2013-08-06T17:00:41.000Z","updated_at":"2023-11-27T19:22:23.000Z","dependencies_parsed_at":"2022-08-27T13:23:41.399Z","dependency_job_id":null,"html_url":"https://github.com/rla/prolog-markdown","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/rla%2Fprolog-markdown","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rla%2Fprolog-markdown/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rla%2Fprolog-markdown/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rla%2Fprolog-markdown/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rla","download_url":"https://codeload.github.com/rla/prolog-markdown/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":234188312,"owners_count":18793215,"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":["markdown","markdown-parser","swi-prolog"],"created_at":"2025-01-16T10:51:46.136Z","updated_at":"2025-09-25T12:30:48.739Z","avatar_url":"https://github.com/rla.png","language":"Prolog","funding_links":[],"categories":["Parsing"],"sub_categories":[],"readme":"# Prolog-markdown\n\nMarkdown parser implemented in Prolog. Compatible with [SWI-Prolog](http://www.swi-prolog.org/) as the\noutput tree is for direct use by [html//1](https://www.swi-prolog.org/pldoc/man?predicate=html//1).\nThe specification for the parser was taken from\n\u003chttp://daringfireball.net/projects/markdown/syntax\u003e (Gruber's Markdown).\n\n[![Build Status](https://travis-ci.org/rla/prolog-markdown.svg)](https://travis-ci.org/rla/prolog-markdown)\n\n## Example usage\n\nParse into a structure usable by\n[html//1](https://www.swi-prolog.org/pldoc/man?predicate=html//1).\n\n    :- use_module(library(md/md_parse)).\n\n    ?- md_parse_string(\"# Hello #\", Blocks).\n    Blocks = [h1(\"Hello\")].\n\nConvert into an HTML string:\n\n    :- use_module(library(md/md_parse)).\n\n    ?- md_html_string(\"# Hello #\", Html).\n    Html = \"\u003ch1\u003eHello\u003c/h1\u003e\".\n\n## Deviations from the Gruber's Markdown\n\n * Some cases for tight markup (no separate lines between blocks).\n * No clever encoding for mail addresses.\n * Line break rule creates `\u003cbr\u003e` not `\u003cbr /\u003e`.\n * No in-word emphasis with underscores.\n * Strikethrough as `~~text~~`.\n * Added escape sequences `\\~` and `` \\` ``.\n * Github-styled fenced code blocks (\u003chttps://help.github.com/articles/github-flavored-markdown\u003e).\n   No syntax highlighting is provided but the `data-language` attribute is set.\n * Plain link recognizion.\n\n## Performance\n\nExample [document](http://daringfireball.net/projects/markdown/syntax.text) (about 800 lines) is parsed\nin 80ms on 2.4GHz Q6600.\n\n## Installation\n\nRequires SWI-Prolog 7.x.\n\n    pack_install('http://packs.rlaanemets.com/markdown/markdown-*.tgz')\n\n## API documentation\n\nSee \u003chttp://packs.rlaanemets.com/markdown/doc/md_parse.html\u003e for the top-level module documentation.\n\n## Changelog\n\n * 2020-01-02 version 0.0.3. Fixed mode declaration in documentation.\n * 2014-02-26 version 0.0.2. Fixed HTTPS link in angled brackets. Trimmed bottom of code block.\n * 2014-01-14 version 0.0.1\n\n## Bug reports/feature requests\n\nPlease send bug reports/feature request through the GitHub\nproject [page](https://github.com/rla/prolog-markdown).\n\n## License\n\nThe MIT License. See the LICENSE file.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frla%2Fprolog-markdown","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frla%2Fprolog-markdown","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frla%2Fprolog-markdown/lists"}