diff options
author | John MacFarlane <jgm@berkeley.edu> | 2014-06-18 12:27:27 -0700 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2014-06-18 14:18:55 -0700 |
commit | 9fc5c8d7af31a47d8e3e8ea6dbb541178ec9ca66 (patch) | |
tree | 93eebf1ec7362b577581c4ae4284087b49f3f8f5 /tests/haddock-reader.haddock | |
parent | a78d8b84ca16910bb0e2f5a0ffe5334d642943b2 (diff) | |
download | pandoc-9fc5c8d7af31a47d8e3e8ea6dbb541178ec9ca66.tar.gz |
Rewrote haddock reader to use haddock-library.
This brings pandoc's rendering of haddock markup in line
with the new haddock.
Note that we preserve line breaks in `@` code blocks, unlike
the earlier version.
Modified tests pass. More tests would be good.
Diffstat (limited to 'tests/haddock-reader.haddock')
-rw-r--r-- | tests/haddock-reader.haddock | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/tests/haddock-reader.haddock b/tests/haddock-reader.haddock index c4f6d6c36..c3ef0c9fc 100644 --- a/tests/haddock-reader.haddock +++ b/tests/haddock-reader.haddock @@ -18,10 +18,10 @@ This is a code block: This is another code block: @ - f x = x + x. - The \@...\@ code block /interprets markup normally/. - "Module.Foo" - \"Hello World\" +f x = x + x. +The \@...\@ code block /interprets markup normally/. +"Module.Foo" +\"Hello World\" @ Haddock supports REPL examples: @@ -42,21 +42,21 @@ This is a reference to the "Foo" module. This is a bulleted list: - * first item + * first item - * second item + * second item This is an enumerated list: - (1) first item + (1) first item - 2. second item + 2. second item This is a definition list: - [@foo@] The description of @foo@. + [@foo@] The description of @foo@. - [@bar@] The description of @bar@. + [@bar@] The description of @bar@. Here is a link: <http://haskell.org> |