summaryrefslogtreecommitdiff
path: root/src/Text/Pandoc/Writers/HTML.hs
Commit message (Collapse)AuthorAge
...
* | Use -XNoImplicitPrelude and 'import Prelude' explicitly.John MacFarlane2015-11-08
| | | | | | | | | | | | | | This is needed for ghci to work with pandoc, given that we now use a custom prelude. Closes #2503.
* | HTML writer: use width on whole table if col widths sum to < 100%.John MacFarlane2015-10-30
| | | | | | | | | | Otherwise some browsers display the table with the columns separated far apart.
* | Use custom Prelude to avoid compiler warnings.John MacFarlane2015-10-14
| | | | | | | | | | | | | | | | | | | | | | | | | | - The (non-exported) prelude is in prelude/Prelude.hs. - It exports Monoid and Applicative, like base 4.8 prelude, but works with older base versions. - It exports (<>) for mappend. - It hides 'catch' on older base versions. This allows us to remove many imports of Data.Monoid and Control.Applicative, and remove Text.Pandoc.Compat.Monoid. It should allow us to use -Wall again for ghc 7.10.
* | HTML reader/writer: better handling of "section" elements.John MacFarlane2015-10-11
|/ | | | | | | | | | Previously `<section>` tags were just parsed as raw HTML blocks. With this change, section elements are parsed as Div elements with the class "section". The HTML writer will use `<section>` tags to render these Divs in HTML5; otherwise they will be rendered as `<div class="section">`. Closes #2438.
* DZSlides: Add `role="note"` for speaker notes.John MacFarlane2015-07-21
| | | | Closes #1693.
* HTML writer: support speaker notes in dzslides.John MacFarlane2015-07-13
| | | | | | | | With this change `<div class="notes">` and also `<div class="notes" role="note">` will be output if `-t dzslides` is used. So we can have speaker notes in dzslides too. Thanks to maybegeek.
* Fixed email javascript obfuscation with mailto: URLs.John MacFarlane2015-07-07
| | | | | | | | | | This fixes a potential security issue. Because single quotes weren't being escaped in the link portion, a specially crafted email address could allow javascript code injection. [Jim'+alert('hi')+'OBrien](mailto:me@example.com) Closes #2280.
* Revealjs: allow 'center' to be set to false.John MacFarlane2015-05-27
|
* Don't use sup element for epub footnotes.John MacFarlane2015-05-11
| | | | | | | | | Instead, just use an a element with class `footnoteRef`. This allows more styling options, and provides better results in some readers (e.g. iBooks, where anything inside the a tag breaks popup footnotes). Closes #1995.
* Updated copyright notices to -2015. Closes #2111.John MacFarlane2015-04-26
|
* Really fix #1394.John MacFarlane2015-03-14
| | | | | | This closes #1394, which actually wasn't fixed by the earlier commit. This ensures that lists in speaker notes don't add "fragment" classes, which can cause additional keypresses to be needed to advance a slide.
* HTML writer: include raw latex blocks if --mathjax specified.John MacFarlane2015-02-25
| | | | Closes #1938.
* Append newline to the LineBreak of various writersTim Lin2015-02-04
| | | | | | | | | | | | | | This change improves output formatting of content with a large amount of force line breaks, such as line-blocks. The following writers are affected: * Dokuwiki * HTML * EPUB (via HTML) * LaTeX * MediaWiki * OpenDocument * Texinfo This commit resolves #1924
* HTML writer: Add "inline" or "display" class to math spans.John MacFarlane2015-02-01
| | | | | | This allows inline and display math to be styled differently. Closes #1914.
* Refactored `if x then [] else y` to `[y | not x]`Konstantin Zudov2015-01-29
|
* Do not ommit missing `alt` attribute on `img` tagKonstantin Zudov2015-01-29
| | | | Fixes #1131
* Fixed list-style-type for numbered example lists.John MacFarlane2015-01-27
| | | | Should be "decimal," not "example." Closes #1902.
* Use CPP to avoid unneeded import warning for blaze-markup >= 0.6.3.John MacFarlane2015-01-19
| | | | See https://github.com/jgm/pandoc/pull/1888#issuecomment-70470409
* HTML writer: put newline btw img and caption paragraph.John MacFarlane2014-12-15
|
* Text.Pandoc.Readers.HTML: Retain display type of MathML outputMatthew Pickering2014-12-15
| | | | Closes #1719
* HTML writer: Make header attributes work outside top level.John MacFarlane2014-10-23
| | | | | | | Previously they only appeared on top level header elements. Now they work e.g. in blockquotes. Closes #1711.
* HTML Writer: Don't double render when email-obfuscation=nonempickering2014-09-25
| | | | Closes #1625
* Add support for KaTeX HTML mathmpickering2014-09-25
| | | | Closes #1626
* HTML Writer: MathML now outputted with tex annotation.mpickering2014-09-25
| | | | Closes #1635
* HTML writer: use 'uri' or 'email' class for autolinks.John MacFarlane2014-08-12
| | | | | | This allows them to be styled specially. Closes #1501.
* HTML writer: Don't include empty TOC items for slide shows.John MacFarlane2014-08-09
| | | | | Previously creating a slide with a horizontal rule would result in an empty list item in the TOC. This patch fixes that.
* Use texmath 0.7 interface.John MacFarlane2014-08-04
|
* Renamed readTeXMath' to avoid name conflict with texmath 0.6.7Matthew Pickering2014-07-19
| | | | Also removed deprecated readTeXMath.
* HTML writer: Removed useless clause.John MacFarlane2014-07-15
|
* HTML writer: Deactivate "incremental" inside slide speaker notes.John MacFarlane2014-07-10
| | | | Closes #1394.
* Update copyright notices for 2014, add missing noticesAlbert Krewinkel2014-05-09
|
* HTML writer: improved detection of image links.John MacFarlane2014-04-26
| | | | | Previously image links with queries were not recognized, leading to use of an embed tag rather than an img tag.
* HTML writer: Add colgroup around col tags.John MacFarlane2014-03-05
| | | | | Also affects EPUB writer. Closes #877.
* HTML writer: Fixed bug with unnumbered section headings.John MacFarlane2014-02-17
| | | | | Unnumbered section headings (with class 'unnumbered') were getting numbers. This commit fixes the bug.
* HTML writer: Omit footnotes from TOC entries.John MacFarlane2014-01-06
| | | | Otherwise we get doubled footnotes when headers have notes!
* HTML writer: With --toc, headers no longer link to themselves.John MacFarlane2014-01-02
| | | | Closes #1081.
* HLint: use fromMaybeHenry de Valence2013-12-19
| | | | Replace uses of `maybe x id` with `fromMaybe x`.
* HLint: redundant parensHenry de Valence2013-12-19
| | | | Remove parens enclosing a single element.
* HTML writer: Handle csl flipflopping spans (csl-no-emph, etc.)John MacFarlane2013-11-23
|
* HTML/EPUB footnotes: Put `<sup>` tag inside `<a>` tags.John MacFarlane2013-11-12
| | | | | | | This allows better control of formatting, since the `<a>` tags have a distinguishing class. Closes #1049.
* TexMath: Export readTeXMath', which attends to display/inline.John MacFarlane2013-11-01
| | | | | Deprecate readTeXMath, and use readTeXMath' in all the writers. Require texmath >= 0.6.5.
* Fixed '. . .' (pause) on HTML slide formats. Closes #1029.John MacFarlane2013-10-20
| | | | | The old version caused a pause to be inserted before the first material on a slide. This has been fixed.
* Treat div with class "notes" as speaker notes in slide formats.John MacFarlane2013-10-13
| | | | | | | Currently beamer goes to `\note{}`, revealjs to `<aside class="notes">`, and the notes are simply suppressed in other formats. Closes #925.
* HTML writer: Insert command to typeset mathjax for slideous output.John MacFarlane2013-10-13
| | | | Closes #966.
* Removed code that forces MathJax to typeset.John MacFarlane2013-10-06
| | | | | Closes #1012. Reopens #966. A better solution for #966 will just affect slideous, not the other slide writers.
* HTML writer: Ensure proper escaping in header metadata.John MacFarlane2013-09-12
|
* Made . . . for pause work in all slide show formats except slideous.John MacFarlane2013-09-08
|
* Mathjax in HTML slide shows: include explicit "Typeset" instruction.John MacFarlane2013-09-01
| | | | | | | This seems to be needed for some formats (e.g. slideous) and won't hurt in others. Closes #966.
* Adjustments for new Format newtype.John MacFarlane2013-08-10
|
* Preliminary support for new Div and Span elements in writers.John MacFarlane2013-08-08
| | | | | Currently these are "transparent" containers, except in HTML, where they produce div and span elements with attributes.