https://github.com/OrangeShark/guile-commonmark
Implementation of CommonMark for Guile
https://github.com/OrangeShark/guile-commonmark
commonmark guile
Last synced: 6 months ago
JSON representation
Implementation of CommonMark for Guile
- Host: GitHub
- URL: https://github.com/OrangeShark/guile-commonmark
- Owner: OrangeShark
- License: lgpl-3.0
- Created: 2015-11-23T21:30:33.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2020-05-08T23:34:25.000Z (about 5 years ago)
- Last Synced: 2024-08-09T17:29:51.608Z (10 months ago)
- Topics: commonmark, guile
- Language: Scheme
- Homepage:
- Size: 238 KB
- Stars: 37
- Watchers: 4
- Forks: 7
- Open Issues: 9
-
Metadata Files:
- Readme: README.md
- License: COPYING
Awesome Lists containing this project
README
guile-commonmark
================
guile-commonmark is a library for parsing [CommonMark](http://commonmark.org/),
a fully specified variant of Markdown.Example
-------
```scheme
(use-modules (commonmark sxml)
(sxml simple))(define doc
"A CommonMark document
=============1. here is a list
2. with another itemthis is some code
A regular paragraph")
;; Parses the CommonMark.
(define doc-sxml (commonmark->sxml doc));; Writes to the current output port
(sxml->xml doc-sxml)
```Requirements
------------- [GNU Guile](https://www.gnu.org/software/guile/) >= 2.0.11
- [pkg-config](http://www.freedesktop.org/wiki/Software/pkg-config)Installation
------------Download the latest tarball and run:
```sh
./configure
make
sudo make install
```This will install guile-commonmark with the prefix `/usr/local/`. This
is not in the default load path for GNU Guile. You may choose to
change the prefix to your GNU Guile's location with `./configure
--prefix=/usr` or add `/usr/local/` to GNU Guile's load path in your
`.profile` or `.bash_profile` like this (replacing 2.2 with your GNU
Guile version):
```sh
export GUILE_LOAD_PATH="/usr/local/share/guile/site/2.2${GUILE_LOAD_PATH:+:}$GUILE_LOAD_PATH"
export GUILE_LOAD_COMPILED_PATH="/usr/local/lib/guile/2.2/site-ccache${GUILE_LOAD_COMPILED_PATH:+:}$GUILE_COMPILED_LOAD_PATH"
```To build from git requires Autoconf and Automake.
```sh
./bootstrap
./configure
make
make install
```To install from a recent version of git using Guix.
```sh
guix package -f guix.scm
```License
-------
LGPLv3 or later. See COPYING.LESSER and COPYING