summaryrefslogtreecommitdiff
path: root/src/Text/Pandoc/Readers
Commit message (Collapse)AuthorAge
* Make sure verse blocks can contain empty linesAlbert Krewinkel2015-09-19
| | | | | | | | | | | | The previous verse parsing code made the faulty assumption that empty strings are valid (and empty) inlines. This isn't the case, so lines are changed to contain at least a newline. It would generally be nicer and faster to keep the newlines while splitting the string. However, this would require more code, which seems unjustified for a simple (and fairly rare) block as *verse*. This fixes #2402.
* Merge pull request #2364 from gbataille/bugDocJohn MacFarlane2015-08-17
|\ | | | | [BUG] Haddock : * and ^ to be escaped in docs
| * [BUG] Haddock : * and ^ to be escaped in docsGrégory Bataille2015-08-17
| |
* | RST reader: better handling of indirect roles.John MacFarlane2015-08-15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Previously the parser failed on this kind of case .. role:: indirect(code) .. role:: py(indirect) :language: python :py:`hi` Now it currectly recognizes `:py:` as a code role. The previous test for this didn't work, because the name of the indirect role was the same as the language defined its parent, os it didn't really test for this behavior. Updated test.
* | Merge pull request #2360 from jg/issue-2354John MacFarlane2015-08-15
|\ \ | | | | | | Org reader: add auto identifiers if not present on headers
| * | Org reader: add auto identifiers if not present on headersJuliusz Gonera2015-08-15
| | | | | | | | | | | | | | | | | | | | | Refs #2354 This should also fix the table of contents (--toc) when generating a html file from org input
* | | EPUB reader: stop mangling external URLs.John MacFarlane2015-08-10
|/ / | | | | | | | | | | | | Closes #2284. Note the changes to the test suite. In each case, a mangled external link has been fixed, so these are all positive.
* | MediaWiki reader: handle unquoted table attributes.John MacFarlane2015-08-08
| | | | | | | | Closes #2355.
* | HTML reader: add auto identifiers if not present on headers.John MacFarlane2015-08-08
| | | | | | | | | | | | | | | | This makes TOC linking work properly. The same thing needs to be done to the org reader to fix #2354; in addition, `Ext_auto_identifiers` should be added to the list of default extensions for org in Text.Pandoc.
* | DocBook reader: handle informalexample.John MacFarlane2015-08-08
| | | | | | | | | | | | It is parsed into a Div with class `informalexample`. Closes #2319.
* | LaTeX reader: Implement \Cite.John MacFarlane2015-08-08
| | | | | | | | See #2335.
* | Merge pull request #2327 from hftf/list-styleJohn MacFarlane2015-08-07
|\ \ | |/ |/| HTML Reader: Correctly parse inline list-style(-type) for <ol>
| * HTML Reader: Detect font-variant with pickStyleAttrPropsOphir Lifshitz2015-07-27
| |
| * HTML Reader: Parse <ol> type, class, and inline list-style(-type) CSSOphir Lifshitz2015-07-24
| |
* | Pipe tables: allow indented columns.John MacFarlane2015-07-27
| | | | | | | | | | | | | | | | | | | | Previously the left-hand column could not start with 4 or more spaces indent. This was inconvenient for right-aligned left columns. Note that the first (header column) must still have 3 or fewer spaces indentation, or the table will be treated as an indented code block.
* | Merge pull request #1689 from kuribas/masterJohn MacFarlane2015-07-25
|\ \ | | | | | | Use '=' instead of '#' for atx-style headers in markdown+lhs.
| * | Use '=' instead of '#' for atx-style headers in markdown+lhs.Kristof Bastiaensen2014-10-14
| | |
* | | Added odt readerMarLinn2015-07-23
| |/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fully implemented features: * Paragraphs * Headers * Basic styling * Unordered lists * Ordered lists * External Links * Internal Links * Footnotes, Endnotes * Blockquotes Partly implemented features: * Citations Very basic, but pandoc can't do much more * Tables No headers, no sizing, limited styling
* | Updated tests and removed a skipSpaces....John MacFarlane2015-07-23
| | | | | | | | | | we no longer need it with the change to toKey, and it is expensive to skip spaces after every inline.
* | Merge pull request #2323 from hftf/implicit-header-refsJohn MacFarlane2015-07-23
|\ \ | | | | | | Fix implicit header refs for headers with extra spaces
| * | Markdown Reader: Skip spaces in headersOphir Lifshitz2015-07-23
| | |
* | | LaTeX reader: support abstract environment.John MacFarlane2015-07-23
|/ / | | | | | | The abstract populates an "abstract" metadata field.
* | Fix regression: allow HTML comments containing `--`.John MacFarlane2015-07-21
| | | | | | | | | | | | | | Technically this isn't allowed in an HTML comment, but we've always allowed it, and so do most other implementations. It is handy if e.g. you want to put command line arguments in HTML comments.
* | HTML reader: handle type attribute on ol.John MacFarlane2015-07-21
| | | | | | | | | | | | E.g. `<ol type="i">`. Closes #2313.
* | LaTeX reader: properly handle booktabs lines.John MacFarlane2015-07-21
| | | | | | | | | | | | | | Lines aren't part of the pandoc table model, but we can just ignore them. Closes #2307.
* | Markdown reader: don't allow bare URI links or autolinks in link label.John MacFarlane2015-07-14
| | | | | | | | | | | | Added test cases. Closes #2300.
* | Avoid parsing partial URLs as HTML tags.John MacFarlane2015-07-10
| | | | | | | | Closes #2277.
* | Readers.RST: Factor out inline markup string parsingLars-Dominik Braun2015-07-03
| |
* | Readers.RST: Parse field list nameLars-Dominik Braun2015-07-03
| | | | | | | | | | | | “Inline markup is parsed in field names.” [1] [1] http://docutils.sourceforge.net/docs/ref/rst/restructuredtext.html#field-lists
* | Merge pull request #2250 from PromyLOPh/rsttargetJohn MacFarlane2015-06-29
|\ \ | | | | | | Fix RST reference names with special characters
| * | Fix RST reference names with special charactersLars-Dominik Braun2015-06-29
| | |
* | | LaTeX reader: Allow `_` and `^` as regular inline text.John MacFarlane2015-06-29
| | | | | | | | | | | | | | | | | | | | | | | | Normally these will cause an error in LaTeX, but there are contexts (e.g. `alltt` environments) where they are okay. Now that we aren't treating them as super/subscript outside of math mode, it seems okay to parse them as regular text.
* | | LaTeX reader: don't parse `_`,`^` as super/sub outside math mode.John MacFarlane2015-06-29
|/ /
* | DocBook reader mediaobjects and figures, closes #2184mb212015-06-21
| |
* | HTML reader: allow `<body>` to close `<head>`.John MacFarlane2015-06-04
| |
* | Removed tab chars in Textile reader source.John MacFarlane2015-05-28
| |
* | Merge pull request #2170 from tarleb/org-generalize-result-blockJohn MacFarlane2015-05-26
|\ \ | | | | | | Org generalize result block
| * | Org reader: generalize code block result parsingAlbert Krewinkel2015-05-23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Code blocks can be followed by optional result blocks, representing the output generated by running the code in the code block. It is possible to choose whether one wants to export the code, the result, both or none. This patch allows any kind of `Block` as the result. Previously, only example code blocks were recognized.
| * | Reorder block arguments parsing codeAlbert Krewinkel2015-05-23
| | | | | | | | | | | | | | | | | | Group code used to parse block arguments together in one place. This seems better than having part of the code mixed between unrelated parsing state changing functions.
* | | Org reader: drop trees with a :noexport: tagAlbert Krewinkel2015-05-23
| | | | | | | | | | | | | | | Trees having a `:noexport:` tag set are not exported. This mirrors default Emacs Org-Mode behavior.
* | | Org reader: put header tags into empty spansAlbert Krewinkel2015-05-23
|/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | Org mode allows headers to be tagged: ``` org-mode * Headline :TAG1:TAG2: ``` Instead of being interpreted as part of the headline, the tags are now put into the attributes of empty spans. Spans without textual content won't be visible by default, but they are detectable by filters. They can also be styled using CSS when written as HTML. This fixes #2160.
* | Markdown reader: Made implicit header references case-insensitive.John MacFarlane2015-05-13
| | | | | | | | | | | | | | | | | | Added `stateHeaderKeys` to `ParserState`; this is a `KeyTable` like `stateKeys`, but it only gets consulted if we don't find a match in `stateKeys`, and if `Ext_implicit_header_references` is enabled. Closes #1606.
* | HTML reader: Support base tag.John MacFarlane2015-05-13
| | | | | | | | | | | | | | | | | | We only support the href attribute, as there's no place for "target" in the Pandoc document model for links. Added HTML reader test module, with tests for this feature. Closes #1751.
* | Fixed regression in charsInBalancedBrackets.John MacFarlane2015-05-13
| | | | | | | | | | | | | | | | | | | | | | Introduced by e9d7504. This regression caused link and image references containing raw tex not to parse correctly. Added test. Closes #2150.
* | HTML reader: Fixed detection of self-closing tags.John MacFarlane2015-05-11
| | | | | | | | | | | | | | | | Earlier versions had a bug and would wrongly think opening tags containing attributes with slashes in them were self-closing. Closes #2146.
* | Make sure a closing `</div>` doesn't get included in a defn list item.John MacFarlane2015-05-03
| | | | | | | | Closes #2127.
* | HTML reader: Allow multiple colgroups in table.John MacFarlane2015-04-29
| | | | | | | | Closes #2122.
* | Fixed regression with lists inside defintiion lists.John MacFarlane2015-04-26
| | | | | | | | | | | | | | | | | | | | This fixes a regression (not in any released version) on things like hi : - there Closes #2098.
* | Updated copyright notices to -2015. Closes #2111.John MacFarlane2015-04-26
| |
* | LaTeX reader: recognize `\newpage` as a block command.John MacFarlane2015-04-22
| |