summaryrefslogtreecommitdiff
path: root/src/Text
AgeCommit message (Collapse)Author
2017-06-11Don't allow backslash + newline to affect block structure.John MacFarlane
Note that as a result of this change, the following, which formerly produced a header with two lines separated by a line break, will now produce a header followed by a paragraph: # Hi\ there This may affect some existing documents that relied on this undocumented and unintended behavior. This change makes pandoc more consistent with other Markdown implementations, and with itself (since the two-space version of a line break doesn't work inside ATX headers, and neither version works inside Setext headers). Closes #3730.
2017-06-11Properly decode source from stdin.John MacFarlane
This should fix the appveyor failures.
2017-06-11Rewrote HTML reader to use Text throughout.John MacFarlane
- Export new NamedTag class from HTML reader. - Effect on memory usage is modest (< 10%).
2017-06-11Support for \faCheck and \faClose (#3727)schrieveslaach
2017-06-11Switched Writer types to use Text.John MacFarlane
* XML.toEntities: changed type to Text -> Text. * Shared.tabFilter -- fixed so it strips out CRs as before. * Modified writers to take Text. * Updated tests, benchmarks, trypandoc. [API change] Closes #3731.
2017-06-10Writers.Shared: metaToJSON, generalized type so it can take a Text.John MacFarlane
Previously a String was needed as argument; now any ToJSON instance will do. API change.
2017-06-10Writers: changed StringWriter -> TextWriter.John MacFarlane
2017-06-10Changed all readers to take Text instead of String.John MacFarlane
Readers: Renamed StringReader -> TextReader. Updated tests. API change.
2017-06-10Readers: Changed StringReader -> TextReader.John MacFarlane
2017-06-10UTF8: export fromText, fromTextLazy.John MacFarlane
2017-06-10App: change readSource(s) to use Text instead of String.John MacFarlane
2017-06-10UTF8: export toText, toTextLazy.John MacFarlane
Define toString, toStringLazy in terms of them.
2017-06-10Rewrote convertTabs to use Text not String.John MacFarlane
2017-06-03Improve code style in lua and org modulesAlbert Krewinkel
2017-06-03Org reader: apply hlint suggestionsAlbert Krewinkel
2017-06-02hlint suggestions.John MacFarlane
2017-06-02Fixed keywords in docx writer.John MacFarlane
(See #3719)
2017-06-02Merge pull request #3719 from iandol/patch-2John MacFarlane
Add keywords metadata to docx core.xml document properties
2017-06-02Fixed HTML reader.John MacFarlane
2017-06-02Add keywords metadata to docx document propertiesIan
Hi, I don't know haskell so possibly this is wrong, but DOCX stores keywords in cp:keywords in core.xml, and this should be easy to add from the pandoc metadata (I copy and paste the author code). As far as I can tell (no clear documentation, just a few refs), keywords should be separated with a comma.
2017-06-01HTML reader: Use sets instead of lists for block tag lookup.John MacFarlane
2017-06-01HTML reader: Removed "button" from block tag list.John MacFarlane
It is already in the eitherBlockOrInlineTag list, and should be both places. Closes #3717. Note: the result of this change is that there will be p tags around the whole paragraph. That is the right result, because the `button` tags are treated as inline HTML here, and the whole chunk of text is a Markdown paragraph.
2017-06-01HTML writer: Avoid two class attributes when adding 'uri' class.John MacFarlane
Closes #3716.
2017-06-01Some hlint refactoring.John MacFarlane
2017-06-01Trivial reformatting.John MacFarlane
2017-06-01Use isNothing.John MacFarlane
2017-06-01Trivial renaming.John MacFarlane
2017-06-01Markdown writer: Avoid inline surround-marking with empty content.John MacFarlane
E.g. we don't want `<strong></strong>` to become `****`. Similarly for emphasis, super/subscript, strikeout. Closes #3715.
2017-06-01LaTeX reader: handle some width specifiers on table columns.John MacFarlane
Currently we only handle the form `0.9\linewidth`. Anything else would have to be converted to a percentage, using some kind arbitrary assumptions about line widths. See #3709.
2017-06-01LaTeX reader: more table refactoring.John MacFarlane
2017-06-01LaTeX reader: Small refactoring of table parsing code.John MacFarlane
This makes room for doing something with widths.
2017-06-01LaTeX reader: Handle block structure inside table cells.John MacFarlane
minipage is no longer required. Closes #3709.
2017-06-01Merge pull request #3714 from tarleb/odt-reader-cleanupJohn MacFarlane
Odt reader: remove dead code
2017-05-31Org reader: respect export option for tagsAlbert Krewinkel
Tags are appended to headlines by default, but will be omitted when the `tags` export option is set to nil. Closes: #3713
2017-05-31Org reader: include tags in headlinesAlbert Krewinkel
The Emacs default is to include tags in the headline when exporting. Instead of just empty spans, which contain the tag name as attribute, tags are rendered as small caps and wrapped in those spans. Non-breaking spaces serve as separators for multiple tags.
2017-05-31Org reader: recognize babel result blocks with attributesAlbert Krewinkel
Babel result blocks can have block attributes like captions and names. Result blocks with attributes were not recognized and were parsed as normal blocks without attributes. Fixes: #3706
2017-05-31Org reader: fix module names in haddock commentsAlbert Krewinkel
Copy-pasting had lead to haddock module descriptions containing the wrong module names.
2017-05-31Odt reader: remove dead codeAlbert Krewinkel
The ODT reader contained a lot of general code useful for working with arrows. However, many of these utils weren't used and are hence removed.
2017-05-30Added eastAsianLineBreakFilter to Shared.John MacFarlane
This used to live in the Markdown reader.
2017-05-29LaTeX reader: handle escaped & inside table cell.John MacFarlane
Closes #3708.
2017-05-29LaTeX reader: don't crash on empty enumerate environment.John MacFarlane
Closes #3707.
2017-05-29Merge pull request #3704 from labdsf/anylinenewlineJohn MacFarlane
Markdown reader: use anyLineNewline
2017-05-28Markdown reader: use anyLineNewlineAlexander Krotov
2017-05-28Org reader: Fix cite parsing behaviourHerwig Stuetz
Until now, org-ref cite keys included special characters also at the end. This caused problems when citations occur right before colons or at the end of a sentence. With this change, all non alphanumeric characters at the end of a cite key are ignored. This also adds `,` to the list of special characters that are legal in cite keys to better mirror the behaviour of org-export.
2017-05-28Parsing: `many1Till`: Check for the end condition before parsingHerwig Stuetz
By not checking for the end condition before the first parse, the parser was applied too often, consuming too much of the input. This fixes the behaviour of `testStringWith (many1Till (oneOf "ab") (string "aa")) "aaa"` which before incorrectly returned `Right "a"`. With this change, it instead correctly fails with `Left (PandocParsecError ...)` because it is not able to parse at least one occurence of `oneOf "ab"` that is not `"aa"`. Note that this only affects `many1Till p end` where `p` matches on a prefix of `end`.
2017-05-28RST reader: use anyLineNewline in rawListItem (#3702)Alexander Krotov
2017-05-27Markdown writer: changes to `--reference-links`.John MacFarlane
With `--reference-location` of `section` or `block`, pandoc will now repeat references that have been used in earlier sections. The Markdown reader has also been modified, so that *exactly* repeated references do not generate a warning, only references with the same label but different targets. The idea is that, with references after every block, one might want to repeat references sometimes. Closes #3701.
2017-05-27Pretty: Eq instance for Doc.John MacFarlane
2017-05-27Org reader: subject full doc tree to headline transformationsAlbert Krewinkel
Emacs parses org documents into a tree structure, which is then post-processed during exporting. The reader is changed to do the same, turning the document into a single tree of headlines starting at levelĀ 0. Fixes: #3695
2017-05-26HTML writer: Removed unused parameter in dimensionsToAttributeList.John MacFarlane