From jeroenooms at gmail.com  Sun May 24 21:14:16 2015
From: jeroenooms at gmail.com (Jeroen Ooms)
Date: Sun, 24 May 2015 21:14:16 +0200
Subject: [Rd] NEWS.md support on CRAN
In-Reply-To: <556130EA.8030904@gmail.com>
References: <4819669E-8260-47B0-96BF-DC2B29E6BE21@me.com>
	<555FD2FE.8050600@gmail.com>
	<21856.13500.513608.759602@fangorn.hornik.net>
	<55606F19.3080106@gmail.com>
	<CABtg=KkjFu7Jn8xJqQjyn5bRD8nJG_aJ-QS6ET4BY+ic_d3SBw@mail.gmail.com>
	<5561148C.7030205@gmail.com>
	<CANLFJPqcFO6EJyjmmW2CFWG1C+QMgz+GMSQi+qpKW8+3K17CAA@mail.gmail.com>
	<556130EA.8030904@gmail.com>
Message-ID: <CABFfbXvY9MJ9w8AxanQ=PYz9m_nPp08cwYaT6VOibOS-ZG_ooQ@mail.gmail.com>

On Sun, May 24, 2015 at 4:01 AM, Duncan Murdoch
<murdoch.duncan at gmail.com> wrote:
> The "markdown" package does some of what R would need to make use of Sundown, but not all:  we really do need an R object representation of the parse tree, for functions like news() to work with in the short term, and the help system in the longer term.

John MacFarlane's reference implementation does provide the markdown
parsing tree, although by default it is only exposed in xml form. A
quick example:

  devtools::install_github("jeroenooms/commonmark")
  help(commonmark)

>From the xml tree you can easily extract news items using xpath, or we
could hack the libcmark library a bit to get the parse tree as an R
list.



[Rd] NEWS.md support on CRAN
Jeroen Ooms