summaryrefslogtreecommitdiff
path: root/src/Text/Pandoc/Writers/HTML.hs
Commit message (Collapse)AuthorAge
* 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.
* Checking options before applying syntax highlighting for HTML outputAlexander Kondratskiy2013-07-13
|
* Created Text.Pandoc.Writers.Shared, improved metaToJSON.John MacFarlane2013-07-01
| | | | | | | * Text.Pandoc.Writers.Shared contains shared functions used only in writers. * metaToJSON now takes a WriterOptions parameter, and will return an empty object if standalone is not specified.
* Metadata changes: Variables now completely shadow metadata.John MacFarlane2013-06-29
| | | | | | | | | Previously if you set a value both in metadata and with a variable, they'd be combined into a list. Now the variable replaces the value in document metadata. If many variables with the same name are set, a list is created. Shared: metaToJSON now has an argument for a variable list.
* Writers: Use defField for defaults.John MacFarlane2013-06-27
| | | | | | | This way explicitly specified fields not overridden. Fixes a problem e.g. with specifying a documentclass via the command line using -V.
* Use new flexible metadata type.John MacFarlane2013-06-24
| | | | | | | | | | | | | | | | | | | | | | | | | * Depend on pandoc 1.12. * Added yaml dependency. * `Text.Pandoc.XML`: Removed `stripTags`. (API change.) * `Text.Pandoc.Shared`: Added `metaToJSON`. This will be used in writers to create a JSON object for use in the templates from the pandoc metadata. * Revised readers and writers to use the new Meta type. * `Text.Pandoc.Options`: Added `Ext_yaml_title_block`. * Markdown reader: Added support for YAML metadata block. Note that it must come at the beginning of the document. * `Text.Pandoc.Parsing.ParserState`: Replace `stateTitle`, `stateAuthors`, `stateDate` with `stateMeta`. * RST reader: Improved metadata. Treat initial field list as metadata when standalone specified. Previously ALL fields "title", "author", "date" in field lists were treated as metadata, even if not at the beginning. Use `subtitle` metadata field for subtitle. * `Text.Pandoc.Templates`: Export `renderTemplate'` that takes a string instead of a compiled template.. * OPML template: Use 'for' loop for authors. * Org template: '#+TITLE:' is inserted before the title. Previously the writer did this.
* Revised Text.Pandoc.Templates to accept JSON contexts.John MacFarlane2013-06-24
| | | | | | | | | | | | Currently the library is set up with a shim for association lists, for compatibility, but this can change when the writers are changed. New export: `varListToJSON`. Removed `Empty`. Simplified template type to a newtype.
* Don't convert to lowercase in email obfuscation.John MacFarlane2013-04-25
| | | | Closes #839.
* Add slash in internal links in reveal.js.John MacFarlane2013-04-20
| | | | Closes #835.
* Removed blaze_html_0_5 flag, require blaze-html >= 0.5.John MacFarlane2013-03-26
| | | | | | | Reason: < 0.5 does not provide a monoid instance for Attribute, which is now needed by the HTML writer. Closes #803.
* Added syntax for "pauses" in beamer or reaveljs slide shows.John MacFarlane2013-03-24
| | | | | | | | This gives . . . a pause.
* Reveal.js improvements.John MacFarlane2013-03-23
| | | | | Changed name to revealjs (from reveal_js). Set revealjs-url template variable to 'reveal.js' by default.
* reveal_js: nested vertical stacks used for hierarchical structure.John MacFarlane2013-03-21
| | | | | | Variant of a patch from jamiefolson. Results for more than one level of nesting may be odd. Perhaps this needs revising.
* Support incremental slide view for definition lists.John MacFarlane2013-03-21
| | | | | All slide formats supported. Simplified some list code.
* Added basic support for reveal.js.Jamie F. Olson2013-03-21
| | | | | | | | Support unordered and ordered lists with "fragment" elements. Modified by JGM to remove the --reveal_js-url command-line option. Instead use -V reveal_js-url=... as with slidy and the other slide formats. Also cleaned up the list code in the HTML writer.
* Fixed numbering mismatch between TOC and sections in HTML.John MacFarlane2013-03-16
| | | | | | | Also made `--number-offset` affect TOC numbering as well as section numbering, as it should have all along. Closes #789.
* HTML writer: fix case when writerNumberOffet is empty or short.John MacFarlane2013-02-23
| | | | We add 0s to the end of the list if it's shorter than needed.
* `--number-from` -> `--number-offset`John MacFarlane2013-02-23
| | | | | | | Also `writerNumberFrom` -> `writeNumberOffset`. The offset is a list of numbers (0 by default). These are added to the section, subsection, etc. numbers that would have been generated automatically.
* Made HTML writer sensitive to `writerNumberFrom`.John MacFarlane2013-02-22
|
* HTML writer: Support header attributes.John MacFarlane2013-02-14
| | | | | | | | Note: The attributes go on the enclosing section or div if `--section-divs` is specified. Also fixed a regression (only now noticed) in html+lhs output. Previously the bird tracks were being omitted.
* hierarchicalize: Do not number section with class "unnumbered".John MacFarlane2013-02-13
| | | | | | | | | | | Unnumbered sections get [] for their section number. So far only the HTML writer has been adjusted to be sensitive to this. If we keep this change, all the writers will need to be changed either (a) to directly check for the "unnumbered" class, if they do section numbering themselves, or (b) to check for a null section number, if they use hierarchicalize.
* HTML writer: Refactored adding attributes to html element.John MacFarlane2013-02-12
|
* Shared: Changed type of Element.John MacFarlane2013-02-12
| | | | | | | Sec now includes a field for Attr rather than just String (the identifier). Note, this is an API change.
* Use proportional font for email autolinks with obfuscation.John MacFarlane2013-01-21
| | | | Closes #714.
* Add data-cites field to citations in HTML5.John MacFarlane2013-01-18
| | | | This contains a space-separated list of citation IDs.
* Added `writerHtmlQTags` and `--html-q-tags` option.John MacFarlane2013-01-15
| | | | | | | | | | 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.
* Use 'fig:' instead of '\SOH' in title to indicate figure.John MacFarlane2013-01-15
| | | | Revises 1a4b47e93368bfbd31daccdfedbd9527ee740201
* Implemented Ext_implicit_figures.John MacFarlane2013-01-14
| | | | | | | | | | | | * 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.
* Added Attr field to Header.John MacFarlane2013-01-09
| | | | | | | | | | 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.
* Don't put the text of an autolink in Code font.John MacFarlane2013-01-06
|
* For epub3, use epub:type to mark footnotes and footnote refs.John MacFarlane2013-01-05
| | | | | This yields nice popup footnotes in iBooks. See http://www.pigsgourdsandwikis.com/2012/05/creating-pop-up-footnotes-in-epub-3-and.html
* Implemented toc-depth for html writer.John MacFarlane2013-01-05
|
* Implemented `Ext_header_identifiers`, `Ext_implicit_header_references`.John MacFarlane2013-01-03
| | | | | | | | | | | | 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.
* HTML writer: Include highlighting-css for code spans, too.John MacFarlane2012-11-05
| | | | | Previously it was only included if used in a code block. Closes #653.
* HTML writer: Use XHtml5 only if blaze version current enough.John MacFarlane2012-11-02
|
* HTML writer: Use Text.Blaze.XHtml5 instead of Html5.John MacFarlane2012-11-02
| | | | This is needed for epub.
* HTML writer: Use toHtml instead of pre-escaping.John MacFarlane2012-09-28
| | | | | | | | | | | | | 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.
* HTML writer: Don't print `<dt>` unless term is non-empty.John MacFarlane2012-09-12
|
* HTML writer: Improve line breaks with `<dd>` tags.John MacFarlane2012-09-12
| | | | | We now put a newline between `</dd>` and `<dd>` when there are multiple definitions.
* Changes to literate haskell options.John MacFarlane2012-08-08
| | | | | | | | | | | - 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.
* Don't include empty captions in figures.John MacFarlane2012-08-04
| | | | Closes #581.
* Replaced writerStrict with writerExtensions in WriterOptions.John MacFarlane2012-07-27
| | | | | Still have not implemented individual tests for all the extensions in the markdown writer.
* Moved WriterOptions and associated types Shared -> Options.John MacFarlane2012-07-26
|
* Fixed whitespace errors.John MacFarlane2012-07-26
|
* HTML writer: Put mathjax in span with class "math".John MacFarlane2012-07-11
| | | | Closes #562.
* Don't generate empty H1 after hrule slide breaks.John MacFarlane2012-06-25
| | | | | | | | 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.
* Add support for Slideous output.Jonas Smedegaard2012-05-24
|
* Revert "Removed blaze_html_05 flag -- require blaze >= 0.5 by default."John MacFarlane2012-05-10
| | | | This reverts commit f67a80cea27286ba17b3696198602a6bbdae014d.
* Removed blaze_html_05 flag -- require blaze >= 0.5 by default.John MacFarlane2012-04-24
|