summaryrefslogtreecommitdiff
path: root/src/Text/Pandoc/Options.hs
Commit message (Collapse)AuthorAge
* Update copyright notices for 2014, add missing noticesAlbert Krewinkel2014-05-09
|
* Added readerTrace to ReaderOptions, --trace command line opt.John MacFarlane2014-02-25
| | | | | | This is to debug backtracking-related parsing bugs. So far it is only implemented for markdown, but it would be good to extend it to latex and html readers.
* Added `lists_without_preceding_blankline` extension.John MacFarlane2013-09-07
| | | | | | | | * Added `Ext_lists_without_preceding_blankline` to `Extension` in `Options`. Added this option to `githubMarkdownExtensions`. * Made markdown reader sensitive to this. * Closes #972.
* Removed dependency on citeproc-hs.John MacFarlane2013-08-24
| | | | | | | | | | | | | | | | | | | | | | | | Going forward we'll use pandoc-citeproc, as an external filter. The `--bibliography`, `--csl`, and `--citation-abbreviation` fields have been removed. Instead one must include `bibliography`, `csl`, or `csl-abbrevs` fields in the document's YAML metadata. The filter can then be used as follows: pandoc --filter pandoc-citeproc The `Text.Pandoc.Biblio` module has been removed. Henceforth, `Text.CSL.Pandoc` from pandoc-citations can be used by library users. The Markdown and LaTeX readers now longer format bibliographies and citations. That must be done using `processCites` or `processCites'` from Text.CSL.Pandoc. All bibliography-related fields have been removed from `ReaderOptions` and `WriterOptions`: `writerBiblioFiles`, `readerReferences`, `readerCitationStyle`. API change.
* Options: Changed `writerSourceDir` to `writerSourceURL` (now a Maybe).John MacFarlane2013-08-11
| | | | | | | | | | | | | | | | | | | | | | | Previously we used to store the directory of the first input file, even if it was local, and used this as a base directory for finding images in ODT, EPUB, Docx, and PDF. This has been confusing to many users. It seems better to look for images relative to the current working directory, even if the first file argument is in another directory. writerSourceURL is set to 'Just url' when the first command-line argument is an absolute URL. (So, relative links will be resolved in relation to the first page.) Otherwise, 'Nothing'. The ODT, EPUB, Docx, and PDF writers have been modified accordingly. Note that this change may break some existing workflows. If you have been assuming that relative links will be interpreted relative to the directory of the first file argument, you'll need to make that the current directory before running pandoc. Closes #942.
* Added `ignore_line_breaks` markdown extension.John MacFarlane2013-07-17
| | | | | | | | This causes intra-paragraph line breaks to be ignored, rather than being treated as hard line breaks or spaces. This is useful for some East Asian languages, where spaces aren't used between words, but text is separated into lines for readability.
* Rename `Ext_yaml_title_block` -> `Ext_yaml_metadata_block`.John MacFarlane2013-07-02
|
* 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.
* Options: Added `Ext_ascii_identifiers`.John MacFarlane2013-04-23
| | | | | | | This will force `Ext_auto_identifiers` to use ASCII only. Set as default for github markdown. Note: API change.
* 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.
* `--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.
* Added `--number-from` option and `writerNumberFrom`.John MacFarlane2013-02-21
| | | | These still aren't hooked up to anything in the writers.
* Added `--default-image-extension` and `readerDefaultImageExtension`.John MacFarlane2013-02-05
| | | | Note: Currently this only affects the markdown reader.
* Implemented Ext_link_attributes in markdown reader.John MacFarlane2013-01-16
| | | | Also simplified source URL and link title parsers.
* Implemented Ext_mmd_header_identifiers in markdown reader.John MacFarlane2013-01-16
|
* Options: Added multimarkdownExtensions.John MacFarlane2013-01-16
| | | | Also added 'markdown_mmd' as input/output option.
* 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.
* Changed Ext_autolink_urls -> Ext_autolink_bare_uris.John MacFarlane2013-01-15
| | | | Added tests.
* Added Ext_implicit_figures.John MacFarlane2013-01-14
| | | | No code to hook this in yet.
* Markdown reader: Support RST-style line blocks.John MacFarlane2013-01-13
| | | | This depends on the new Ext_line_blocks extension.
* Options: Added githubMarkdownExtensions.John MacFarlane2013-01-11
| | | | Added github_markdown as input/output option.
* Options: Added phpMarkdownExtraExtensions.John MacFarlane2013-01-10
| | | | And added markdown_phpextra input/output format.
* Implemented Ext_header_attributes.John MacFarlane2013-01-10
| | | | | | | This allows explicit attributes to be put on headers, using a syntax like that for code blocks: {#id .class .class k=v k=v}
* Ext_header_identifiers -> Ext_auto_identifiers.John MacFarlane2013-01-10
|
* EPUB changes.John MacFarlane2013-01-05
| | | | | | * Epub writer now exports writeEPUB, not writeEPUB2 and writeEPUB3. * Options now exports EPUBVersion * WriterOptions now includes writerEpubVersion.
* Changed --toc-level to --toc-depth.John MacFarlane2013-01-05
|
* Changed `--epub-toc-level` to `--toc-level`.John MacFarlane2013-01-05
| | | | | Also writerEpubTOCLevel -> writerTOCLevel. So far this is only implemented in the EPUB writer.
* Renamed writerEPUBMetadata -> writerEpubMetadata.John MacFarlane2013-01-04
| | | | API change for consistency.
* Added `--epub-chapter-level` and `--epub-toc-level` options.John MacFarlane2013-01-04
| | | | | Also added writerEpubChapterLevel and writerEpubTOCLevel fields to WriterOptions.
* 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.
* Re-added Read instance for ReaderOptions.John MacFarlane2012-10-14
| | | | Requires dev version of citeproc-hs.
* Moved bibliography processing into readers.John MacFarlane2012-10-13
| | | | | | | | | | Previously this was done in src/pandoc.hs, which made it difficult for library users. * Removed readerCitations in ReaderOptions. * Added readerReferences and readerCitationStyle to ReaderOptions. * Moved use of processBiblio from main program to the markdown and LaTeX readers.
* Removed Ext_monospace_autolinks.John MacFarlane2012-09-27
|
* Added Ext_autolink_urls.John MacFarlane2012-09-27
|
* Renamed Ext_autolink_code_spans to Ext_monospace_autolinks.John MacFarlane2012-09-27
|
* Make --id-prefix affect footnote IDs in markdown writer.John MacFarlane2012-09-25
| | | | Closes #614.
* Implemented Ext_backtick_code_blocks.John MacFarlane2012-08-21
| | | | This is the variant github prefers.
* Added Ext_fenced_code_attributes.John MacFarlane2012-08-21
|
* Changed nomenclature, delimited -> fenced code blocks.John MacFarlane2012-08-21
|
* Added Ext_abbrevations for PHP markdown style abbreviation keys.John MacFarlane2012-08-19
| | | | | | Note: pandoc does not have an abbreviation element (yet) and so currently when this extension is enabled, it just causes pandoc to skip the abbrevation keys.
* Added comments in Options.John MacFarlane2012-08-16
|
* Added Ext_raw_html extension.John MacFarlane2012-08-12
| | | | | Closes #556 -- you can now specify markdown-raw_html as your input format. (Read: markdown minus raw_html.)
* Implemented Ext_mmd_title_block in markdown reader & writer.John MacFarlane2012-08-12
|
* Mardkown reader: Implemented Ext_markdown_attribute.John MacFarlane2012-08-11
|
* Revert "Implemented Ext_markdown_attribute."John MacFarlane2012-08-11
| | | | This reverts commit 78d3a0fb9d3f862d5e2b61bd45434f7af9cd9f18.
* Implemented Ext_markdown_attribute.John MacFarlane2012-08-11
| | | | This adds markdown=1 to block tags.
* Options and documentation for backslash tex math options.John MacFarlane2012-08-10
| | | | | Ext_tex_math_single_backslash and Ext_tex_math_double_backslash. Still need to code in reader.
* Changed Ext_tex_math to Ext_tex_math_dollars.John MacFarlane2012-08-10
|
* Removed refs to Ext_header_identifiers in comments.John MacFarlane2012-08-10
|
* 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.