Did you know ... | Search Documentation: |
Packs (add-ons) for SWI-Prolog |
Title: | Markdown parser for SWI-Prolog |
---|---|
Rating: | Not rated. Create the first rating! |
Latest version: | 0.0.3 |
SHA1 sum: | e804f664f0e98f602e8d85c8a0d40e16b7a954a6 |
Author: | Raivo Laanemets http://rlaanemets.com/ |
Home page: | https://github.com/rla/prolog-markdown |
No reviews. Create the first review!.
Version | SHA1 | #Downloads | URL |
---|---|---|---|
0.0.1 | da7960b745f4c1b94a9360ace3e02615eaa20ad3 | 6 | http://packs.rlaanemets.com/markdown/markdown-0.0.1.tgz |
0.0.2 | 125f7aaef909d5be5301565052e8eba8b0ed66d4 | 131 | http://packs.rlaanemets.com/markdown/markdown-0.0.2.tgz |
0.0.3 | e804f664f0e98f602e8d85c8a0d40e16b7a954a6 | 157 | http://packs.rlaanemets.com/markdown/markdown-0.0.3.tgz |
Markdown parser implemented in Prolog. Compatible with SWI-Prolog as the output tree is for direct use by html/1. The specification for the parser was taken from http://daringfireball.net/projects/markdown/syntax (Gruber's Markdown).
![Build Status](https://travis-ci.org/rla/prolog-markdown)
Parse into a structure usable by html/1.
:- use_module(library(md/md_parse)). ?- md_parse_string("# Hello #", Blocks). Blocks = [h1("Hello")].
Convert into an HTML string:
:- use_module(library(md/md_parse)). ?- md_html_string("# Hello #", Html). Html = "<h1>Hello</h1>".
not
<br />`.\~
and \`
.data-language
attribute is set.Example document (about 800 lines) is parsed in 80ms on 2.4GHz Q6600.
Requires SWI-Prolog 7.x.
pack_install('http://packs.rlaanemets.com/markdown/markdown-*.tgz')
See http://packs.rlaanemets.com/markdown/doc/md_parse.html for the top-level module documentation.
Please send bug reports/feature request through the GitHub project page.
The MIT License. See the LICENSE file.
Pack contains 25 files holding a total of 66.1K bytes.