summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAge
* HTML writer: issue warning if no title specified and template used.John MacFarlane2017-03-04
| | | | See #3473.
* Logging: Added NoTitleElement constructor for LogMessage.John MacFarlane2017-03-04
|
* Require skylighting 0.3.1.John MacFarlane2017-03-04
|
* Document that html5 output is polyglot compatible.John MacFarlane2017-03-04
|
* Merge branch 'master' of github.com:jgm/pandocJohn MacFarlane2017-03-04
|\
| * Make default.html5 polyglot markup conformant. (#3473)John Luke Bentley2017-03-04
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Polyglot markup is HTML5 that is also valid XHTML. See <https://www.w3.org/TR/html-polyglot>. With this change, pandoc's html5 writer creates HTML that is both valid HTML5 and valid XHTML. See jgm/pandoc-templates#237 for prior discussion. * Add xml namespace to `<html>` element. * Make all `<meta>` elements self closing. See <https://www.w3.org/TR/html-polyglot/#empty-elements>. * Add `xml:lang` attribute on `<html>` element, defaulting to blank, and always include `lang` attribute, even when blank. See <https://www.w3.org/TR/html-polyglot/#language-attributes>. * Update test files for template changes. The key justification for having language values default to blank: it turns out the HTML5 spec requires it (as I read it). Under [the HTML5 spec, section "3.2.5.3. The lang and xml:lang attributes"](https://www.w3.org/TR/html/dom.html#the-lang-and-xmllang-attributes), providing attributes with blank contents both: * Has meaning, "unknown", and * Is a MUST (written as "must") if a language value is not provided ... > The lang attribute (in no namespace) specifies the primary language > for the element's contents and for any of the element's attributes that > contain text. Its value must be a valid BCP 47 language tag, or the > empty string. Setting the attribute to the empty string indicates that > the primary language is unknown. In short, it seems that where a language value is not provided then a blank value MUST be provided for Polyglot Markup conformance, because the HTML5 spec stipulates a "must". So although the Polyglot Markup spec is unclear on this issue it would seem that if it was correctly written, it would therefore require blank attributes. Further justifications are found at https://github.com/jgm/pandoc-templates/issues/237#issuecomment-275584181 (but the HTML5 spec justification given above would seem to be the clincher). In addition to having lang-values-default-to-blank I recommend that, when an author does not provide a lang value, then upon on pandoc command execution a warning message like the following be provided: > Polyglot markup stipulates that 'The root element SHOULD always specify > the language'. It is therefore recommended you specify a language value in > your source document. See > <https://www.w3.org/International/articles/language-tags/> for valid > language values.
* | OpenDocument writer: Clarified some code.John MacFarlane2017-03-03
|/
* OpenDocument writer: fixed dropped elements in some ordered lists.John MacFarlane2017-03-03
| | | | Closes #2434.
* RST reader: support RST-style citations.John MacFarlane2017-03-03
| | | | | | | | | | | The citations appear at the end of the document as a definition list in a special div with id `citations`. Citations link to the definitions. Added stateCitations to ParserState. Closes #853.
* Docx writer: Don't include bookmarks on headers unless non-null id.John MacFarlane2017-03-03
| | | | Closes #3476.
* Pretty: don't error for blocks of size < 1.John MacFarlane2017-03-03
| | | | | | | | | | Instead, resize to 1. Note, this (together with earlier changes to the Markdown writer) seems to fix #1785. The table renders as garbage, but pandoc now completes the conversion quickly and doesn't get tied up.
* ConTeXt writer: remove unnecessary $ (#3482)Alexander Krotov2017-03-03
|
* RST reader: Handle multiline cells in simple tables.John MacFarlane2017-03-02
| | | | Closes #1166.
* LaTeX writer: add `\leavevmode` before hypertarget at start of paragraph.John MacFarlane2017-03-02
| | | | | | | Closes #2704 (formatting problems in beamer citations). See http://tex.stackexchange.com/questions/22852/function-and-usage-of-leavevmode
* LaTeX writer: use % after hypertarget before code blockJohn MacFarlane2017-03-02
|
* LaTeX writer: minor tweak to hypertarget (semantically irrelevant).John MacFarlane2017-03-02
|
* Removed unnecessary import.John MacFarlane2017-03-02
|
* Bumped syb upper bound.John MacFarlane2017-03-02
|
* Markdown reader: when splitting pipe table cells, skip tex math.John MacFarlane2017-03-02
| | | | | | | | You might have a `|` character inside math. (Or for that matter something that the parser might mistake for raw HTML.) See #3481.
* LaTeX writer: always add hypertarget when there's a non-empty identifier.John MacFarlane2017-03-01
| | | | | Previously the hypertargets were only added when there was actually a link to that identifier. Closes #2719.
* LaTeX reader: don't drop contents of \hypertarget.John MacFarlane2017-03-01
|
* Writers: Use gets to access MonadState where possible (#3480)Alexander Krotov2017-03-01
|
* Markdown writer: Fixed grid tables embedded in grid tables.John MacFarlane2017-03-01
| | | | Closes #2834.
* Markdown writer: Refactored gridTable to use widths in chars.John MacFarlane2017-03-01
|
* Fixed typos in CONTRIBUTING.md (#3479)Wandmalfarbe2017-03-01
|
* ODT writer: calculate aspect ratio for percentage-sized images (#3478)Mauro Bieg2017-03-01
| | | closes #3239
* RST reader: implemented implicit internal header links.John MacFarlane2017-02-28
| | | | Cloess #3475.
* Removed `--epub-stylesheet`; use `--css` instead.John MacFarlane2017-02-27
| | | | | | | | | | | | * Removed writerEpubStylesheet in WriterOptions. * Removed `--epub-stylesheet` option. * Allow `--css` to be used with epub. * Allow multiple stylesheets to be used. * Stylesheets will be taken both from `--css` and from the `stylesheet` metadata field (which can contain either a file path or a list of them). Closes #3472, #847.
* LaTeX reader: Handle komascript `\dedication`.John MacFarlane2017-02-27
| | | | | | | | It now adds a `dedication` field to metadata. It is up to the user to supply a template that uses this variable. Closes #1845.
* Added issue and PR template for data/templates.John MacFarlane2017-02-27
| | | | Direct users to open issues in jgm/pandoc, not jgm/pandoc-templates.
* Merge commit 'ce8226f1a7d64da56117d2f7f351e06225a84614'John MacFarlane2017-02-27
|\
| * Merge commit '9e52ac6bb02afd7b4ed5dad61021a1fa33051203' as 'data/templates'John MacFarlane2017-02-20
| |\
| | * Merge pull request #245 from twsh/titlegraphiclogoJohn MacFarlane2017-02-06
| | |\ | | | | | | | | Add options for title graphic and logo
| | | * Add options for title graphic and logoThomas Hodgson2017-02-06
| | | | | | | | | | | | Allow specification of a title graphic and/or logo for Beamer.
| | * | Merge pull request #244 from twsh/dvipsnamesJohn MacFarlane2017-02-06
| | |\ \ | | | | | | | | | | Added dvipsnames option for colorlinks
| | | * | Added dvipsnames option for colorlinksThomas Hodgson2017-02-06
| | | |/ | | | | | | | | This defines Maroon, among other colours.
| | * | Merge pull request #234 from wilx/master-use-unicode-mathJohn MacFarlane2017-02-06
| | |\ \ | | | | | | | | | | Use `unicode-math`.
| | | * | LaTeX: Add missing $endif$ after rebase.Vaclav Haisman2017-02-06
| | | | |
| | | * | LaTeX: Don't load `fontspec` before `unicode-math`Vaclav Haisman2017-02-06
| | | | | | | | | | | | | | | | | | | | | | | | | The `unicode-math` package loads `fontspec` so explict loading of `fontspec` before `unicode-math` is not necessary.
| | | * | Use `unicode-math`.Vaclav Haisman2017-02-06
| | |/ / | | | | | | | | | | | | Use `mathspec` with only XeLaTeX on request.
| | * | Merge branch 'typeclass'John MacFarlane2017-01-29
| | |\ \
| | | * | Rename default.docbook -> default.docbook4.John MacFarlane2017-01-26
| | | | |
| | | * | Moved default.epub -> default.epub2.John MacFarlane2017-01-26
| | | | |
| | | * | Rename default.html -> default.html4.John MacFarlane2017-01-25
| | | | |
| | * | | Merge pull request #241 from wilx/master-geometry-after-hyperrefJohn MacFarlane2017-01-29
| | |\ \ \ | | | |/ / | | |/| | LaTeX: Load geometry package after hyperref.
| | | * | LaTeX: Remove comment entirely.Vaclav Haisman2017-01-29
| | | | | | | | | | | | | | | | | | | | Remove comment about `geometry` and `hyperref` entirely.
| | | * | Redact comment.Vaclav Haisman2017-01-28
| | | | |
| | | * | LaTeX: Load geometry package after hyperref.Vaclav Haisman2017-01-28
| | |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | This implements suggestion from geometry package manual section 9 Known problems: > With mag =ΜΈ 1000, no truedimen and hyperref, hyperref should be loaded > before geometry. Otherwise the resulted PDF size will become wrong.
| | * | Merge pull request #239 from Wandmalfarbe/masterJohn MacFarlane2017-01-25
| | |\ \ | | | | | | | | | | Copied a few changes from default.latex to default.beamer
| | | * | Copied a few changes from default.latex to default.beamerWandmalfarbe2017-01-24
| | |/ /