
From nobody Mon Jan  5 05:29:12 2015
Return-Path: <marc@petit-huguenin.org>
X-Original-To: rfc-markdown@ietfa.amsl.com
Delivered-To: rfc-markdown@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 33D541A7018 for <rfc-markdown@ietfa.amsl.com>; Mon,  5 Jan 2015 05:29:11 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.902
X-Spam-Level: 
X-Spam-Status: No, score=-1.902 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] autolearn=ham
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 3yKrsRGem488 for <rfc-markdown@ietfa.amsl.com>; Mon,  5 Jan 2015 05:29:09 -0800 (PST)
Received: from implementers.org (implementers.org [IPv6:2604:3400:dc1:41:216:3eff:fe5b:8240]) by ietfa.amsl.com (Postfix) with ESMTP id 9581A1A87AE for <rfc-markdown@ietf.org>; Mon,  5 Jan 2015 05:29:09 -0800 (PST)
Received: from [IPv6:2001:470:40b8:0:70bd:ccd8:860b:4125] (unknown [IPv6:2001:470:40b8:0:70bd:ccd8:860b:4125]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (Client CN "Marc Petit-Huguenin", Issuer "implementers.org" (verified OK)) by implementers.org (Postfix) with ESMTPS id B326F20202 for <rfc-markdown@ietf.org>; Mon,  5 Jan 2015 14:29:08 +0100 (CET)
Message-ID: <54AA91A1.1090604@petit-huguenin.org>
Date: Mon, 05 Jan 2015 06:29:05 -0700
From: Marc Petit-Huguenin <marc@petit-huguenin.org>
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Icedove/31.3.0
MIME-Version: 1.0
To: RFC Markdown <rfc-markdown@ietf.org>
References: <20141231181628.GA17570@miek.nl>
In-Reply-To: <20141231181628.GA17570@miek.nl>
Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="9UuuqgmJOC0UEDNbT9EjH683TooRm5Sog"
Archived-At: http://mailarchive.ietf.org/arch/msg/rfc-markdown/rtF5fKPkoCN6di7VhIQNkrj8lqU
Subject: Re: [Rfc-markdown] Initial mmark spec
X-BeenThere: rfc-markdown@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: "rfc-markdown is a discussion list for people writing I-Ds and RFCs in Markdown and the authors of the tools used for that." <rfc-markdown.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/rfc-markdown>, <mailto:rfc-markdown-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/rfc-markdown/>
List-Post: <mailto:rfc-markdown@ietf.org>
List-Help: <mailto:rfc-markdown-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/rfc-markdown>, <mailto:rfc-markdown-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 05 Jan 2015 13:29:11 -0000

This is an OpenPGP/MIME signed message (RFC 4880 and 3156)
--9UuuqgmJOC0UEDNbT9EjH683TooRm5Sog
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable

Hi Miek,

I have plans use markdown to write I-Ds, but not as standalone documents,=
 so I need to be able to write my own parser.  mmark seems to be a good s=
tart, so my question is where could I find the ABNF (or equivalent) for i=
t?

Thanks.

On 12/31/2014 11:16 AM, Miek Gieben wrote:
> Hello,
>=20
> Mmark (https://github.com/miekg/mmark) is shaping up as a nice (and fas=
t) markdown parser,
> there is still work to be done, but I wanted to post an initial documen=
t detailing the syntax. It borrows syntax from all over the place and I'm=
 the only
> one developing it, so feedback is welcome.
>=20
> Below is the XML2 output after processing with XML2RFC of the `mmark2rf=
c.md`
> document which you can find in the github repository.
>=20

--=20
Marc Petit-Huguenin
Email: marc@petit-huguenin.org
Blog: http://blog.marc.petit-huguenin.org
Profile: http://www.linkedin.com/in/petithug


--9UuuqgmJOC0UEDNbT9EjH683TooRm5Sog
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQIcBAEBCAAGBQJUqpGhAAoJECnERZXWan7EKq4P/3x2t6w4kxbqs04b1TWtKQBF
9RWQboG+VynXI0gR8PkpY9oi6YrK6LNW1C7G7GLUptpn2FMtVD2ZhC50sAjv69HO
h+gUnnIrXrlIyKG9zZypEc7P2Xa/OzSaNbQw9QfnoTdhzwvGEoa6wePCIG0+pvWo
vinyVEw77U4iPHSaajK8oZLVa0xvQUJdGl+fWQ9qIFxNePb3G2ZDbNMMrGRrbyR1
LVmIzmSvw1C+kFCK2G1NpB6Ps3atuBw8wBFXluRCf9ewgh8mxAjFwzvE4OyYBHnl
wLFWJ73aIwiep2og9/PVm9GyxGRqmjHRypoj4olA3PtDUmZr1HNGDI1KLCYcilMq
dWsa8kkz9ac2IgMyP99Gs4R0phaFXLO8Yh4JbTPshy+G2hdYHyNOTkiPf67hwgtq
YaMbs97QKUR7NlqEHEvw3GSk50JNYnJr87o9avmu3sC+aF6lT57oiMl5K2wTlR9/
Bn5e3nYjsqbpE4aW26wDowkD9nXhMEkKUS3sp8+4gDNblxWGxjbCIQVIW/nvJlgh
UH+ZdHuqapU6btUTK4DA1HXGfvmN39N45b6p2U7Kjumjh7vg7+OVsyUfAGx0ppRB
DtqzNMfUSNAVrp7ufWzy4ApErmS8S7KVaOdJ9KXV1mAFdcp4hwBtuRkqEZlng/G/
8f4C8EusgJL3eheFzOom
=QVDC
-----END PGP SIGNATURE-----

--9UuuqgmJOC0UEDNbT9EjH683TooRm5Sog--


From nobody Mon Jan  5 05:50:21 2015
Return-Path: <miek@miek.nl>
X-Original-To: rfc-markdown@ietfa.amsl.com
Delivered-To: rfc-markdown@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 528AA1A87B3 for <rfc-markdown@ietfa.amsl.com>; Mon,  5 Jan 2015 05:50:19 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.6
X-Spam-Level: 
X-Spam-Status: No, score=-2.6 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7] autolearn=ham
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id tUQ5RTtvUQ5l for <rfc-markdown@ietfa.amsl.com>; Mon,  5 Jan 2015 05:50:16 -0800 (PST)
Received: from mail-wg0-f41.google.com (mail-wg0-f41.google.com [74.125.82.41]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id A99311A87AE for <rfc-markdown@ietf.org>; Mon,  5 Jan 2015 05:50:16 -0800 (PST)
Received: by mail-wg0-f41.google.com with SMTP id l18so2256525wgh.14 for <rfc-markdown@ietf.org>; Mon, 05 Jan 2015 05:50:15 -0800 (PST)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:date:from:to:cc:subject:message-id :mail-followup-to:references:mime-version:content-type :content-disposition:in-reply-to:user-agent; bh=2e/TjS3kJvSLIKIu0ZzLtwPIpYHVoU242k+GpZiIl4g=; b=J9cOLYXS+6KWxEwJjnocjBUZK5lBpAW3WcwOaSEZUI6+54uFhPtDjSfqVVYHzAoSar pxLIghAiDVRJhmzhuXy3yAhPOp8FW3wQxkbGPft5gsFvjrBoqFaZi3HldcqjRGNrEK2b IyzsnG1wzczPQS1K7ga87G4rx50dx7+uoDxBJavepmTD2DG+94AJQbzp7R5vFqsI+qpB 1zpj6zMMD7WpIe7RnQb1jqTTg47NdK305RMqsc7COZX/ug5aiBpOYPsLHAzU0WYc8TyK fKnDbJg0q3O3qBsj0cmyxEQirT0UMlAj/t7lZSn65xF/EbSfOV76RKs6wBdHSqDzhXNf FXZQ==
X-Gm-Message-State: ALoCoQkUU1L7+3lOXvzoV2oIN3adZDNQiiKUPbSPO0CyNj0piZOKxRdfFhXZvr/FPzQJfLKvqjYN
X-Received: by 10.180.79.200 with SMTP id l8mr25623900wix.65.1420465815016; Mon, 05 Jan 2015 05:50:15 -0800 (PST)
Received: from miek.nl (0.4.8.2.f.e.d.c.e.3.a.7.8.c.d.f.f.3.c.4.9.5.f.b.0.b.8.0.1.0.0.2.ip6.arpa. [2001:8b0:bf59:4c3f:fdc8:7a3e:cdef:2840]) by mx.google.com with ESMTPSA id kn5sm75481384wjb.48.2015.01.05.05.50.14 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Mon, 05 Jan 2015 05:50:14 -0800 (PST)
Date: Mon, 5 Jan 2015 13:50:13 +0000
From: Miek Gieben <miek@miek.nl>
To: Marc Petit-Huguenin <marc@petit-huguenin.org>
Message-ID: <20150105134946.GB13632@miek.nl>
Mail-Followup-To: Marc Petit-Huguenin <marc@petit-huguenin.org>, RFC Markdown <rfc-markdown@ietf.org>
References: <20141231181628.GA17570@miek.nl> <54AA91A1.1090604@petit-huguenin.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Disposition: inline
In-Reply-To: <54AA91A1.1090604@petit-huguenin.org>
User-Agent: Vim/Mutt/Linux
X-Home: http://www.miek.nl
Archived-At: http://mailarchive.ietf.org/arch/msg/rfc-markdown/o5gKl-eG5zIp3nMSJP_pMYIc6sc
Cc: RFC Markdown <rfc-markdown@ietf.org>
Subject: Re: [Rfc-markdown] Initial mmark spec
X-BeenThere: rfc-markdown@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: "rfc-markdown is a discussion list for people writing I-Ds and RFCs in Markdown and the authors of the tools used for that." <rfc-markdown.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/rfc-markdown>, <mailto:rfc-markdown-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/rfc-markdown/>
List-Post: <mailto:rfc-markdown@ietf.org>
List-Help: <mailto:rfc-markdown-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/rfc-markdown>, <mailto:rfc-markdown-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 05 Jan 2015 13:50:19 -0000

[ Quoting <marc@petit-huguenin.org> in "Re: [Rfc-markdown] Initial mmark sp..." ]
>Hi Miek,
>
>I have plans use markdown to write I-Ds, but not as standalone documents, so I
>need to be able to write my own parser.  mmark seems to be a good start, so my
>question is where could I find the ABNF (or equivalent) for it?

There is no grammar for markdown...https://news.ycombinator.com/item?id=8267039

The nearest to a grammar that I know of is the PEG grammar
(http://en.wikipedia.org/wiki/Parsing_expression_grammar), which has this old
spec: https://github.com/jgm/peg-markdown

I'm not completely clear on why you need to write your own parser?

/Miek

--
Miek Gieben


From nobody Mon Jan  5 06:09:10 2015
Return-Path: <marc@petit-huguenin.org>
X-Original-To: rfc-markdown@ietfa.amsl.com
Delivered-To: rfc-markdown@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 3888F1A8835 for <rfc-markdown@ietfa.amsl.com>; Mon,  5 Jan 2015 06:09:03 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.902
X-Spam-Level: 
X-Spam-Status: No, score=-1.902 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] autolearn=ham
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id h0lTJao27UyS for <rfc-markdown@ietfa.amsl.com>; Mon,  5 Jan 2015 06:08:58 -0800 (PST)
Received: from implementers.org (implementers.org [IPv6:2604:3400:dc1:41:216:3eff:fe5b:8240]) by ietfa.amsl.com (Postfix) with ESMTP id B73B81A8822 for <rfc-markdown@ietf.org>; Mon,  5 Jan 2015 06:08:58 -0800 (PST)
Received: from [IPv6:2001:470:40b8:0:70bd:ccd8:860b:4125] (unknown [IPv6:2001:470:40b8:0:70bd:ccd8:860b:4125]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (Client CN "Marc Petit-Huguenin", Issuer "implementers.org" (verified OK)) by implementers.org (Postfix) with ESMTPS id D7CC420202 for <rfc-markdown@ietf.org>; Mon,  5 Jan 2015 15:08:57 +0100 (CET)
Message-ID: <54AA9AF6.5090507@petit-huguenin.org>
Date: Mon, 05 Jan 2015 07:08:54 -0700
From: Marc Petit-Huguenin <marc@petit-huguenin.org>
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Icedove/31.3.0
MIME-Version: 1.0
To: RFC Markdown <rfc-markdown@ietf.org>
References: <20141231181628.GA17570@miek.nl> <54AA91A1.1090604@petit-huguenin.org> <20150105134946.GB13632@miek.nl>
In-Reply-To: <20150105134946.GB13632@miek.nl>
Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="QcR36eBal5OxeAS453pVL0i0NNl1eUaDW"
Archived-At: http://mailarchive.ietf.org/arch/msg/rfc-markdown/KK3IyL0er4y49gWAKRUSSR5VM6U
Subject: Re: [Rfc-markdown] Initial mmark spec
X-BeenThere: rfc-markdown@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: "rfc-markdown is a discussion list for people writing I-Ds and RFCs in Markdown and the authors of the tools used for that." <rfc-markdown.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/rfc-markdown>, <mailto:rfc-markdown-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/rfc-markdown/>
List-Post: <mailto:rfc-markdown@ietf.org>
List-Help: <mailto:rfc-markdown-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/rfc-markdown>, <mailto:rfc-markdown-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 05 Jan 2015 14:09:04 -0000

This is an OpenPGP/MIME signed message (RFC 4880 and 3156)
--QcR36eBal5OxeAS453pVL0i0NNl1eUaDW
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable

On 01/05/2015 06:50 AM, Miek Gieben wrote:
> [ Quoting <marc@petit-huguenin.org> in "Re: [Rfc-markdown] Initial mmar=
k sp..." ]
>> Hi Miek,
>>
>> I have plans use markdown to write I-Ds, but not as standalone documen=
ts, so I
>> need to be able to write my own parser.  mmark seems to be a good star=
t, so my
>> question is where could I find the ABNF (or equivalent) for it?
>=20
> There is no grammar for markdown...https://news.ycombinator.com/item?id=
=3D8267039

This is sad.

>=20
> The nearest to a grammar that I know of is the PEG grammar
> (http://en.wikipedia.org/wiki/Parsing_expression_grammar), which has th=
is old
> spec: https://github.com/jgm/peg-markdown
>=20
> I'm not completely clear on why you need to write your own parser?

The processing of the markdown needs to be integrated in my own developme=
nt tools, that are written in Java.

Thanks.

--=20
Marc Petit-Huguenin
Email: marc@petit-huguenin.org
Blog: http://blog.marc.petit-huguenin.org
Profile: http://www.linkedin.com/in/petithug


--QcR36eBal5OxeAS453pVL0i0NNl1eUaDW
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQIcBAEBCAAGBQJUqpr2AAoJECnERZXWan7E3QoP/1SQthKe9KI15UkjJNTITK3l
zrNhnUFzUNOfkS/RBgvWer0hC5hZR+F67xoMx0nV5PBAcAO6TvzHIaPDSnELqrae
To1z3oepusVOYIrpoL/0Gnihs+RYY7Pdi6xQUIhy8/KzOONDcYS1oVdAbPpWz1Hm
0xi62WQ6XZk9zfJVLM0AnTSqfzfneVPjTr+sJkB82ZpjkBb7wPwkFtFbIa8EX09w
DTVoV8PYsWkYtrwfH9puYqq72FZtCDxF3zkN4qQBpkdvsUY1X0VdEpOXs3sQcb3K
7OGAK/HA/V1srgOMP629HjqtOngK4LYgPS1ID1p9YMlKdqJfeEIsIZAxzorqLdnT
dZievLSHsm3bMWl+4zENas/48S2Xe26mo/QpwUOTbbthgzeW/BzZL+fDXa4jf4FX
dNLxyKSrpp2jVl5ukLlGD6FKx8HNCqxiMsYPv2D8+IeUf3ax3jT3UoiBeCbqf1Z+
nNO+APupznhTd40Hycl3182uAqLNPfTftgvhEgvsW9efHGi6lgRLsg7bgbnN6c/o
E4XdeW34JWEKmIU+4CE0TmXlIw9SkefW2fqhdxUp+VR6x2kCmFPLoQbbegtSAPix
s9kTMeTer/oaKnf12d37/RI7hmAnAj90JxqsLaVjbZ0kWNlCDcwPnNwu4mfxUJQW
z/rLf0TdC3rd9u5zvcPX
=gRpV
-----END PGP SIGNATURE-----

--QcR36eBal5OxeAS453pVL0i0NNl1eUaDW--

