summaryrefslogtreecommitdiff
path: root/src/Text/Pandoc/Readers/Textile.hs
Commit message (Collapse)AuthorAge
* Textile reader: fix bug for certain links in table cells.John MacFarlane2017-05-15
| | | | Closes #3667.
* 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>
* Stylish-haskell automatic formatting changes.John MacFarlane2017-03-04
|
* Use new warnings throughout the code base.John MacFarlane2017-02-11
|
* Added Text.Pandoc.Logging (exported module).John MacFarlane2017-02-10
| | | | | | | | | | | | This now contains the Verbosity definition previously in Options, as well as a new LogMessage datatype that will eventually be used instead of raw strings for warnings. This will enable us, among other things, to provide machine-readable warnings if desired. See #3392.
* 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
* More logging-related changes.John MacFarlane2017-01-25
| | | | | | | | | | | | | | | | | | Class: * Removed getWarnings, withWarningsToStderr * Added report * Added logOutput to PandocMonad * Make logOutput streaming in PandocIO monad * Properly reverse getLog output Readers: * Replaced use of trace with report DEBUG. TWiki Reader: Put everything inside PandocMonad m. API changes.
* Changes to verbosity in writer and reader options.John MacFarlane2017-01-25
| | | | | | | | | | | | | | API changes: Text.Pandoc.Options: * Added Verbosity. * Added writerVerbosity. * Added readerVerbosity. * Removed writerVerbose. * Removed readerTrace. pandoc CLI: The `--trace` option sets verbosity to DEBUG; the `--quiet` option sets it to ERROR, and the `--verbose` option sets it to INFO. The default is WARNING.
* Removed readerOldDashes and --old-dashes option, added old_dashes extension.John MacFarlane2017-01-25
| | | | API change. CLI option change.
* Readers: pass errors straight up to PandocMonad.Jesse Rosenthal2017-01-25
| | | | | Since we've unified error types, we can just throw the same error at the toplevel.
* Unify Errors.Jesse Rosenthal2017-01-25
|
* Working on readers.Jesse Rosenthal2017-01-25
|
* Remove Compat.MonoidJesse Rosenthal2016-09-02
| | | | | This was only necessary for GHC versions with base below 4.5 (i.e., ghc < 7.4).
* MediaWiki reader: properly interpret XML tags in pre environments.John MacFarlane2016-08-06
| | | | | They are meant to be interpreted as literal text in textile. Closes #3042.
* Textile reader: disallow empty URL in explicit link.John MacFarlane2016-07-22
| | | | Closes #3036.
* Textile reader: support `bc..` extended code blocks.John MacFarlane2016-07-22
| | | | | Also, remove trailing newline in code blocks (consistently with Markdown reader).
* Textile reader: improve definition list parsing.John MacFarlane2016-07-19
| | | | | - Allow multiple terms (which we concatenate with linebreaks). - Fix exponential parsing bug (closes #3020 for real this time).
* Textile reader: improved table parsing.John MacFarlane2016-07-18
| | | | | | | | | | | We now handle cell and row attributes, mostly by skipping them. However, alignments are now handled properly. Since in pandoc alignment is per-column, not per-cell, we try to devine column alignments from cell alignments. Table captions are also now parsed, and textile indicators for thead and tfoot no longer cause parse failure. (However, a row designated as tfoot will just be a regular row in pandoc.)
* Fixed exponential parsing bug in textile reader.John MacFarlane2016-07-14
| | | | Closes #3020.
* Textile reader: Fix overly aggressive interpretation as images.John MacFarlane2016-06-25
| | | | | | Spaces are not allowed in the image URL in textile. Closes #2998.
* Textile reader: fixed attributes.John MacFarlane2016-06-23
| | | | | | | | | | | | | | Attributes can't be followed by a space. So, _(class)emph_ but _(noclass) emph_ Closes #2984.
* Textile reader: Support `>`, `<`, `=`, `<>` text alignment attributes.John MacFarlane2016-01-25
| | | | Closes #2674.
* Textile reader: don't allow block HTML tags in inline contexts.John MacFarlane2016-01-02
| | | | | | | | | | | | | | | | | | | | | The reader previously did allow this, following redcloth, which happily parses Html blocks can be <div>inlined</div> as well. as <p>Html blocks can be <div>inlined</div> as well.</p> This is invalid HTML, and this kind of thing can lead to parsing problems (stack overflows) as well. So this commit undoes this behavior. The above sample now produces; <p>Html blocks can be</p> <div> <p>inlined</p> </div> <p>as well.</p>
* new function to extract multiple properties at once in CSS.hsmb212015-12-13
| | | | and use it in Textile reader
* Textile Reader: image attributesmb212015-12-03
| | | | closes #2515
* Textile reader: skip over attribute in image source.John MacFarlane2015-11-16
| | | | | | | | We don't have a place yet for styles or sizes on images, but we can skip the attributes rather than incorrectly taking them to be part of the filename. Closes #2515.
* Restored Text.Pandoc.Compat.Monoid.John MacFarlane2015-11-09
| | | | | | | | | | | | | | Don't use custom prelude for latest ghc. This is a better approach to making 'stack ghci' and 'cabal repl' work. Instead of using NoImplicitPrelude, we only use the custom prelude for older ghc versions. The custom prelude presents a uniform API that matches the current base version's prelude. So, when developing (presumably with latest ghc), we don't use a custom prelude at all and hence have no trouble with ghci. The custom prelude no longer exports (<>): we now want to match the base 4.8 prelude behavior.
* Revert "Use -XNoImplicitPrelude and 'import Prelude' explicitly."John MacFarlane2015-11-09
| | | | This reverts commit c423dbb5a34c2d1195020e0f0ca3aae883d0749b.
* Use -XNoImplicitPrelude and 'import Prelude' explicitly.John MacFarlane2015-11-08
| | | | | | | This is needed for ghci to work with pandoc, given that we now use a custom prelude. Closes #2503.
* Textile reader: don't do smart punctuation unless explicitly asked.John MacFarlane2015-10-30
| | | | | | | | Closes #2480. Note that although smart punctuation is part of the textile spec, it's not always wanted when converting from textile to, say, Markdown. So it seems better to make this an option.
* Use custom Prelude to avoid compiler warnings.John MacFarlane2015-10-14
| | | | | | | | | | | | | - The (non-exported) prelude is in prelude/Prelude.hs. - It exports Monoid and Applicative, like base 4.8 prelude, but works with older base versions. - It exports (<>) for mappend. - It hides 'catch' on older base versions. This allows us to remove many imports of Data.Monoid and Control.Applicative, and remove Text.Pandoc.Compat.Monoid. It should allow us to use -Wall again for ghc 7.10.
* Removed tab chars in Textile reader source.John MacFarlane2015-05-28
|
* Updated copyright notices to -2015. Closes #2111.John MacFarlane2015-04-26
|
* Change return type of Textile readerMatthew Pickering2015-02-18
|
* Textile reader: table improvements.John MacFarlane2015-02-02
| | | | | | * Handle newlines in cells. * Handle empty cells. * Closes #1919.
* Textile reader: list and HTML block parsing improvements.John MacFarlane2014-08-11
| | | | | | | | Closes #1513. Lists can now start without an intervening blank line. Also, html block-level tags that don't start a line are parsed as RawInline and don't interrupt paragraphs, as in RedCloth.
* Textile reader: fixed list parsing bug. Closes #1500.John MacFarlane2014-08-08
|
* Textile reader: don't allow inline formatting to extend over newline.John MacFarlane2014-08-08
| | | | | This matches behavior of RedCarpet, avoids some ugly bugs, and improves performance.
* Update copyright notices for 2014, add missing noticesAlbert Krewinkel2014-05-09
|
* Small improvement to textile reader fix. Removed 'try'.mpickering2014-05-07
|
* Fix textile reader hanging.mpickering2014-05-07
| | | | | | | | Textile reader hung on pandoc -f textile http://johnmacfarlane.net/pandoc/demo/example25.textile The reader no longer hangs.
* Textile reader: Rearranged inline parsers for performance.John MacFarlane2014-05-06
| | | | | This is possible because of the rewrite of simpleInline. Also removed a redundant parser for grouped inlines.
* Textile reader: Rewrote simpleInline for clarity and efficiency.John MacFarlane2014-05-06
| | | | This way we only look once for the opening `[`.
* Textile reader: Disallow blank lines in inline contexts.John MacFarlane2014-05-06
| | | | | | | | @hi there@ should not be a single code span.
* Make `--trace` work with textile reader.John MacFarlane2014-05-06
|
* Textile reader: Rewrote some inline parsing code for clarity.John MacFarlane2014-05-06
| | | | | | (It seems clearer to put the whitespace parsing in the grouped parser. This also uses stateLastStrPos to determine when the border is adjacent to an alphanumeric.)
* Textile reader: Improved link parsing.John MacFarlane2014-04-07
| | | | | | | | In particular we now pick up on attributes. Since pandoc links can't have attributes, we enclose the whole link in a span if there are attributes. Closes #1008.
* Textile reader: Better support for attributes.John MacFarlane2014-04-05
| | | | | | | | | | Instead of being ignored, attributes are now parsed and included in Span inlines. The output will be a bit different from stock textile: e.g. for `*(foo)hi*`, we'll get `<em><span class="foo">hi</span></em>` instead of `<em class="foo">hi</em>`. But at least the data is not lost.
* Textile reader: Improved treatment of HTML spans (%).John MacFarlane2014-04-05
| | | | Closes #1115.
* Removed whitespace at ends of lines.John MacFarlane2014-04-05
|