summaryrefslogtreecommitdiff
path: root/src/Text/Pandoc/Writers/HTML.hs
Commit message (Collapse)AuthorAge
* _online_latexmathml_defaultDebian Haskell Group2018-04-24
| | | Gbp-Pq: Name 1001_online_latexmathml_default.patch
* Presentations: Use divs to set incremental/non-incrementalJesse Rosenthal2018-02-22
| | | | | | | | | | | | | | | | | | | | | | | Currently, html and beamer presentations use a list-inside-blockquote convention for setting incremental and all-at-once presentation of lists (or reversing the command-line default). This allows the user to set this on a per-case basis with divs, named `incremental` and `nonincremental` respectively, as in: ::: incremental - snap - crackle - pop ::: Note that the former list-inside-blockquote convention still works so as not to break any existing presentations. Closes: #4381
* Conditional import to avoid warning.John MacFarlane2018-01-19
|
* hlint code improvements.John MacFarlane2018-01-19
|
* HTML writer: Fixed footnote backlinks with --id-prefix.John MacFarlane2018-01-09
| | | | Closes #4235.
* Update copyright notices to include 2018Albert Krewinkel2018-01-05
|
* HTML writer: Use br elements in line blocks...John MacFarlane2017-12-26
| | | | | | | | instead of relying on CSS. Closes #4162. HTML-based templates have had the custom CSS for div.line-block removed. Those maintaining custom templates will want to remove this too. We still enclose line blocks in a div with class line-block.
* Add `empty_paragraphs` extension.John MacFarlane2017-12-04
| | | | | | | | | | | | | | | | * Deprecate `--strip-empty-paragraphs` option. Instead we now use an `empty_paragraphs` extension that can be enabled on the reader or writer. By default, disabled. * Add `Ext_empty_paragraphs` constructor to `Extension`. * Revert "Docx reader: don't strip out empty paragraphs." This reverts commit d6c58eb836f033a48955796de4d9ffb3b30e297b. * Implement `empty_paragraphs` extension in docx reader and writer, opendocument writer, html reader and writer. * Add tests for `empty_paragraphs` extension.
* Removed unnecessary import.John MacFarlane2017-12-03
|
* HTML writer: export tagWithAttributes.John MacFarlane2017-12-03
| | | | | This is a helper allowing other writers to create single HTML tags.
* Improved support for columns in HTML.John MacFarlane2017-11-02
| | | | | | | | | | * Move as much as possible to the CSS in the template. * Ensure that all the HTML-based templates (including epub) contain the CSS for columns. * Columns default to 50% width unless they are given a width attribute. Closes #4028.
* Use latest skylighting; ensure no duplicate ids on code lines.John MacFarlane2017-11-02
| | | | | | | | The line identifiers are built using the code block's identifier as a prefix. If the code block has null identifier, we use "cb1", "cb2", etc. Closes #4031.
* Fixed revealjs slide column width issues.John MacFarlane2017-11-02
| | | | | | | | | * Remove "width" attribute which is not allowed on div. * Remove space between `<div class="column">` elements, since this prevents columns whose widths sum to 100% (the space takes up space). Closes #4028.
* HTML Writer: consistently use dashed class-namesmb212017-10-31
| | | | see #3556
* Source code reformatting.John MacFarlane2017-10-29
|
* hlint suggestions.John MacFarlane2017-10-29
|
* Automatic reformating by stylish-haskell.John MacFarlane2017-10-27
|
* HTML writer: don't add data- prefix to unknown attributes beginning with data-.John MacFarlane2017-10-16
| | | | Or we'll get data-data-blah.
* KaTeX fixes:John MacFarlane2017-10-05
| | | | | | | * In Options.HTMLMathMethod, the KaTeX contsructor now takes only one string (for the KaTeX base URL), rather than two [API change]. * The default URL has been updated to the latest version. * The autoload script is now loaded by default.
* Add a type sig to satisfy ghc 7.10.3.John MacFarlane2017-08-29
|
* HTML writer: ensure we don't get two style attributes for width & height.John MacFarlane2017-08-28
|
* slidy uses https instead of http (#3848)ickc2017-08-17
| | | grep -rl 'http://www.w3.org/Talks/Tools/Slidy2' . | xargs sed -i 's/http:\/\/www\.w3\.org\/Talks\/Tools\/Slidy2/https:\/\/www\.w3\.org\/Talks\/Tools\/Slidy2/g'
* Implement multicolumn support for slide formats.John MacFarlane2017-08-14
| | | | | | | | | | | | | | | | | | | | | | The structure expected is: <div class="columns"> <div class="column" width="40%"> contents... </div> <div class="column" width="60%"> contents... </div> </div> Support has been added for beamer and all HTML slide formats. Closes #1710. Note: later we could add a more elegant way to create this structure in Markdown than to use raw HTML div elements. This would come for free with a "native div syntax" (#168). Or we could devise something specific to slides
* Slidy writer: use h1 for all slides...John MacFarlane2017-08-10
| | | | | | | even if they were originally level 2 headers. Otherwise the built-in table of contents in Slidy breaks. Closes #3566.
* Sorted the list of supported HTML5 attributes and removed duplicates. (#3817)Wandmalfarbe2017-07-26
|
* HTML writer: render raw inline environments when --mathjax used.John MacFarlane2017-07-26
| | | | | | | | We previously did this only with raw blocks, on the assumption that math environments would always be raw blocks. This has changed since we now parse them as inline environments. Closes #3816.
* HTML writer: insert data- in front of unsupported attributes.John MacFarlane2017-07-25
| | | | | | | | | | Thus, a span with attribute 'foo' gets written to HTML5 with 'data-foo', so it is valid HTML5. HTML4 is not affected. This will allow us to use custom attributes in pandoc without producing invalid HTML.
* Use `table-of-contents` for contents of toc, make `toc` a boolean.John MacFarlane2017-06-26
| | | | | | | | | | | | | | Changed markdown, rtf, and HTML-based templates accordingly. This allows you to set `toc: true` in the metadata; this previously produced strange results in some output formats. Closes #2872. For backwards compatibility, `toc` is still set to the toc contents. But it is recommended that you update templates to use `table-of-contents` for the toc contents and `toc` for a boolean flag.
* HTML writer: make sure html4, html5 formats work for raw blocks/inlines.John MacFarlane2017-06-23
|
* Writers: adjusted for renderTemplate' changes.John MacFarlane2017-06-20
| | | | Now we raise a proper error on template failure.
* Use revealjs's math plugin for mathjax.John MacFarlane2017-06-18
| | | | | | | | | | | | | | This is a thin wrapper around mathjax that makes math look better on revealjs. See https://github.com/hakimel/reveal.js/#mathjax We do this by setting the 'mathjax' boolean variable and using it in the revealjs template. Also, for revealjs and mathjax, we don't assign the usual thing to the 'math' variable, since it's handled by mathjax config. Closes #3743.
* Use Control.Monad.State.Strict throughout.John MacFarlane2017-06-17
| | | | | This gives 20-30% speedup and reduction of memory usage in most of the writers.
* Switched Writer types to use Text.John MacFarlane2017-06-11
| | | | | | | | | | | * XML.toEntities: changed type to Text -> Text. * Shared.tabFilter -- fixed so it strips out CRs as before. * Modified writers to take Text. * Updated tests, benchmarks, trypandoc. [API change] Closes #3731.
* HTML writer: Avoid two class attributes when adding 'uri' class.John MacFarlane2017-06-01
| | | | Closes #3716.
* HTML writer: Removed unused parameter in dimensionsToAttributeList.John MacFarlane2017-05-26
|
* Allow em for image height/width in HTML, LaTeX.John MacFarlane2017-05-25
| | | | | | | | | | | - Export `inEm` from ImageSize [API change]. - Change `showFl` and `show` instance for `Dimension` so extra decimal places are omitted. - Added `Em` as a constructor of `Dimension` [API change]. - Allow `em`, `cm`, `in` to pass through without conversion in HTML, LaTeX. Closes #3450.
* Update dates in copyright noticesAlbert Krewinkel2017-05-13
| | | | | This follows the suggestions given by the FSF for GPL licensed software. <https://www.gnu.org/prep/maintain/html_node/Copyright-Notices.html>
* HTML line block: Use class instead of style attribute.John MacFarlane2017-04-25
| | | | | | | | | We now issue `<div class="line-block">` and include a default definition for `line-block` in the default templates, instead of hard-coding a `style` on the div. Closes #1623.
* Add original classes to JS obfuscated links (#3554)Timm Albers2017-04-04
| | | | | | | HTML links containing classes originally now preserve them when using javascript email obfuscation. Fixes #2989
* Add class to footnote back referencesTimm Albers2017-04-03
| | | | | The HTML writer now also adds the class footnoteBack to back references of footnotes. This allows for easier CSS styling.
* Allow dynamic loading of syntax definitions.John MacFarlane2017-03-30
| | | | | | | | | | | | | | | | | See #3334. * Add writerSyntaxMap to WriterOptions. * Highlighting: added parameter for SyntaxMap to highlight. * Implemented --syntax-definition option. TODO: [ ] Figure out whether we want to have the xml parsing depend on the dtd (it currently does, and fails unless the language.dtd is found in the same directory). [ ] Add an option to read a KDE syntax highlighting theme as a custom style. [ ] Add tests.
* Highlighting: highlighting now returns an Either rather than Maybe.John MacFarlane2017-03-13
| | | | | | | This allows us to display error information returned by the skylighting library. Display a warning if the highlighting library throws an error.
* HTML writer: info message if 'lang' is unspecified.John MacFarlane2017-03-09
| | | | Closes #3486.
* HTML writer: fallback to basename rather than Untitled.John MacFarlane2017-03-09
|
* HTML writer: only issue warning for missing title if --standalone.John MacFarlane2017-03-04
|
* HTML writer: Render SmallCaps as span with smallcaps class.John MacFarlane2017-03-04
| | | | | | | | | Rather than using a style attribute directly. This gives the user more flexibility in styling small caps in CSS. See #1592.
* Stylish-haskell automatic formatting changes.John MacFarlane2017-03-04
|
* HTML writer: issue warning if no title specified and template used.John MacFarlane2017-03-04
| | | | See #3473.
* Special-case .stretch class for images in reveal.js.John MacFarlane2017-02-23
| | | | | | | | Now in reveal.js, an image with class `stretch` in a paragraph by itself will stretch to fill the whole screen, with no caption or figure environment. Closes #1291.
* Use lazy loading for reveal.js slide shows.John MacFarlane2017-02-20
| | | | | | | | * In HTML writer, with reveal.js we use data-src instead of src for images. * In SelfContained, we also load resources from data-src. Closes #2283.