* [PATCH] Add guile-commonmark
@ 2016-08-05 2:08 Erik Edrosa
2016-08-05 7:43 ` Alex Kost
2016-08-05 7:45 ` Ricardo Wurmus
0 siblings, 2 replies; 3+ messages in thread
From: Erik Edrosa @ 2016-08-05 2:08 UTC (permalink / raw)
To: guix-devel
[-- Attachment #1: Type: text/plain, Size: 135 bytes --]
Hello guix-devel,
This is a patch to add guile-commonmark, a fully specified variant of
Markdown written in pure Guile.
Thanks,
Erik
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-gnu-Add-guile-commonmark.patch --]
[-- Type: text/x-patch; name="0001-gnu-Add-guile-commonmark.patch", Size: 1823 bytes --]
From 94785c022cf25e69bd7b46aa455c80fa5ea84989 Mon Sep 17 00:00:00 2001
From: Erik Edrosa <erik.edrosa@gmail.com>
Date: Thu, 4 Aug 2016 21:52:18 -0400
Subject: [PATCH] gnu: Add guile-commonmark
* gnu/packages/guile.scm (guile-commonmark): New variable.
---
gnu/packages/guile.scm | 25 +++++++++++++++++++++++++
1 file changed, 25 insertions(+)
diff --git a/gnu/packages/guile.scm b/gnu/packages/guile.scm
index f50605a..f26cc22 100644
--- a/gnu/packages/guile.scm
+++ b/gnu/packages/guile.scm
@@ -1180,4 +1180,29 @@ configuration file, and then reads and evaluates Guile expressions that
you send to a FIFO file.")
(license gpl3+)))
+(define-public guile-commonmark
+ (package
+ (name "guile-commonmark")
+ (version "0.1")
+ (source (origin
+ (method url-fetch)
+ (uri (string-append "https://github.com/OrangeShark/" name
+ "/releases/download/v" version
+ "/" name "-" version ".tar.gz"))
+ (sha256
+ (base32
+ "12cb5fqvvgc87f5xp0ih5az305wnjia89l5jba83d0r2p8bfy0b0"))))
+ (build-system gnu-build-system)
+ (inputs
+ `(("guile" ,guile-2.0)))
+ (synopsis "CommonMark parser for Guile")
+ (description
+ "guile-commonmark is a library for parsing CommonMark, a fully specified
+variant of Markdown. The library is written in Guile Scheme and is designed
+to transform a CommonMark document to SXML. guile-commonmark tries to closely
+follow the @uref{http://commonmark.org/, CommonMark spec}, the main difference
+is no support for parsing block and inline level HTML.")
+ (home-page "https://github.com/OrangeShark/guile-commonmark")
+ (license lgpl3+)))
+
;;; guile.scm ends here
--
2.9.2
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] Add guile-commonmark
2016-08-05 2:08 [PATCH] Add guile-commonmark Erik Edrosa
@ 2016-08-05 7:43 ` Alex Kost
2016-08-05 7:45 ` Ricardo Wurmus
1 sibling, 0 replies; 3+ messages in thread
From: Alex Kost @ 2016-08-05 7:43 UTC (permalink / raw)
To: Erik Edrosa; +Cc: guix-devel
Erik Edrosa (2016-08-05 05:08 +0300) wrote:
> Hello guix-devel,
>
> This is a patch to add guile-commonmark, a fully specified variant of
> Markdown written in pure Guile.
>
> Thanks,
> Erik
>
> From 94785c022cf25e69bd7b46aa455c80fa5ea84989 Mon Sep 17 00:00:00 2001
> From: Erik Edrosa <erik.edrosa@gmail.com>
> Date: Thu, 4 Aug 2016 21:52:18 -0400
> Subject: [PATCH] gnu: Add guile-commonmark
^
nitpick: In Guix we put a period in the end of commit message.
> * gnu/packages/guile.scm (guile-commonmark): New variable.
This is great, thanks! I'm going to commit it in a couple of days if
there will be no other comments.
--
Alex
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] Add guile-commonmark
2016-08-05 2:08 [PATCH] Add guile-commonmark Erik Edrosa
2016-08-05 7:43 ` Alex Kost
@ 2016-08-05 7:45 ` Ricardo Wurmus
1 sibling, 0 replies; 3+ messages in thread
From: Ricardo Wurmus @ 2016-08-05 7:45 UTC (permalink / raw)
To: Erik Edrosa; +Cc: guix-devel
Erik Edrosa <erik.edrosa@gmail.com> writes:
> Hello guix-devel,
>
> This is a patch to add guile-commonmark, a fully specified variant of
> Markdown written in pure Guile.
>
Hi Erik,
this is very nice! I didn’t know this existed.
The patch looked good and I tested it right away in a REPL. Pushed as
e28e74a518b03de0c5e38f2c3e78ea6fe98a51a0 to master.
Thank you very much!
~~ Ricardo
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2016-08-05 7:45 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-08-05 2:08 [PATCH] Add guile-commonmark Erik Edrosa
2016-08-05 7:43 ` Alex Kost
2016-08-05 7:45 ` Ricardo Wurmus
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.