[Rfc-markdown] Markdown syntax for rfcs

Miek Gieben <miek@miek.nl> Fri, 05 December 2014 11:53 UTC

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 A62A31ACE50 for <rfc-markdown@ietfa.amsl.com>; Fri, 5 Dec 2014 03:53:02 -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 NOlav5ro5lw4 for <rfc-markdown@ietfa.amsl.com>; Fri, 5 Dec 2014 03:53:00 -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 ABDF01A01CB for <rfc-markdown@ietf.org>; Fri, 5 Dec 2014 03:53:00 -0800 (PST)
Received: by mail-wg0-f41.google.com with SMTP id y19so680429wgg.14 for <rfc-markdown@ietf.org>; Fri, 05 Dec 2014 03:52:59 -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:subject:message-id:mail-followup-to :mime-version:content-type:content-disposition:user-agent; bh=bc4p3yZOVywFGjrS9rjX1j79bO1Bmxo0uChklogs2R8=; b=TTYifr3sAzWIh7AyLLV//0R5LQ6r6p/Y3dDJZ8OmGJifLoAFqxcxU8QCLEHh+KPTAG VfON2N5hOVPmC8PpQ1gO1d2X5dMTnB68gkVX73im/2mQoc12ZeqG3A0A7SGnE5cZ+yXR XkIIw3bziHdBli2wF55Ol71LKtTPadaFV87Tb/SdsN0hcnpso/6U6UOlx+sg++HluFt0 LU2J53+67N68Id+q76EESALXgXfHy6fpwtz3JA1njpYZQ9DyOU/RvgiQ+XsPJEKbqmt4 7INc9BHGSdshXg4CV07fHOy8Q5Wfu37Atr1SvSxFhuSR6/SyGHGxdW/TyrfeI8/sWvS3 iLKg==
X-Gm-Message-State: ALoCoQlblx1ApOzjcY8KjImau9KmVwyZ6HHahl3yOjc601XeQbz7ALegjXssNddFdze3VQeJn5VW
X-Received: by 10.194.222.34 with SMTP id qj2mr24462165wjc.80.1417780379355; Fri, 05 Dec 2014 03:52:59 -0800 (PST)
Received: from miek.nl ([2a01:7e00::f03c:91ff:feae:e74c]) by mx.google.com with ESMTPSA id gy8sm1955335wib.23.2014.12.05.03.52.58 for <rfc-markdown@ietf.org> (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Fri, 05 Dec 2014 03:52:58 -0800 (PST)
Date: Fri, 05 Dec 2014 11:52:58 +0000
From: Miek Gieben <miek@miek.nl>
To: RFC Markdown <rfc-markdown@ietf.org>
Message-ID: <20141205115258.GA20505@miek.nl>
Mail-Followup-To: RFC Markdown <rfc-markdown@ietf.org>
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"; format="flowed"
Content-Disposition: inline
User-Agent: Vim/Mutt/Linux
X-Home: http://www.miek.nl
Archived-At: http://mailarchive.ietf.org/arch/msg/rfc-markdown/TS6Uuxt3816dz8oNeIe4J4-U5mc
Subject: [Rfc-markdown] Markdown syntax for rfcs
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: Fri, 05 Dec 2014 11:53:02 -0000

[ This was sent to rfc-interest, but now that we have our own list, I'm
   resending it here]

Hello,

I'm pondering a markdown syntax (mostly like CommonMark, but with a set of
extensions) for use when writing I-Ds for the XML2RFC v3 format. It steals
syntax from CommonMark, pandoc, kramdown, leanpub and Asciidoc.

To play with it I've forked[1] blackfriday (a markdown converter written in
Golang), and implemented the following:

* TOML titleblock
* including other markdown files with the syntax: {{file}} (and maybe
     <<{{file}}} for including code (also from leanpub syntax)
* indices with the syntax: (((Item, Subitem)))
* main-, middle- and backmatter document divisions, syntax: {mainmatter}, etc.
* citations, syntax: [@RFC223], allows to specify normative/informative and
     reference file
* reference section automatically created
* abstract, prefix paragraph with 'AB>'
* asides, prefix paragraph with 'A>'
* figures, prefix parageaph with 'F>'
* IAL, inline attribute lists from kramdown

It is a work-in-progress and the converter even still outputs some LaTeX blurbs.

I am also pondering a name change from blackfriday to something else, possibly
mmark, to make it clear it isn't blackfriday anymore.

I'm keeping an eye out for RFC 7328 for keeping this syntax backward compatible.

*And* and will create a short document along the lines of draft-hoffman-xml2rfc
that will show the markdown constructs to use.

A short example document can be found here:
https://raw.githubusercontent.com/miekg/blackfriday/master/ietf/ietf-markdown.md

Feedback welcome.

/Miek

[1]: https://github.com/miekg/blackfriday

--
Miek Gieben