pandoc/extract-changes.hs
John MacFarlane 07e1234c3b Added 'make changes' target.
This copies to osx clipboard a github-markdown version of the
changes from the latest release in the changelog.
2015-11-15 08:17:09 -08:00

9 lines
252 B
Haskell

-- Extract changes from latest version in changelog.
import Text.Pandoc.JSON
main = toJSONFilter extractFirst
extractFirst :: Pandoc -> Pandoc
extractFirst (Pandoc meta (Para{} : BulletList bs : _)) =
Pandoc meta [BulletList bs]
extractFirst x = x