aboutsummaryrefslogtreecommitdiff
path: root/src/Text
AgeCommit message (Collapse)AuthorFilesLines
2012-08-09Removed `--strict`, added extensions to writer/reader names.John MacFarlane3-15/+26
* The `--strict` option has been removed. * Instead of using `--strict`, one can now use `strict` instead of `markdown` as an input or output format name. * The `--enable` and `--disable` optinos have been removed. * It is now possible to enable or disable specific extensions by appending them (with '+' or '-') to the writer or reader name. For example `pandoc -f markdown-footnotes+hard_line_breaks`. * The lhs extensions are now implemented this way, too; you can use either `+lhs` or `+literate_haskell`.
2012-08-09Added getReader, getWriter to Text.Pandoc.John MacFarlane1-0/+31
2012-08-09Use safeRead instead of using reads directly (various modules).John MacFarlane4-25/+27
2012-08-09Added safeRead to Text.Pandoc.Shared.John MacFarlane1-1/+12
2012-08-09Added parseFormatSpec to Text.Pandoc.John MacFarlane1-0/+22
2012-08-08Changes to literate haskell options.John MacFarlane10-41/+15
- Removed writerLiterateHaskell from WriterOptions. - Removed readerLiterateHaskell from ReaderOptions. - Added Ext_literate_haskell to Extensions. Test for this instead of the above. - Removed failUnlessLHS from Shared. Note: At this point, +lhs and .lhs extension no longer has any effect. Need to fix.
2012-08-07Markdown reader: Modified to use Builder from pandoc-types 1.10.*.John MacFarlane1-5/+3
2012-08-07Made pandocExtensions default for reader/writer options.John MacFarlane1-2/+2
2012-08-06Support hard_line_breaks markdown extension.John MacFarlane2-1/+43
* Added Ext_hard_line_breaks. * Added section in README on non-pandoc extensions. * Exported pandocExtensions and strictExtensions in Text.Pandoc.Options. Closes #514.
2012-08-05Markdown writer: Tables now sensitive to table extension options.John MacFarlane1-21/+42
Ext_simple_table, Ext_multiline_tables, Ext_pipe_tables. Simple tables are preferred over pipe tables when both are enabled. If no appropriate table style is available, a raw HTML table is used. So far there is no option for output of grid tables.
2012-08-05Started making markdown table writer sensitive to options.John MacFarlane2-33/+50
So far incomplete.
2012-08-04Don't include empty captions in figures.John MacFarlane6-17/+32
Closes #581.
2012-08-04Markdown reader: look for raw html/latex blocks before tables.John MacFarlane1-2/+2
Otherwise the following gets parsed as a table: \begin{code} -------------- -- My comment. \end{code} Closes #578.
2012-08-02Don't use escaped line breaks in plain output.John MacFarlane1-1/+3
2012-08-02Made markdown writer sensitive to Ext_subscript/superscript/strikeout.John MacFarlane1-3/+9
HTML is used if these are disabled.
2012-08-02Made markdown writer sensitive to Ext_definition_lists.John MacFarlane1-8/+13
IF not set, definition lists will be rendered as regular paragraphs, with the term set off by a line break.
2012-08-02Made markdown writer sensitive to Ext_startnum, Ext_fancy_lists.John MacFarlane1-1/+5
2012-08-02Made markdown reader sensitive to Ext_raw_tex.John MacFarlane1-2/+3
2012-08-02Made markdown writer sensitive to Ext_table_captions.John MacFarlane1-1/+1
2012-08-02Made markdown writer sensitive to Ext_pandoc_title_blocks.John MacFarlane1-1/+2
2012-08-02Made markdown writer sensitive to Ext_footnotes.John MacFarlane1-4/+10
If footnotes not enabled, footnotes are formatted like normal markdown paragraphs, with a marker like [3].
2012-08-02Markdown reader: Import <> from Text.Pandoc.Builder.John MacFarlane1-2/+2
This way the module will work with versions of Data.Monoid that don't export <>.
2012-08-02Made F a newtype, moved definitions to Parser.John MacFarlane2-21/+37
Parser now exports F(..), askF, asksF, runF.
2012-08-01Improved implementation of pipe tables.John MacFarlane1-25/+14
2012-08-01Parsing: removed duplication of Key and Key'.John MacFarlane3-56/+28
Now we just use the former Key' (string contents), renamed Key. lookupKeySrc and fromKey are no longer eport. Key', toKey' and KeyTable' have become Key, toKey, and KeyTable.
2012-08-01Major rewrite of markdown reader.John MacFarlane3-406/+598
* Use Builder's Inlines/Blocks instead of lists. * Return values in the reader monad, which are then run (at the end of parsing) against the final parser state. This allows links, notes, and example numbers to be resolved without a second parser pass. * An effect of using Builder is that everything is normalized automatically. * New exports from Text.Pandoc.Parsing: widthsFromIndices, NoteTable', KeyTable', Key', toKey', withQuoteContext, singleQuoteStart, singleQuoteEnd, doubleQuoteStart, doubleQuoteEnd, ellipses, apostrophe, dash * Updated opendocument tests. * Don't derive Show for ParserState. * Benchmarks: markdown reader takes 82% of the time it took before. Markdown writer takes 92% of the time (here the speedup is probably due to the fact that everything is normalized by default).
2012-07-27Removed commented-out pandoc2 code.John MacFarlane1-41/+0
This will be developed in a branch, noreparsing.
2012-07-27Parser: Changed types to use type alias Parser, not Parsec.John MacFarlane1-97/+138
2012-07-27Commented out extensions that don't yet do anything.John MacFarlane1-2/+3
2012-07-27Removed deprecated writerXeTeX.John MacFarlane1-3/+0
2012-07-27Markdown reader: Added sensitivity to Ext_example_lists.John MacFarlane2-1/+4
2012-07-27Markdown reader: Check fancy_lists and startnum extensions.John MacFarlane1-2/+6
2012-07-27Replaced writerStrict with writerExtensions in WriterOptions.John MacFarlane4-24/+32
Still have not implemented individual tests for all the extensions in the markdown writer.
2012-07-26Moved WriterOptions and associated types Shared -> Options.John MacFarlane22-147/+146
2012-07-26Fixed whitespace errors.John MacFarlane26-385/+385
2012-07-26Textile reader: Replace failIfStrict with guardEnabled.John MacFarlane1-3/+3
2012-07-26Parsing: Removed failIfStrict.John MacFarlane1-5/+0
2012-07-26Use readerExtensions instead of readerStrict in readers.John MacFarlane3-123/+118
Test individually for the extensions.
2012-07-26Parsing: Added guardEnabled, guardDisabled.John MacFarlane1-3/+14
2012-07-26pandoc: Set readerExtensions instead of readerStrict.John MacFarlane1-2/+3
2012-07-25Changed reader parameters from ParserState to ReaderOptions.John MacFarlane8-49/+32
2012-07-25Restored stateStandalone as readerStandalone.John MacFarlane2-2/+7
It is indeed needed by the RST reader.
2012-07-25Moved stateApplyMacros, stateIndentedCodeClasses to ReaderOptions.John MacFarlane3-17/+18
2012-07-25stateCitations -> readerCitations.John MacFarlane3-4/+4
2012-07-25Moved stateLiterateHaskell to readerLiterateHaskell in Options.John MacFarlane3-20/+26
2012-07-25Got rid of stateStandalone, which was hardly used anyway.John MacFarlane2-5/+1
The only possible effect will be with rst fragments that begin with an rst title block, which will now cause the header transform.
2012-07-25Moved stateOldDashes to readerOldDashes in ReaderOptions.John MacFarlane3-10/+12
2012-07-25Moved stateTabStop to readerTabStop in ReaderOptions.John MacFarlane4-13/+9
2012-07-25Moved stateColumns to readerColumns in ReaderOptions.John MacFarlane2-3/+3
2012-07-25Moved ParseRaw from ParserState to ReaderOptions.John MacFarlane6-18/+21