aboutsummaryrefslogtreecommitdiff
path: root/src/Text/Pandoc/Writers/HTML.hs
AgeCommit message (Collapse)AuthorFilesLines
2013-01-15Added `writerHtmlQTags` and `--html-q-tags` option.John MacFarlane1-1/+1
The previous default was to use `<q>` tags in HTML5. But `<q>` tags are also valid HTML4, and they are not very robust in HTML5. Some user agents don't support them, and some CSS resets prevent pandoc's quotes CSS from working properly (e.g. bootstrap). It seems a better default just to insert quote characters, but the option is provided for those who have gotten used to using `<q>` tags.
2013-01-15Use 'fig:' instead of '\SOH' in title to indicate figure.John MacFarlane1-2/+2
Revises 1a4b47e93368bfbd31daccdfedbd9527ee740201
2013-01-14Implemented Ext_implicit_figures.John MacFarlane1-1/+2
* In markdown reader, add a '\1' character to the beginning of the title of an image that is alone in its paragraph, if implicit_figures extension is selected. * In writers, check for Para [Image alt (src,'\1':tit)] and treat it as a figure if possible. * Updated tests. This is a bit of a hack, but it allows us to make implicit_figures an extension of the markdown reader, rather than the writers.
2013-01-09Added Attr field to Header.John MacFarlane1-8/+14
Previously header ids were autogenerated by the writers. Now they are generated (unless supplied explicitly) in the markdown parser, if the `header_identifiers` extension is selected. In addition, the textile reader now supports id attributes on headers.
2013-01-06Don't put the text of an autolink in Code font.John MacFarlane1-1/+3
2013-01-05For epub3, use epub:type to mark footnotes and footnote refs.John MacFarlane1-6/+14
This yields nice popup footnotes in iBooks. See http://www.pigsgourdsandwikis.com/2012/05/creating-pop-up-footnotes-in-epub-3-and.html
2013-01-05Implemented toc-depth for html writer.John MacFarlane1-2/+3
2013-01-03Implemented `Ext_header_identifiers`, `Ext_implicit_header_references`.John MacFarlane1-1/+3
Now by default pandoc will act as if link references have been defined for all headers. So, you can do this: # My header Link to [My header]. Another link to [it][My header]. Closes #691.
2012-11-05HTML writer: Include highlighting-css for code spans, too.John MacFarlane1-1/+3
Previously it was only included if used in a code block. Closes #653.
2012-11-02HTML writer: Use XHtml5 only if blaze version current enough.John MacFarlane1-0/+4
2012-11-02HTML writer: Use Text.Blaze.XHtml5 instead of Html5.John MacFarlane1-1/+1
This is needed for epub.
2012-09-28HTML writer: Use toHtml instead of pre-escaping.John MacFarlane1-4/+7
We work around the problem that blaze-html unnecessarily escapes `'` by pre-escaping just the `'` characters, instead of the whole string. If blaze-html later stops escaping `'` characters, we can simplify strToHtml to toHtml. Note that this change yields a significant speed boost (111ms to 94ms on one benchmark). Closes #629.
2012-09-12HTML writer: Don't print `<dt>` unless term is non-empty.John MacFarlane1-1/+3
2012-09-12HTML writer: Improve line breaks with `<dd>` tags.John MacFarlane1-1/+2
We now put a newline between `</dd>` and `<dd>` when there are multiple definitions.
2012-08-08Changes to literate haskell options.John MacFarlane1-1/+1
- Removed writerLiterateHaskell from WriterOptions. - Removed readerLiterateHaskell from ReaderOptions. - Added Ext_literate_haskell to Extensions. Test for this instead of the above. - Removed failUnlessLHS from Shared. Note: At this point, +lhs and .lhs extension no longer has any effect. Need to fix.
2012-08-04Don't include empty captions in figures.John MacFarlane1-4/+8
Closes #581.
2012-07-27Replaced writerStrict with writerExtensions in WriterOptions.John MacFarlane1-1/+1
Still have not implemented individual tests for all the extensions in the markdown writer.
2012-07-26Moved WriterOptions and associated types Shared -> Options.John MacFarlane1-0/+1
2012-07-26Fixed whitespace errors.John MacFarlane1-1/+1
2012-07-11HTML writer: Put mathjax in span with class "math".John MacFarlane1-1/+1
Closes #562.
2012-06-25Don't generate empty H1 after hrule slide breaks.John MacFarlane1-1/+3
We now use a slide-level header with contents [Str "\0"] to mark an hrule break. This avoids creation of an empty H1 in these contexts. Closes #484.
2012-05-24Add support for Slideous output.Jonas Smedegaard1-0/+1
2012-05-10Revert "Removed blaze_html_05 flag -- require blaze >= 0.5 by default."John MacFarlane1-1/+5
This reverts commit f67a80cea27286ba17b3696198602a6bbdae014d.
2012-04-24Removed blaze_html_05 flag -- require blaze >= 0.5 by default.John MacFarlane1-5/+1
2012-04-23changes for blaze-html 0.5Mark Wright1-1/+6
2012-03-29Avoid repeated id in section and header in HTML slides.John MacFarlane1-3/+2
Previously pandoc would use the same id attribute for the div or section and the header inside it; now the id is omitted from the header if the div or section has it.
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-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-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-01-31Don't include mathml javascript for html5 output.John MacFarlane1-1/+2
mathml is supposed to be supported in HTML5.
2012-01-28Put date in YYYY-MM-DD format if possible for HTML, docx metadata.John MacFarlane1-2/+2
Added normalizeDate to Text.Pandoc.Shared.
2012-01-25Added --slide-level option to override default.John MacFarlane1-3/+9
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-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-11HTML writer: Don't use self-closing img, br, hr tags.John MacFarlane1-7/+12
2011-12-30HTML writer: Better handling of authors in meta tags.John MacFarlane1-12/+26
Footnotes and email addresses now come out in a more pleasing way. Modified from a patch by B. Scott Michel.
2011-12-29Merge pull request #366 from gridaphobe/masterJohn MacFarlane1-2/+1
Use Link instead of RawInline for reference backlinks
2011-12-28Preserve attributes in highlighted HTML.John MacFarlane1-2/+4
The container element will have the classes, id, and key-value attributes you specified in the delimited code block. Previously these were stripped off.
2011-12-27Added `--highlight-style` and `--no-highlight` options.John MacFarlane1-2/+3
2011-12-27Replaced Apostrophe, Ellipses, EmDash, EnDash w/ unicode strings.John MacFarlane1-4/+0
2011-12-26Updated highlighting for highlighting-kate 0.4.John MacFarlane1-10/+16
Text.Pandoc.Highlighting now exports just one new function, 'highlight', and reexports all the other functions from highlighting-kate that are used in the writers. This should make it easy to switch highlighting engines if that is ever desired.
2011-12-24change reference backlink from RawInline to Link so it gets rendered ↵Eric Seidel1-2/+1
properly when using the xmlhtml package
2011-12-22Changed types of highlighting functions.John MacFarlane1-4/+4
* highlightLaTeX, highlightHtml now return Maybe, not Either. * This is because h-k's higdlightAs no longer returns an Either.
2011-12-20Added a newline at end of footnotes ol.John MacFarlane1-1/+1
2011-12-20Restore xhtml style self-closed tags in HTML writer.John MacFarlane1-9/+9
This requires blaze-html >= 0.4.3.0.
2011-12-18HTML writer: Put classes "section" and "level[1-6]" on section divs.John MacFarlane1-6/+6
(In HTML 5, the "section" class is omitted, since the tag itself is "section.")
2011-12-18HTML writer: Use `<del>` for strikeout.John MacFarlane1-1/+1
2011-12-17HTML writer: Don't escape '.John MacFarlane1-2/+3
This requires using a custom string escaper. If we use toHtml from Blaze, we get &#39;, which is pointless unless you're writing attributes in single quotes.