aboutsummaryrefslogtreecommitdiff
path: root/src/Text
AgeCommit message (Collapse)Author
2013-08-02Markdown & RST writers: Omit 'references' from metadata block at top.issue771John MacFarlane
Otherwise we get references repeated in two places.
2013-08-02Biblio: Put bibliography in 'references' metadata field.John MacFarlane
(Instead of just tacking it on to the end of the document.) This will require changes in default templates (addition of 'references' field) and possibly a special-case for 'references' in the writers that write all metadata fields (assuming we don't want the entire bibliography repeated at the beginning of a document in e.g. reST).
2013-08-02Biblio: Don't interfere with Notes that aren't citation notes.John MacFarlane
Closes #898: notes not generated from citations were being adjusted (first letter capitalized, for example, against author's intentions).
2013-08-02Biblio: Override citeproc-hs's endWithPunct.John MacFarlane
The new version correctly sees a sentence ending in '.)' as ending with punctuation. This fixes a bug which led such sentences to receive an extra period at the end: '.).'. Thanks to Steve Petersen for reporting.
2013-07-30Fixed compilation with http-conduit flag False.John MacFarlane
2013-07-29Markdown atx headers: Allow `.` or `)` after `#` if no `fancy_lists`.John MacFarlane
2013-07-26Beamer: add allowframebreaks to slide if set in header classes.John MacFarlane
It's recommended that your bibliography slide have this attribute: # References {.allowframebreaks} This causes multiple slides to be created if necessary, depending on the length of the bibliography.
2013-07-25LaTeX writer: Change `\` to `/` in paths.John MacFarlane
`/` works even on Windows in LaTeX. `\` will cause major problems if unescaped.
2013-07-25LaTeX reader: Support `\v{}` for hacek.John MacFarlane
Closes #926.
2013-07-25Textile reader: Improved handling of `<pre>` blocks.John MacFarlane
* Closed #927 (a bug in which `<pre>` in certain contexts was not recognized as a code block). * Remove internal HTML tags in code blocks, rather than printing them verbatim. * Parse attributes on `<pre>` tag for code blocks.
2013-07-23Text.Pandoc: Added readJSON, writeJSON to the API.John MacFarlane
Closes #817.
2013-07-21Biblio: Tweaks to improve default behavior.John MacFarlane
* A suffix beginning with a digit gets 'p' inserted before it before passing to citeproc-hs, so that bare numbers are treated as page numbers by default. * A suffix not beginning with punctuation has a space added at the beginning (rather than a comma and space, as was done before). * This adding occurs not just in author-in-text citations, but in all citations. The result of these changes (and the last commit) is that `\citep[23]{item1}` in LaTeX will be interpreted properly, with '23' treated as a locator of type 'page'.
2013-07-21LaTeX reader: Don't add spurious ", " to citation suffixes.John MacFarlane
This is added when needed in Text.Pandoc.Biblio anyway.
2013-07-20Markdown reader: Improved strong/emph parsing.John MacFarlane
Using technique from github.com/jgm/Markdown. The new parsing algorithm requires no backtracking, and no keeping track of nesting levels. It will give different results in some edge cases but should not affect most people.
2013-07-20PDF generation improvements.John MacFarlane
* `Text.Pandoc.PDF` exports `makePDF` instead of `tex2pdf`. (API change.) * `makePDF` walks the pandoc AST and checks for the existence of images in the local directory. If they are not found, it attempts to find them, either in the directory containing the first source file, or at an absolute URL, or at a URL relative to the base URL of the first command line argument. * Closes #917.
2013-07-18Text.Pandoc.PDF: put temporary output directory in TEXINPUTS.John MacFarlane
This will help later when we try to download external resources. We can put them in the temp directory. See #917.
2013-07-18Fixed warning.John MacFarlane
2013-07-18Improved fetching of external resources.John MacFarlane
* In Shared, openURL and fetchItem now return an Either, for better error handling. (API change.) * Better error message when fetching a URL fails with `--self-contained`. * EPUB writer: If resource not found, skip it, as in Docx writer. * Closes #916.
2013-07-17Added `ignore_line_breaks` markdown extension.John MacFarlane
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.
2013-07-16Text.Pandoc.ImageSize: Handle EPS.John MacFarlane
Closes #903. This change will make EPS images properly sized on conversion to Word.
2013-07-16HTML reader: read widths from col tags if present.John MacFarlane
Closes #893.
2013-07-16HTML reader: Handle non-simple tables (#893).John MacFarlane
Column widths are divided equally. TODO: Get column widths from col tags if present.
2013-07-16HTML reader: Generalized table parser.John MacFarlane
This commit doesn't change the present behavior at all, but it will make it easier to support non-simple tables in the future.
2013-07-14Fixing wrong numbered-list indentation in open document formatAlexander Kondratskiy
2013-07-13Docx writer: Make `--no-highlight` work properly.John MacFarlane
2013-07-13Checking options before applying syntax highlighting for HTML outputAlexander Kondratskiy
2013-07-12Docx writer: Ignore most components of reference.docx.John MacFarlane
We take the word/styles.xml, docProps/app.xml, word/theme/theme1.xml, and word/fontTable.xml from reference.docx, ignoring everything else. Perhaps this will help with the corruption problems caused when different versions of Word resave the reference.docx and reorganize things.
2013-07-04cabal: Added http-conduit flag, which allows fetching https resources.John MacFarlane
It also brings in a large number of dependencies (http-conduit and its dependencies), which is why for now it is an optional flag. Closes #820.
2013-07-04Docx writer: Use w:br with w:type 'textWrapping' for linebreaks.John MacFarlane
Previously we used w:cr. I don't see a difference between these in my version of Word, but apparently some do. Closes #873.
2013-07-04Text.Pandoc.UTF8: Use strict bytestrings in reading.John MacFarlane
The use of lazy bytestrings seemed to cause problems using pandoc on Windows 7/8 64-bit machines. Closes #874.
2013-07-04LaTeX writer: Don't use ligatures in escaping inline code.John MacFarlane
2013-07-02Rename `Ext_yaml_title_block` -> `Ext_yaml_metadata_block`.John MacFarlane
2013-07-02Markdown writer: Changed condition for rendering title block.John MacFarlane
Previously it was only rendered if title, author, or date set. Now any metadata field can be set.
2013-07-02Markdown reader: Better error messages for yaml headers.John MacFarlane
2013-07-02Fixed bug retrieving default template for markdown variants.John MacFarlane
2013-07-02Write full metadata in MMD style title blocks.John MacFarlane
2013-07-01Markdown reader: Ignore fields ending with _ in YAML headers.John MacFarlane
2013-07-01Emit warning instead of failing on invalid YAML header.John MacFarlane
2013-07-01Markdown writer: Commas are okay in plain yaml scalars.John MacFarlane
It's just commas with brackets that can cause problems.
2013-07-01Markdown writer: Render yaml title block fields in alpha order.John MacFarlane
This makes the output predictable; previously it varied across implementations.
2013-07-01Added Text.Pandoc.Writers.Shared to repository.John MacFarlane
This should have been in last commit.
2013-07-01Created Text.Pandoc.Writers.Shared, improved metaToJSON.John MacFarlane
* 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.
2013-07-01Improvements to yaml title block writer.John MacFarlane
2013-07-01Shared: Export getField.John MacFarlane
2013-07-01Revert "Markdown writer: Don't include variables in metadata."John MacFarlane
This reverts commit 0ec8573347d53e0cba70552a50dba697f39216b6.
2013-07-01Markdown writer: Don't include variables in metadata.John MacFarlane
2013-06-30Markdown writer: Support yaml title block.John MacFarlane
2013-06-29Metadata changes: Variables now completely shadow metadata.John MacFarlane
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.
2013-06-28ConTeXt writer: Properly handle tables without captions.John MacFarlane
The old output only worked in MkII. This should work in MkIV as well. Closes #837.
2013-06-27Custom writer: Pass full metadata, not just tit/auth/date.John MacFarlane