build-aux | ||
commonmark | ||
doc | ||
m4 | ||
scripts | ||
tests | ||
.gitignore | ||
.travis.yml | ||
bootstrap | ||
commonmark.scm | ||
configure.ac | ||
COPYING | ||
COPYING.LESSER | ||
guile.am | ||
guix.scm | ||
Makefile.am | ||
NEWS | ||
pre-inst-env.in | ||
README.md |
This is my fork of the guile-commonmark
library, adding support for strikethrough text. It's mainly for use on my
blog, but you're free to reuse it as you see fit!
Note that this package clashes with the original guile-commonmark
, so you
should uninstall that before installing this. Also, I haven't done any of
the Guix stuff (no idea how it works; help appreciated!).
Also note that strikethrough text is not part of the official CommonMark
spec, although it is popular in other Markdown implementations. This
package unfortunately doesn't (yet) support adding raw HTML entities
like <del/>
, or I'd have gone with that for my blog instead of
creating a whole new repo!
The original guile-commonmark
README follows.
guile-commonmark
guile-commonmark is a library for parsing CommonMark, a fully specified variant of Markdown.
Example
(use-modules (commonmark sxml)
(sxml simple))
(define doc
"A CommonMark document
=============
1. here is a list
2. with another item
this 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 >= 2.0.11
- pkg-config
Installation
Download the latest tarball and run:
./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):
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.
./bootstrap
./configure
make
make install
To install from a recent version of git using Guix.
guix package -f guix.scm
License
LGPLv3 or later. See COPYING.LESSER and COPYING