summaryrefslogtreecommitdiff
path: root/src/Text
Commit message (Collapse)AuthorAge
* Shared: Make 'normalize' more generic.John MacFarlane2011-01-28
| | | | Now it can transform an Inline, [Inline], Block, [Block], or Pandoc.
* RST reader: Skip blank space at beginning.John MacFarlane2011-01-28
| | | | Resolves Debian Bug #611328.
* RTF writer: Embed images when possible.John MacFarlane2011-01-28
| | | | | | * Resolves Issue #275. * PNG and JPEG supported. * Export rtfEmbedImage.
* Add support for attributes in inline Code.John MacFarlane2011-01-26
| | | | | | | | Additional related changes: * URLs in Code in autolinks now use class "url". * Require highlighting-kate 0.2.8.2, which omits the final <br/> tag, essential for inline code.
* RST reader: Improved field lists.John MacFarlane2011-01-26
| | | | | | | | | | | Field lists now work properly with block content. (Thanks to Lachlan Musicman for pointing out the bug.) In addition, definition list items are now always Para instead of Plain -- which matches behavior of rst2xml.py. Finally, in image blocks, the alt attribute is parsed properly and used for the alt, not also the title.
* LaTeX reader: Fixed an incomplete pattern match.John MacFarlane2011-01-26
|
* RST reader: Include line breaks in raw field list parser output.John MacFarlane2011-01-26
| | | | Note: field list items can have lists, etc. as values.
* RST reader: Allow spaces in field list names.John MacFarlane2011-01-26
|
* Adjusted writers to use "tex".John MacFarlane2011-01-26
|
* Markdown reader: Don't parse latex/context environments as inline.John MacFarlane2011-01-26
|
* Distinguish latex & context environments; blank line after in writers.John MacFarlane2011-01-26
|
* Bumped version to 1.8; depend on pandoc-types 1.8.John MacFarlane2011-01-26
| | | | | | | The old TeX, HtmlInline and RawHtml elements have been removed and replaced by generic RawInline and RawBlock elements. All modules updated to use the new raw elements.
* Added needed space after .bc and .bq.John MacFarlane2011-01-23
| | | | | | Otherwise these can trap a </dd>, for example. Better solution to try next: rewrite using Pretty.
* Textile writer: Don't escape code in bc. block.John MacFarlane2011-01-23
|
* Textile writer: Don't HTML-escape between @'s.John MacFarlane2011-01-23
|
* Textile reader: Fixed bug (swallowed p at beginning of paragraph).John MacFarlane2011-01-23
| | | | | The problem was a missing 'try' in the maybeExplicitBlock parser. Test case, a paragraph beginning with 'p', has been added.
* Textile writer: Use <pre> instead of bc.. for code with blank lines.John MacFarlane2011-01-23
| | | | This has fewer interaction effects.
* Textile reader: Support <tt> for inline code.John MacFarlane2011-01-23
|
* Textile reader: Added code blocks with bc.John MacFarlane2011-01-23
|
* ConTeXt writer: Ensure cr after \stoptyping.John MacFarlane2011-01-22
|
* Text.Pandoc: Added jsonFilter for easy construction of scripts.John MacFarlane2011-01-22
| | | | | | | | | | | | | Here's an example of its use: -- removelinks.hs - removes links from document import Text.Pandoc main = interact $ jsonFilter $ bottomUp removeLink removeLink :: Inline -> Inline removeLink (Link xs _) = Emph xs removeLink x = x
* Markdown reader: slight speedup by moving whitespace parser.John MacFarlane2011-01-22
|
* RST reader: Big speed improvement (300->260ms).John MacFarlane2011-01-22
| | | | Moved whitespace parser to top of inline parsers.
* ConTeXt writer: Don't add cr at end of inline footnote.John MacFarlane2011-01-22
|
* Make sure native output ends in newline with --standalone.John MacFarlane2011-01-21
|
* Haddock comment improvements.John MacFarlane2011-01-21
|
* Markdown writer: Avoid printing excess spaces at end if no notes/refs.John MacFarlane2011-01-20
|
* Native writer: eliminated empty spaces in brackets.John MacFarlane2011-01-20
|
* Export readNative in Text.Pandoc.Shared.John MacFarlane2011-01-20
|
* Improved native writer using Pretty.John MacFarlane2011-01-20
| | | | 2-3X speed improvement and more consistent layout.
* Made writeNative sensitive to writerStandalone.John MacFarlane2011-01-19
| | | | The Pandoc (Meta ...) is not written unless standalone is set.
* Added Text.Pandoc.Readers.Native (readNative).John MacFarlane2011-01-19
| | | | | | | | | | | | | readNative can now read full pandoc documents, block lists, blocks, inline lists, or inlines. It will interpret Str "hi" as if it were Pandoc (Meta [] [] []) [Plain [Str "hi"]] This should make testing easier.
* Use spaceChar instead of oneOf " \t" in rst reader.John MacFarlane2011-01-19
|
* Replaced more noneOf/oneOf parsers.John MacFarlane2011-01-19
|
* Replaced uses of oneOf with more efficient parsers.John MacFarlane2011-01-19
| | | | This speeds up the markdown reader.
* More small parser rewrites for small performance gains.John MacFarlane2011-01-19
|
* Parsing: Rewrote spaceChar for significant speedup in readers.John MacFarlane2011-01-19
|
* Fixed problem with inline code in ConTeXt writer.John MacFarlane2011-01-19
| | | | | | | | | | | | Previously `}` would be rendered '\type{}}'. Now we check the string for '}' and '{'. If it contains neither, use \type{}; otherwise use \mono{} with an escaped version of the string. Note: There are some issues using the \type!str! form, including differences btw mkii and mkiv. For now this is a conservative fix. Perhaps in the future we can use \type!str!. See the discussion on pandoc-discuss s.v. "Bug in context writer".
* Support --chapters for ConTeXt output as well.John MacFarlane2011-01-16
|
* Use <chapter> for top docbook header if template has <book>.John MacFarlane2011-01-16
| | | | Resolves Issue #265.
* Added --chapters option affecting docbook and latex.John MacFarlane2011-01-16
| | | | | | | | * Added writerChapters to WriterOptions. * Added --chapters command-line option. * --chapters causes top-level headers to be "chapter" instead of "section" in LaTeX and DocBook. * Resolves Issue #225.
* HTML writer: Add ids to <section> tags.John MacFarlane2011-01-15
|
* Fixed the parser for rst+lhs - set stateLiterateHaskell.John MacFarlane2011-01-14
|
* HTML reader: parse simple tables.John MacFarlane2011-01-14
| | | | | Resolves Issue #106. Thanks to Rodja Trappe for the idea and some sample code.
* HTML reader: parse location tags in pSatisfy.John MacFarlane2011-01-14
| | | | This avoids the need for manual parsing all over the place.
* LaTeX writer: Escape strings in \href{..}.John MacFarlane2011-01-14
| | | | | Previously strings weren't escaped, so %5D would be interpreted as a LaTeX comment!
* Simplified Text.Pandoc.CharacterReferences by using TagSoup entity lookupJohn MacFarlane2011-01-14
|
* LateX writer: In nonsimple tables, put cells in \parbox.John MacFarlane2011-01-14
| | | | | | | Otherwise we can get problems with linebreaks, and cell spacing isn't right. Thanks to Jef Allbright for pointing out the problem.
* Parsing: Fixed bug in grid table parser.John MacFarlane2011-01-14
| | | | | Spaces at end of line were not being stripped properly, resulting in unintended LineBreaks.
* Improvements to --html5 support:John MacFarlane2011-01-11
| | | | | | | | | | | + <nav> for TOC, <figure> for figures, type attribute in <ol>. + Don't add math javascript in html5. + Use style attributes instead of deprecated width, align. + html template: move <title> after <meta>. Note: charset needs to be declared before title. + slidy and s5 templates: move <title> after <meta>. + html template: Added link to html5 shim for IE. + Make --html5 have an effect only for 'html' writer (not s5, slidy, epub).