summaryrefslogtreecommitdiff
path: root/src/Text/Pandoc/Readers/Org/Inlines.hs
Commit message (Collapse)AuthorAge
* Org reader: fix smart parsing behaviorAlbert Krewinkel2017-05-18
| | | | | | | | | | | | | | | | Parsing of smart quotes and special characters can either be enabled via the `smart` language extension or the `'` and `-` export options. Smart parsing is active if either the extension or export option is enabled. Only smart parsing of special characters (like ellipses and en and em dashes) is enabled by default, while smart quotes are disabled. This means that all smart parsing features will be enabled by adding the `smart` language extension. Fine-grained control is possible by leaving the language extension disabled. In that case, smart parsing is controlled via the aforementioned export OPTIONS only. Previously, all smart parsing was disabled unless the language extension was enabled.
* Update dates in copyright noticesAlbert Krewinkel2017-05-13
| | | | | This follows the suggestions given by the FSF for GPL licensed software. <https://www.gnu.org/prep/maintain/html_node/Copyright-Notices.html>
* Org reader: support macrosAlbert Krewinkel2017-05-06
| | | | Closes: #3401
* Add returnF to Text.Pandoc.ParsingAlexander Krotov2017-04-30
|
* Org reader: stop adding rundoc prefix to src paramsAlbert Krewinkel2017-04-23
| | | | | | | | | | | Source block parameter names are no longer prefixed with *rundoc*. This was intended to simplify working with the rundoc project, a babel runner. However, the rundoc project is unmaintained, and adding those markers is not the reader's job anyway. The original language that is specified for a source element is now retained as the `data-org-language` attribute and only added if it differs from the translated language.
* Org reader: allow emphasized text to be followed by `[`Albert Krewinkel2017-04-16
| | | | Closes: #3577
* Stylish-haskell automatic formatting changes.John MacFarlane2017-03-04
|
* Removed --parse-raw and readerParseRaw.John MacFarlane2017-02-06
| | | | | | | | | | | | | | | | | | | | | | | These were confusing. Now we rely on the +raw_tex or +raw_html extension with latex or html input. Thus, instead of --parse-raw -f latex we use -f latex+raw_tex and instead of --parse-raw -f html we use -f html+raw_html
* Removed readerSmart and the --smart option; added Ext_smart extension.John MacFarlane2017-01-25
| | | | | | | | | | | | | | | | | Now you will need to do -f markdown+smart instead of -f markdown --smart This change opens the way for writers, in addition to readers, to be sensitive to +smart, but this change hasn't yet been made. API change. Command-line option change. Updated manual.
* Working on readers.Jesse Rosenthal2017-01-25
|
* Remove pipe char irking the haddock coverage toolAlbert Krewinkel2017-01-06
| | | | | | Haddock documentation strings must be associated with functions. Remove pipe char from a comment that was moved into a `do` block in `Readers/Org/Inlines.hs`.
* Org reader: accept org-ref citations followed by commasAlbert Krewinkel2017-01-06
| | | | | Bugfix for an issue which, whenever the citation was immediately followed by a comma, prevented correct parsing of org-ref citations.
* Org reader: ensure emphasis markup can be nestedAlbert Krewinkel2017-01-05
| | | | | Nested emphasis markup (e.g. `/*strong and emphasized*/`) was interpreted incorrectly in that the inner markup was not recognized.
* Org reader: Ensure images in paragraphs are not parsed as figuresAlbert Krewinkel2016-11-19
| | | | | This fixes a regression introduced in 7e5220b57c5a48fabe6e43ba270db812593d3463.
* Fix grouping of imports.Jesse Rosenthal2016-09-02
| | | | | | Some source files keep imports in tidy groups. Changing `Text.Pandoc.Compat.Monoid` to `Data.Monoid` could upset that. This restores tidiness.
* Remove Compat.MonoidJesse Rosenthal2016-09-02
| | | | | This was only necessary for GHC versions with base below 4.5 (i.e., ghc < 7.4).
* Org reader: ensure image sources are proper linksAlbert Krewinkel2016-08-09
| | | | | | | | | | | | | Image sources as those in plain images, image links, or figures, must be proper URIs or relative file paths to be recognized as images. This restriction is now enforced for all image sources. This also fixes the reader's usage of uncleaned image sources, leading to `file:` prefixes not being deleted from figure images (e.g. `[[file:image.jpg]]` leading to a broken image `<img src="file:image.jpg"/>) Thanks to @bsag for noticing this bug.
* Org reader: fix parsing of verbatim inlinesAlbert Krewinkel2016-07-14
| | | | | | | | | | Org rules for allowed characters before or after markup chars were not checked for verbatim text. This resultet in wrong parsing outcomes of if the verbatim text contained e.g. space enclosed markup characters as part of the text (`=is_substr = True=`). Forcing the parser to update the positions of allowed/forbidden markup border characters fixes this. This fixes #3016.
* Org reader: remove partial functionsAlbert Krewinkel2016-06-21
| | | | | | | Partial functions like `head` lead to avoidable errors and should be avoided. They are replaced with total functions. This fixes #2991.
* Org reader: support arbitrary raw inlinesAlbert Krewinkel2016-06-13
| | | | | | | Org mode allows arbitrary raw inlines ("export snippets" in Emacs parlance) to be included as `@@format:raw foreign format text@@`. Support for this features is added to the Org reader.
* Org reader: add support for "Berkeley-style" citesAlbert Krewinkel2016-06-05
| | | | | | | | | A specification for an official Org-mode citation syntax was drafted by Richard Lawrence and enhanced with the help of others on the orgmode mailing list. Basic support for this citation style is added to the reader. This closes #1978.
* Org reader: add semicolon to list of special charsAlbert Krewinkel2016-06-05
| | | | | | | | | | Semicolons are used as special characters in citations syntax. This ensures the correct parsing of Pandoc-style citations: [prefix; @key; suffix] Previously, parsing would have failed unless there was a space or other special character as the last <prefix> character.
* 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: 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.
* 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.
* | 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.
* 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.