summaryrefslogtreecommitdiff
path: root/src/Text/Pandoc/Readers/Textile.hs
Commit message (Collapse)AuthorAge
...
* Changed the smart punctuation parser to return Inlines rather than an Inline ↵Matthew Pickering2014-04-01
| | | | element and updated files accordingly
* Bugfix for #1175 and convert textile reader to use builder.Matthew Pickering2014-04-01
| | | | | | | | | | | | | | | The reader did not correctly parse inline markup. The behavoir is now as follows. (a) The markup must start at the start of a line, be inside previous inline markup or be preceeded by whitespace. (b) The markup can not span across paragraphs (delimited by \n\n) (c) The markup can not be followed by a alphanumeric character. (d) Square brackets can be placed around the markup to avoid having to have white space before it. In order to make these changes it was either necessary to convert the parser to return a list of inlines or to convert the whole reader to use the builder. The latter approach whilst more work makes a bit more sense as it becomes easy to arbitarily append and prepend elements without changing the type. Tests are accordingly updated in a later commit to reflect the different normalisation behavoir specified by the builder monoid.
* HLint: redundant parensHenry de Valence2013-12-19
| | | | Remove parens enclosing a single element.
* Use registerHeader in Textile reader.John MacFarlane2013-09-01
| | | | | | | This produces automatic header identifiers, unless `auto_identifiers` extension is disabled. Closes #967.
* Adjustments for new Format newtype.John MacFarlane2013-08-10
|
* Revert "Textile reader: Removed raw LaTeX parsing."John MacFarlane2013-08-08
| | | | | | This reverts commit bb61624bb2bba416e1992ecdf101f9660a3edcae. Apparently someone put this there for a reason, since it's in the test suite.
* Textile reader: Removed raw LaTeX parsing.John MacFarlane2013-08-07
| | | | This isn't part of Textile.
* Textile reader: Improved handling of `<pre>` blocks.John MacFarlane2013-07-25
| | | | | | | | * Closed #927 (a bug in which `<pre>` in certain contexts was not recognized as a code block). * Remove internal HTML tags in code blocks, rather than printing them verbatim. * Parse attributes on `<pre>` tag for code blocks.
* Use new flexible metadata type.John MacFarlane2013-06-24
| | | | | | | | | | | | | | | | | | | | | | | | | * Depend on pandoc 1.12. * Added yaml dependency. * `Text.Pandoc.XML`: Removed `stripTags`. (API change.) * `Text.Pandoc.Shared`: Added `metaToJSON`. This will be used in writers to create a JSON object for use in the templates from the pandoc metadata. * Revised readers and writers to use the new Meta type. * `Text.Pandoc.Options`: Added `Ext_yaml_title_block`. * Markdown reader: Added support for YAML metadata block. Note that it must come at the beginning of the document. * `Text.Pandoc.Parsing.ParserState`: Replace `stateTitle`, `stateAuthors`, `stateDate` with `stateMeta`. * RST reader: Improved metadata. Treat initial field list as metadata when standalone specified. Previously ALL fields "title", "author", "date" in field lists were treated as metadata, even if not at the beginning. Use `subtitle` metadata field for subtitle. * `Text.Pandoc.Templates`: Export `renderTemplate'` that takes a string instead of a compiled template.. * OPML template: Use 'for' loop for authors. * Org template: '#+TITLE:' is inserted before the title. Previously the writer did this.
* Textile reader: Correctly handle entities.John MacFarlane2013-06-11
|
* Textile reader: Handle attributes on headers.John MacFarlane2013-02-16
| | | | Includes `[lang]`, `(class #id)`, `{color:red}` styles.
* Added Attr field to Header.John MacFarlane2013-01-09
| | | | | | | | | | Previously header ids were autogenerated by the writers. Now they are generated (unless supplied explicitly) in the markdown parser, if the `header_identifiers` extension is selected. In addition, the textile reader now supports id attributes on headers.
* Textile reader/writer: Fixed autolinks.John MacFarlane2012-11-06
| | | | | | | | | Previously the textile reader and writer incorrectly implented RST-style autolinks for URLs and email addresses. This has been fixed. Now an autolink is done this way: "$":http://myurl.com
* Textile parser: Expanded list of stringBreakers.John MacFarlane2012-11-06
| | | | | | | This fixes a bug on input like "(_hello_)" which should be a parenthesized emphasized "hello". The new list is taken from the PHP source of textile 2.4.
* Textile reader: Allow newlines before pipes in table.John MacFarlane2012-11-05
| | | | Closes #654.
* Textile reader: Fixed bug with list items containing line breaks.John MacFarlane2012-10-13
| | | | | | Now pandoc correctly handles hard line breaks inside list items. Previously they broke list parsing. Thanks to Pablo Rodríguez for pointing out the problem.
* Textile reader: Implemented comment blocks.John MacFarlane2012-10-05
|
* Textile reader: Avoid parsing dashes as strikeout.John MacFarlane2012-09-28
| | | | | | | | | | | | | | | Previously the input text-- text-- text-- text-- would be parsed with strikeouts rather than dashes. This fixes the problem by requiring that a strikeout delimiting - not be followed by a -. Closes #631.
* Textile reader: Fixed bug affected words ending in hyphen.John MacFarlane2012-09-28
| | | | | Note: sepBy1 doesn't work quite as I expected. It gives odd results if sep succeeds but not p.
* Textile: Improvements to surround and symbol.John MacFarlane2012-09-28
|
* Removed nullBlock.John MacFarlane2012-09-27
| | | | | Don't use nullBlock in Textile reader. Better to know about parsing problems than to skip stuff when we get stuck.
* Textile reader: Improved speed of hyphenedWords.John MacFarlane2012-09-06
| | | | | This speeds up the textile reader by about a factor of 4. But the reader is still very slow, compared to others readers.
* Removed obsolete comment.John MacFarlane2012-09-06
|
* Fixed footnotes bug in textile.John MacFarlane2012-09-06
| | | | | | | This affected notes occuring before punctuation, e.g. `foo[1].`. Closes #518.
* Fixed whitespace errors.John MacFarlane2012-07-26
|
* Textile reader: Replace failIfStrict with guardEnabled.John MacFarlane2012-07-26
|
* Changed reader parameters from ParserState to ReaderOptions.John MacFarlane2012-07-25
|
* Moved stateOldDashes to readerOldDashes in ReaderOptions.John MacFarlane2012-07-25
|
* Moved ParseRaw from ParserState to ReaderOptions.John MacFarlane2012-07-25
|
* Options -> ReaderOptions.John MacFarlane2012-07-25
| | | | Better to keep reader and writer options separate.
* Put smart, strict in separate options field in state.John MacFarlane2012-07-25
| | | | | | | | | This is the beginning of a larger transition that will make Options, not ParserState, the parameter of the read functions. (Options will also be used in writers, in place of WriterOptions.) Next step is to remove strict, replacing it with granular tests for different extensions.
* Use Parser as type synonym for Parsec.John MacFarlane2012-07-20
|
* Text.Pandoc.Parsing: Export all Parsec functions used in pandoc code.John MacFarlane2012-07-20
| | | | | No other module directly imports Parsec. This will make it easier to change the parsing backend in the future, if we want to.
* Use Text.Parsec instead of Text.ParserCombinators.Parsec.John MacFarlane2012-07-20
|
* Textile reader: properly handle links with surrounding brackets.John MacFarlane2012-07-13
| | | | | | | Square brackets need to be used when the link isn't surrounded by spaces or punctuation, or when the URL ending may be ambiguous. Closes #564.
* Textile reader: fix for `<notextile>` and `==`.paul.rivier2012-05-29
| | | | Closes #517.
* Added a couple needed trys to textile reader.John MacFarlane2012-05-29
|
* Textile reader: Parse +text+ as emphasized (should be underline).John MacFarlane2012-04-27
|
* textile reader improvements : better conformance to RedCloth Textile inlinespaul.rivier2012-04-24
|
* Textile reader quick clean-up and added support for LaTeX blocks and inlines.paul.rivier2012-04-17
|
* Textile reader: Implemented literal escapes with `==` and `<notextile>`.John MacFarlane2012-04-05
| | | | Closes #473.
* fix doc generation failure against haddock-2.10.0Sergei Trofimovich2012-03-12
| | | | | | | | | | | | | | | | | | | | | $ cabal configure --haddock-option=-v3 $ cabal haddock -v3 Creating interface... 100% ( 2 / 2) in 'Text.Pandoc.Readers.Native' Checking module Text.Pandoc.Readers.HTML... Creating interface... 50% ( 4 / 8) in 'Text.Pandoc.Readers.HTML' Checking module Text.Pandoc.Readers.Textile... Creating interface... haddock: internal error: lexical error /usr/bin/haddock returned ExitFailure 1 Patch changes UTF-8 spaces to ASCII spaces. It's a known haddock issue: http://www.haskell.org/pipermail/haskell-cafe/2012-March/099870.html Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
* New treatment of dashes in --smart mode.John MacFarlane2012-01-01
| | | | | | | | | | | | * `---` is always em-dash, `--` is always en-dash. * pandoc no longer tries to guess when `-` should be en-dash. * A new option, `--old-dashes`, is provided for legacy documents. Rationale: The rules for en-dash are too complex and language-dependent for a guesser to work reliably. This change gives users greater control. The alternative of using unicode isn't very good, since unicode em- and en- dashes are barely distinguishable in a monospace font.
* Better smart quote parsing.John MacFarlane2011-12-29
| | | | | | | | | | | * Added stateLastStrPos to ParserState. This lets us keep track of whether we're parsing the position immediately after a 'str'. If we encounter a ' in such a location, it must be an apostrophe, and can't be a single quote start. * Set this in the markdown, textile, html, and rst str parsers. * Closes #360.
* Textile reader: Make it possible to have colons after links.Christoffer Sawicki2011-07-10
|
* Add support for attributes in inline Code.John MacFarlane2011-01-26
| | | | | | | | Additional related changes: * URLs in Code in autolinks now use class "url". * Require highlighting-kate 0.2.8.2, which omits the final <br/> tag, essential for inline code.
* Bumped version to 1.8; depend on pandoc-types 1.8.John MacFarlane2011-01-26
| | | | | | | The old TeX, HtmlInline and RawHtml elements have been removed and replaced by generic RawInline and RawBlock elements. All modules updated to use the new raw elements.
* Textile writer: Don't HTML-escape between @'s.John MacFarlane2011-01-23
|
* Textile reader: Fixed bug (swallowed p at beginning of paragraph).John MacFarlane2011-01-23
| | | | | The problem was a missing 'try' in the maybeExplicitBlock parser. Test case, a paragraph beginning with 'p', has been added.
* Textile reader: Support <tt> for inline code.John MacFarlane2011-01-23
|