summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAge
* Windows build: create pandoc-citeproc on appveyor, so we can put in msi.John MacFarlane2016-06-03
| | | | Updated stackage resolver.
* appveyor: Fixed spacing issue in VERSION setting.John MacFarlane2016-06-03
|
* appveyor: another attempt to get version set!John MacFarlane2016-06-03
|
* appveyor: another try at setting version.John MacFarlane2016-06-03
|
* Updated changelogJohn MacFarlane2016-06-03
|
* Merge pull request #2962 from tarleb/org-more-export-settingsJohn MacFarlane2016-06-03
|\ | | | | Org reader: support more export settings
| * Org reader: support special strings export optionAlbert Krewinkel2016-06-03
| | | | | | | | | | Parsing of special strings (like '...' as ellipsis or '--' as en dash) can be toggled using the `-` option.
| * Org reader: support emphasized text export optionAlbert Krewinkel2016-06-03
| | | | | | | | | | | | | | Parsing of emphasized text can be toggled using the `*` option. This influences parsing of text marked as emphasized, strong, strikeout, and underline. Parsing of inline math, code, and verbatim text is not affected by this option.
| * Org reader: support smart quotes export optionAlbert Krewinkel2016-06-03
| | | | | | | | Reading of smart quotes can be toggled using the `'` option.
| * Org reader: drop unused field from parser stateAlbert Krewinkel2016-06-02
| | | | | | | | | | | | | | | | | | The `OrgParserState` contained both an `orgStateMeta` and `orgStateMeta'` field, the former for plain meta information and the latter for F-monad wrapped meta info. The plain meta info is only used to make `OrgParserState` an instance of the `HasMeta` class, which in turn is never used in the reader. The (F Meta) version is hence renamed to the "un-primed" version while the other one is dropped.
| * Org reader: undo code duplicationAlbert Krewinkel2016-06-02
| | | | | | | | | | | | | | | | Some code was duplicated (copy-pasted) or placed in an inappropriate module during the modularization refactoring. Those functions are moved into a `Shared` module, as was originally intended but forgotten. Better documentation of the respective functions is a positive side-effect.
* | appveyor: Fixed version detection.John MacFarlane2016-06-02
| |
* | appveyor: cache wixbin directory.John MacFarlane2016-06-02
| |
* | appveyor: maybe fixed escaping.John MacFarlane2016-06-02
| |
* | Fixed YAML for appveyor.yml.John MacFarlane2016-06-02
| |
* | appveyor: fixed set command.John MacFarlane2016-06-02
| |
* | appveyor: put wix path in quotes.John MacFarlane2016-06-02
| |
* | appveyor: another attempt to get wix paths right.John MacFarlane2016-06-02
| |
* | appveyor.yml: try to get paths for candle and light right.John MacFarlane2016-06-02
| |
* | appveyor: try to create msi as artifact.John MacFarlane2016-06-02
| |
* | Updated changelog.John MacFarlane2016-06-02
|/
* Merge pull request #2950 from tarleb/org-ref-supportJohn MacFarlane2016-05-31
|\ | | | | Org reader: support org-ref style citations
| * Org reader: support org-ref style citationsAlbert Krewinkel2016-05-27
| | | | | | | | | | | | The *org-ref* package is an org-mode extension commonly used to manage citations in org documents. Basic support for the `cite:citeKey` and `[[cite:citeKey][prefix text::suffix text]]` syntax is added.
* | Merge pull request #2954 from tarleb/org-export-blocksJohn MacFarlane2016-05-31
|\ \ | | | | | | Org export blocks
| * | Org reader: support new syntax for export blocksAlbert Krewinkel2016-05-29
| | | | | | | | | | | | | | | | | | | | | Org-mode version 9 usees a new syntax for export blocks. Instead of `#+BEGIN_<FORMAT>`, where `<FORMAT>` is the format of the block's content, the new format uses `#+BEGIN_export <FORMAT>` instead. Both types are supported.
| * | Org reader: refactor BEGIN…END block parsingAlbert Krewinkel2016-05-29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Reorder functions, grouping related functions together. - Demote simple functions to local functions if they are used just once. - Rename and document functions to increase code readability. - Fix handling of whitespace in blocks, allowing content to be indented less then the block header.
| * | Org reader: rename `parseInlines` to `inlines`Albert Krewinkel2016-05-29
| |/ | | | | | | | | | | Having a function starting with `parse` in a parsing library is overly redundant. Let's use a nicer, shorter name more in line with the rest of the library.
* | brazilian -> brazil for polyglossia.John MacFarlane2016-05-31
|/ | | | Closes #2953.
* Merge pull request #2946 from tarleb/org-modularizationJohn MacFarlane2016-05-25
|\ | | | | Org-mode reader modularization
| * Org reader: extract blocks parser to moduleAlbert Krewinkel2016-05-25
| | | | | | | | | | | | Block parsing code is moved to a separate module. This is part of the Org-mode reader cleanup effort.
| * Org reader: extract inline parser to moduleAlbert Krewinkel2016-05-25
| | | | | | | | | | | | | | Inline parsing code is moved to a separate module. Parsers for block starts are extracted as well, as those are used in the `endline` parser. This is part of the Org-mode reader cleanup effort.
| * Org reader: extract parsing function to moduleAlbert Krewinkel2016-05-25
|/ | | | | | | | | | | | The Org-mode reader uses many functions defined in the `Text.Pandoc.Parsing` utility module. Some of the functions are overwritten with versions adapted to Org-mode idiosyncrasies. These special functions, as well as the normal Pandoc versions, are combined in a single module to increase the ease of use. This leads to decoupling of Org-mode and Pandoc and hence to slightly cleaner code. The downside is code-bloat due to repeated import/export statements.
* Merge pull request #2942 from mb21/epub-readerJohn MacFarlane2016-05-24
|\ | | | | EPUB Reader: normalise Link id as well
| * EPUB Reader: normalise Link id as wellmb212016-05-24
|/
* Updated changelog.John MacFarlane2016-05-23
|
* RELEASE-CHECKLIST - hint for more useful git log.John MacFarlane2016-05-23
|
* Merge pull request #2941 from tarleb/org-drawer-improvementsJohn MacFarlane2016-05-23
|\ | | | | Org drawer improvements
| * Org writer: add drawer capabilityCarlos Sosa2016-05-23
| | | | | | | | | | | | | | | | | | | | | | | | For the implementation of the Drawer element in the Org Writer, we make use of a generic Block container with attributes. The presence of a `drawer` class defines that the `Div` constructor is a drawer. The first class defines the drawer name to use. The key-value list in the attributes defines the keys to add inside the Drawer. Lastly, the list of Block elements contains miscellaneous blocks elements to add inside of the Drawer. Signed-off-by: Albert Krewinkel <albert@zeitkraut.de>
| * Org reader: respect drawer export settingAlbert Krewinkel2016-05-23
| | | | | | | | | | The `d` export option can be used to control which drawers are exported and which are discarded. Basic support for this option is added here.
| * Org reader/writer: use CUSTOM_ID in propertiesAlbert Krewinkel2016-05-22
| | | | | | | | | | | | | | | | | | The `ID` property is reserved for internal use by Org-mode and should not be used. The `CUSTOM_ID` property is to be used instead, it is converted to the `ID` property for certain export format. The reader and writer erroneously used `ID`. This is corrected by using `CUSTOM_ID` where appropriate.
* | Bumped upper-bounds to build with ghc 8.John MacFarlane2016-05-22
|/
* HTML reader: fixed bug in pClose.John MacFarlane2016-05-21
| | | | | This caused exponential parsing behavior in documnets with unclosed tags in dl, dd, dt.
* Merge pull request #2934 from tarleb/org-properties-drawerJohn MacFarlane2016-05-20
|\ | | | | Org properties drawer
| * Org writer: add :PROPERTIES: drawer supportAlbert Krewinkel2016-05-20
| | | | | | | | | | | | | | | | | | This allows header attributes to be added to org documents in the form of `:PROPERTIES:` drawers. All available attributes are stored as key/value pairs. This reflects the way the org reader handles `:PROPERTIES:` blocks. This closes #1962.
| * Org reader: add :PROPERTIES: drawer supportAlbert Krewinkel2016-05-20
|/ | | | | | | | | | | | | | Headers can have optional `:PROPERTIES:` drawers associated with them. These drawers contain key/value pairs like the header's `id`. The reader adds all listed pairs to the header's attributes; `id` and `class` attributes are handled specially to match the way `Attr` are defined. This also changes behavior of how drawers of unknown type are handled. Instead of including all unknown drawers, those are not read/exported, thereby matching current Emacs behavior. This closes #1877.
* Added pandoc-citeproc to stack-appveyor.yaml extra-deps.John MacFarlane2016-05-19
|
* LaTeX template: support for custom font families.John MacFarlane2016-05-19
| | | | | | | | | | | | | | | | Needed for correct polyglossia operation with Cyrillic fonts and perhaps can find some other usages. Example usage in YAML metadata: ``` fontfamilies: - name: \cyrillicfont font: Liberation Serif - name: \cyrillicfonttt options: Scale=MatchLowercase font: Liberation ``` (vladipus)
* Merge pull request #2927 from tarleb/org-attr-htmlJohn MacFarlane2016-05-19
|\ | | | | Org reader support for ATTR_HTML statements
| * Org reader: add support for ATTR_HTML attributesAlbert Krewinkel2016-05-19
| | | | | | | | | | | | | | | | | | | | | | Arbitrary key-value pairs can be added to some block types using a `#+ATTR_HTML` line before the block. Emacs Org-mode only includes these when exporting to HTML, but since we cannot make this distinction here, the attributes are always added. The functionality is now supported for figures. This closes #1906.
| * Org reader: use custom `anyLine`Albert Krewinkel2016-05-19
| | | | | | | | | | | | | | | | | | | | | | | | | | Additional state changes need to be made after a newline is parsed, otherwise markup may not be recognized correctly. This fixes a bug where markup after certain block-types would not be recognized. E.g. `/emph/` in the following snippet was not parsed as emphasized. foo # comment /emph/