2-- stack --stack-yaml=stack.yaml runghc --package pandoc-types
4-- Extract changes from latest version in changelog.
7main = toJSONFilter extractFirst
9extractFirst :: Pandoc -> Pandoc
10extractFirst (Pandoc meta bs) =
11 let bs' = dropWhile (not . isSubhead) bs
12 in Pandoc meta (takeWhile (not . isSubhead) (drop 1 bs'))
14isSubhead (Header 2 _ _) = True
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list