项目作者: OrangeShark

项目描述 :
Implementation of CommonMark for Guile
高级语言: Scheme
项目地址: git://github.com/OrangeShark/guile-commonmark.git
创建时间: 2015-11-23T21:30:33Z
项目社区:https://github.com/OrangeShark/guile-commonmark

开源协议:GNU Lesser General Public License v3.0

下载


guile-commonmark

guile-commonmark is a library for parsing CommonMark,
a fully specified variant of Markdown.

Example

  1. (use-modules (commonmark sxml)
  2. (sxml simple))
  3. (define doc
  4. "A CommonMark document
  5. =============
  6. 1. here is a list
  7. 2. with another item
  8. this is some code
  9. A regular paragraph")
  10. ;; Parses the CommonMark.
  11. (define doc-sxml (commonmark->sxml doc))
  12. ;; Writes to the current output port
  13. (sxml->xml doc-sxml)

Requirements

Installation

Download the latest tarball and run:

  1. ./configure
  2. make
  3. 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):

  1. export GUILE_LOAD_PATH="/usr/local/share/guile/site/2.2${GUILE_LOAD_PATH:+:}$GUILE_LOAD_PATH"
  2. 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.

  1. ./bootstrap
  2. ./configure
  3. make
  4. make install

To install from a recent version of git using Guix.

  1. guix package -f guix.scm

License

LGPLv3 or later. See COPYING.LESSER and COPYING