aboutsummaryrefslogtreecommitdiff
path: root/src/Text/Pandoc/Writers
AgeCommit message (Collapse)AuthorFilesLines
2012-03-09EPUB reader: convert e.g. en_US from locale to en-US in language.John MacFarlane1-1/+2
2012-03-07Merge pull request #438 from michaelt/patch-2John MacFarlane1-0/+2
Fix initial `Str "."` after `LineBreak` as well?
2012-03-07Merge pull request #437 from michaelt/patch-1John MacFarlane1-1/+5
escape initial dot in code lines
2012-03-07Set mainlang variable in context writer.John MacFarlane1-0/+2
This parallels behavior of latex writer. Mainlang is the last of a comma-separated list of languages in lang.
2012-03-07Fix initial `Str "."` after `LineBreak` as well? Michael Thompson1-0/+2
2012-03-07escape initial dot in code linesMichael Thompson1-1/+5
2012-03-05Fixed ployglossia support in LaTeX template for multiple langs.John MacFarlane1-0/+2
\setmainlanguage will now just use the last of a comma-separated list of languages.
2012-03-03Use <q> tags for Quoted items for HTML5 output.John MacFarlane1-4/+11
The quote style can be changed by modifying the template or including a css file. A default quote style is included.
2012-03-03EPUB writer: Use extensible exceptions.John MacFarlane1-1/+3
2012-03-03Use \textasciitilde for ~ in LaTeX writer.John MacFarlane1-1/+1
2012-03-02Fixed bug in LaTeX string escaper (with ~).John MacFarlane1-1/+1
2012-02-21HTML writer: Don't escape contents of EQ tags with --gladtex.John MacFarlane1-2/+2
This fixes a regression from 1.8.x. Closes #428.
2012-02-14Add TableNormal style to tables.John MacFarlane1-2/+3
Needs testing with Word.
2012-02-11Fix _rels/.rels if it has been screwed up by Word.John MacFarlane1-1/+10
Closes #414. Previously, if you edited the reference.docx with Word, then created a new docx using the edited reference.docx, Word would complain about the file being corrupt. The problem seems to be that Word changes _rels/.rels, changing the Type of the Relationship to docProps/core.xml from "http://schemas.openxmlformats.org/officedocument/2006/relationships/metadata/core-properties" to "http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties". As far as I can see, this is a bug in Word, since the latter is not valid. (See http://idippedut.dk/post/2010/04/22/Correct-according-to-spec-or-implementation.aspx.) This change simply does a global replace on _rels/.rels that reverts the change Word makes. And now producing docx files with Word-modified reference.docx seems to work.
2012-02-08Don't wrap headers in markdown or rst.John MacFarlane2-2/+3
2012-02-06LaTeX writer: prevent adjacent hyphens from forming ligatures.John MacFarlane1-20/+32
This is important primarily for things like `--option`. Em and En dashes will produce '---' and '--' in LaTeX, but hyphens should not otherwise combine into dashes.
2012-02-05Removed module Text.Pandoc.CharacterReferences.John MacFarlane1-3/+2
Moved characterReference parser to Text.Pandoc.Parsing. decodeCharacterReferences is now replaced by fromEntities in Text.Pandoc.XML.
2012-02-05Normalize date in EPUB metadata.John MacFarlane1-1/+1
2012-01-31Don't let autolinks create reference links.John MacFarlane1-1/+1
Previously we got bad results with -t markdown --reference-links if the input contained autolinks like <http://yahoo.com>.
2012-01-31Don't include mathml javascript for html5 output.John MacFarlane1-1/+2
mathml is supposed to be supported in HTML5.
2012-01-31Support `--mathml` flag in docbook.John MacFarlane1-2/+28
2012-01-30Added `--epub-embed-font` option.John MacFarlane1-5/+23
* This can be repeated for multiple fonts. * Added parameter for fonts to embed to writeEPUB. * Added ttf, otf to Mime types in Text.Pandoc.MIME.
2012-01-28Remove dependency on old-time.John MacFarlane3-6/+6
2012-01-28Put date in YYYY-MM-DD format if possible for HTML, docx metadata.John MacFarlane2-5/+6
Added normalizeDate to Text.Pandoc.Shared.
2012-01-27LaTeX writer: escape # in href URLs. Closes #359.John MacFarlane1-6/+2
2012-01-27Docbook writer: Use sect1, sect2, etc. instead of section.John MacFarlane1-9/+11
2012-01-27Finished implementing --atx-headers in markdown writer.John MacFarlane1-2/+5
2012-01-27Removed some unused code.John MacFarlane1-3/+0
2012-01-25Added --slide-level option to override default.John MacFarlane2-4/+14
This allows users to select a slide level below the first header level with content. Note that content under sections above the slide level will not appear in slides (either in beamer or in HTML slide shows). This is primarily useful for creating documents that can be made into both slides and handouts (which contain additional content outside the slides).
2012-01-25Fixed regression in HTML writer: all headers level 1!John MacFarlane1-1/+3
2012-01-25Depend on highlighting-kate 0.5.John MacFarlane1-3/+3
This uses styleToCss instead of styleToHtml.
2012-01-25LaTeX/beamer: --chapters causes level 1 to be \part{..}.John MacFarlane1-3/+6
2012-01-24HTML writer: Use h1 for all slide titles.John MacFarlane1-2/+2
2012-01-24HTML writer: Use new common system for slides.John MacFarlane1-20/+16
2012-01-23Slides: New approach, using hierarchicalize.John MacFarlane1-23/+31
This will work better with the HTML slideshows.
2012-01-23LaTeX beamer: Only add [fragile] to slide if it contains verbatim.John MacFarlane1-1/+8
Closes #385.
2012-01-23Use Slides in LaTeX writer for beamer.John MacFarlane1-29/+17
2012-01-20Docx: Put display math on separate line.John MacFarlane1-5/+9
2012-01-20Docx writer: Fixed styles in footnotes.John MacFarlane1-0/+6
Previously a footnote in a list item would be a list item, etc.!
2012-01-20Docx: Adjusted list spacing for less cramped number markers.John MacFarlane1-1/+1
2012-01-20Docx writer: Start bullet lists with solid bullet.John MacFarlane1-6/+7
2012-01-20Docx writer: Don't indent first level of lists.John MacFarlane1-2/+2
2012-01-20Docx writer: Fixed bug with numbered lists.John MacFarlane1-24/+37
Numbered lists were being numbered continuously, instead of having new lists start again with 1.
2012-01-19Minor comment fixes.John MacFarlane1-2/+0
2012-01-19Check for existence before opening image file.John MacFarlane1-49/+57
Print warning if file doesn't exist.
2012-01-19Added Docx writer.John MacFarlane1-0/+626
* New module `Text.Pandoc.Docx`. * New output format `docx`. * Added reference.docx. * New option `--reference-docx`. The writer includes support for highlighted code blocks and math (which is converted from TeX to OMML using texmath's new OMML module).
2012-01-15ImageSize: extract dpi information from PNG and JPEG.John MacFarlane1-5/+4
* ImageSize record now includes dpiX, dpiY, pxX, pxY. * New functions sizeInPixels and sizeInPoints.
2012-01-14ODT writer now sizes images appropriately.John MacFarlane2-3/+10
OpenDocument writer: a title like "123x467" is interpreted as size in *points*. ODT writer: while adding images to the archive, computes their sizes and inserts a title attribute with the size before calling opendocument writer. Size is computed as follows: size in points = size in pixels * 96 / 72
2012-01-14OpenDocument writer: treat image title of form "dddxddd" as size in px.John MacFarlane1-3/+14
Later we'll modify the ODT writer to insert such titles, so image sizes will be correct in the ODT.
2012-01-13EPUB writer: Allow raw HTML.John MacFarlane1-6/+1