summaryrefslogtreecommitdiff
path: root/src/Text/Pandoc/Writers/Docbook.hs
Commit message (Collapse)AuthorAge
* DocBook writer: add id to para if in Div with id element.John MacFarlane2015-05-20
| | | | | | | This makes the writer work properly with linked bibliographic items with pandoc-citeproc. Closes jgm/pandoc-citeproc#132.
* Updated copyright notices to -2015. Closes #2111.John MacFarlane2015-04-26
|
* Docbook writer: don't print empty id attributes.John MacFarlane2015-02-25
| | | | Thanks to Steve Horne for reporting.
* Merge pull request #1486 from Aelve/minorJohn MacFarlane2014-08-04
|\ | | | | Very minor cleanup and readability changes
| * Add PatternGuards pragmas.Artyom Kazak2014-08-04
| |
| * Use `stripPrefix` where appropriate.Artyom Kazak2014-08-04
| |
* | 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.
* Update copyright notices for 2014, add missing noticesAlbert Krewinkel2014-05-09
|
* DocBook writer: Small tweaks to last commit.John MacFarlane2014-05-03
| | | | | | | | * Use isTightList from Shared. * Adjust writer test, since isTightList is a bit different from what was used before. Closes #1250.
* Distinguish tight and loose lists in Docbook outputNeil Mayhew2014-05-03
| | | | Determined by the first block of the first item being Plain.
* Improve handling of hard line breaks in Docbook writerNeil Mayhew2014-04-12
| | | | | | | * Use a <literallayout> for the entire paragraph, not just for the newline character * Don't let LineBreaks inside footnotes influence the enclosing paragraph
* Docbook writer: Hierarchicalize block content in metadata.John MacFarlane2013-11-19
| | | | | | | | | | Previously headers just disappeared from block-level metadata when it was used in templates. Now we apply the 'hierarchicalize' transformation. Note that a block headed by a level-2 header will turn into a `<sect1>` element.
* 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.
* Adjusted writers and tests for change in parsing of div/span.John MacFarlane2013-08-18
| | | | | Textile, MediaWiki, Markdown, Org, RST will emit raw HTML div tags for divs. Otherwise Div and Span are "transparent" block containers.
* 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.
* 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.
* 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.
* DocBook writer: for linebreak, but newline in literallayout.John MacFarlane2013-01-28
| | | | Closes #725.
* 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
|
* Renamed removedLeadingTrailingSpace to trim.John MacFarlane2012-09-29
| | | | | Also removeLeadingSpace to triml, removeTrailingSpace to trimr.
* Made --id-prefix work in DocBook as well as HTML.John MacFarlane2012-09-06
| | | | Closes #607.
* Don't include empty captions in figures.John MacFarlane2012-08-04
| | | | Closes #581.
* Moved WriterOptions and associated types Shared -> Options.John MacFarlane2012-07-26
|
* Fixed whitespace errors.John MacFarlane2012-07-26
|
* Support `--mathml` flag in docbook.John MacFarlane2012-01-31
|
* Docbook writer: Use sect1, sect2, etc. instead of section.John MacFarlane2012-01-27
|
* Replaced Apostrophe, Ellipses, EmDash, EnDash w/ unicode strings.John MacFarlane2011-12-27
|
* Updated highlighting for highlighting-kate 0.4.John MacFarlane2011-12-26
| | | | | | | | 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.
* HTML reader now recognizes DocBook block and inline tags.John MacFarlane2011-10-25
| | | | | | | | | | | | It was always possible to include raw DocBook tags in a markdown document, but now pandoc will be able to distinguish block from inline tags and behave accordingly. Thus, for example, <sidebar> hello </sidebar> will not be wrapped in `<para>` tags.
* Docbook writer: Use programlisting for code blocks.John MacFarlane2011-07-24
| | | | Instead of screen, as before.
* Docbook writer: Use CALS tables (instead of XHTML tables).John MacFarlane2011-07-24
| | | | | | | Reason: Some older docbook software does not work with XHTML tables. Closes #77.
* Add support for attributes in inline Code.John MacFarlane2011-01-26
| | | | | | | | Additional related changes: * URLs in Code in autolinks now use class "url". * Require highlighting-kate 0.2.8.2, which omits the final <br/> tag, essential for inline code.
* Bumped version to 1.8; depend on pandoc-types 1.8.John MacFarlane2011-01-26
| | | | | | | The old TeX, HtmlInline and RawHtml elements have been removed and replaced by generic RawInline and RawBlock elements. All modules updated to use the new raw elements.
* Use <chapter> for top docbook header if template has <book>.John MacFarlane2011-01-16
| | | | Resolves Issue #265.
* Added --chapters option affecting docbook and latex.John MacFarlane2011-01-16
| | | | | | | | * Added writerChapters to WriterOptions. * Added --chapters command-line option. * --chapters causes top-level headers to be "chapter" instead of "section" in LaTeX and DocBook. * Resolves Issue #225.
* Docbook writer: Updated to use Pretty.John MacFarlane2010-12-21
|
* Shared: Made splitBy take a test instead of an element.John MacFarlane2010-12-21
|
* Implemented @ for sequentially numbered examples.John MacFarlane2010-03-27
| | | | Also implemented (@label) for example labels and references.
* Updated copyright notices.John MacFarlane2010-03-23
|
* Docbook writer: support images as figures.fiddlosopher2010-03-17
| | | | git-svn-id: https://pandoc.googlecode.com/svn/trunk@1897 788f1e2b-df1e-0410-8736-df70ead52e1b
* Use template variables for include-before/after.fiddlosopher2010-03-13
| | | | | | | | | | | | * These options now imply -s; previously they worked also in fragment mode. * Users can now adjust position of include-before and include-after text in the templates. * Default position of include-before moved back (as it originally was) before table of contents. * Resolves Issue #217. git-svn-id: https://pandoc.googlecode.com/svn/trunk@1883 788f1e2b-df1e-0410-8736-df70ead52e1b
* Docbook writer: handle headerless tables.fiddlosopher2010-03-09
| | | | | | In addition, use cols, thead, and tbody. git-svn-id: https://pandoc.googlecode.com/svn/trunk@1874 788f1e2b-df1e-0410-8736-df70ead52e1b