@@ -41,19 +41,19 @@ pandoc (1.8)
41 to write scripts that transform a JSON-encoded pandoc document.
41 to write scripts that transform a JSON-encoded pandoc document.
42 For example:
42 For example:
44− > -- removelinks.lhs - removes links from document
44+ -- removelinks.hs - removes links from document
45− > import Text.Pandoc
45+ import Text.Pandoc
46− > main = interact $ jsonFilter $ bottomUp removeLink
46+ main = interact $ jsonFilter $ bottomUp removeLink
47− > where removeLink (Link xs _) = Emph xs
47+ where removeLink (Link xs _) = Emph xs
48− > removeLink x = x
48+ removeLink x = x
50 To use this to remove links while translating markdown to LaTeX:
50 To use this to remove links while translating markdown to LaTeX:
52− pandoc -t json | runghc removelinks.lhs | pandoc -f json -t latex
52+ pandoc -t json | runghc removelinks.hs | pandoc -f json -t latex
54 * Attributes are now allowed in inline `Code` elements, for example:
54 * Attributes are now allowed in inline `Code` elements, for example:
56− > In this code, `ulist ! [theclass "special"] << elts`{.haskell} is...
56+ In this code, `ulist ! [theclass "special"] << elts`{.haskell} is...
58 The attribute syntax is the same as for delimited code blocks.
58 The attribute syntax is the same as for delimited code blocks.
59 `Code` inline has an extra argument place for attributes, just like
59 `Code` inline has an extra argument place for attributes, just like
@@ -243,7 +243,7 @@ pandoc (1.8)
243 relative widths of columns.
243 relative widths of columns.
245 * Markdown writer now uses some pandoc-specific features when `--strict`
245 * Markdown writer now uses some pandoc-specific features when `--strict`
246− is not specified: \ newline is used for a hard linebreak instead of
246+ is not specified: `\` newline is used for a hard linebreak instead of
247 two spaces then a newline. And delimited code blocks are used when
247 two spaces then a newline. And delimited code blocks are used when
248 there are attributes.
248 there are attributes.
@@ -268,7 +268,7 @@ pandoc (1.8)
269 * The `COLUMNS` environment variable no longer has any effect.
269 * The `COLUMNS` environment variable no longer has any effect.
271− [Under-the-hood improvements]
271+ [under-the-hood improvements]
273 * Pandoc now compiles with GHC 7. (This alone leads to a
273 * Pandoc now compiles with GHC 7. (This alone leads to a
274 significant performance improvement, 15-20%.)
274 significant performance improvement, 15-20%.)
@@ -328,7 +328,7 @@ pandoc (1.8)
328 install pandoc from the tarball without needing to build the man
328 install pandoc from the tarball without needing to build the man
331− [Bug fixes]
331+ [bug fixes]
333 * Filenames are encoded as UTF8. Resolves Issue #252.
333 * Filenames are encoded as UTF8. Resolves Issue #252.
@@ -372,14 +372,14 @@ pandoc (1.8)
372 + Improved parsing of preamble.
372 + Improved parsing of preamble.
373 Previously you'd get unexpected behavior on a document that
373 Previously you'd get unexpected behavior on a document that
374 contained `\begin{document}` in, say, a verbatim block.
374 contained `\begin{document}` in, say, a verbatim block.
375− + Allow spaces between '\begin' or '\end' and '{'.
375+ + Allow spaces between `\begin` or `\end` and `{`.
376− + Support \L and \l.
376+ + Support `\L` and `\l`.
377 + Skip comments inside paragraphs.
377 + Skip comments inside paragraphs.
379 * LaTeX writer:
379 * LaTeX writer:
381− + Escape strings in \href{..}.
381+ + Escape strings in `\href{..}`.
382− + In nonsimple tables, put cells in \parbox.
382+ + In nonsimple tables, put cells in `\parbox`.
384 * OpenDocument writer: don't print raw TeX.
384 * OpenDocument writer: don't print raw TeX.
@@ -394,8 +394,8 @@ pandoc (1.8)
395 * ConTeXt writer: Fixed problem with inline code. Previously
395 * ConTeXt writer: Fixed problem with inline code. Previously
396 `}` would be rendered `\type{}}`. Now we check the string for '}' and '{'.
396 `}` would be rendered `\type{}}`. Now we check the string for '}' and '{'.
397− If it contains neither, use \type{}; otherwise use \mono{} with an escaped
397+ If it contains neither, use `\type{}`; otherwise use `\mono{}`
398− version of the string.
398+ with an escaped version of the string.
400 * `:` now allowed in HTML tags. Resolves Issue #274.
400 * `:` now allowed in HTML tags. Resolves Issue #274.