John MacFarlane
3053267280
Fixed MakeManPage for new reader signature.
2012-07-26 08:37:14 -07:00
John MacFarlane
800e772d6e
Fixed Benchmark to compile with latest changes.
2012-07-25 22:38:59 -07:00
John MacFarlane
acde1e82d2
Changed reader parameters from ParserState to ReaderOptions.
2012-07-25 22:35:41 -07:00
John MacFarlane
9b5d2031c7
Restored stateStandalone as readerStandalone.
...
It is indeed needed by the RST reader.
2012-07-25 22:05:06 -07:00
John MacFarlane
2654da3823
Moved stateApplyMacros, stateIndentedCodeClasses to ReaderOptions.
2012-07-25 22:05:06 -07:00
John MacFarlane
070b968ae0
stateCitations -> readerCitations.
2012-07-25 22:05:06 -07:00
John MacFarlane
856aa8c244
Moved stateLiterateHaskell to readerLiterateHaskell in Options.
2012-07-25 22:05:06 -07:00
John MacFarlane
1dba82f25e
Got rid of stateStandalone, which was hardly used anyway.
...
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-25 20:08:42 -07:00
John MacFarlane
95570ba34c
Moved stateOldDashes to readerOldDashes in ReaderOptions.
2012-07-25 12:37:04 -07:00
John MacFarlane
335cd5de4d
Moved stateTabStop to readerTabStop in ReaderOptions.
2012-07-25 12:31:16 -07:00
John MacFarlane
0d4424c21c
Moved stateColumns to readerColumns in ReaderOptions.
2012-07-25 11:51:33 -07:00
John MacFarlane
ef0619cc6d
Moved ParseRaw from ParserState to ReaderOptions.
2012-07-25 11:43:56 -07:00
John MacFarlane
8b380a464e
Text.Pandoc.Parsing: Added getOption.
2012-07-25 11:27:25 -07:00
John MacFarlane
dfa19061ab
Options -> ReaderOptions.
...
Better to keep reader and writer options separate.
2012-07-25 11:08:06 -07:00
John MacFarlane
da3702357d
Put smart, strict in separate options field in state.
...
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.
2012-07-25 10:45:45 -07:00
John MacFarlane
0d21b8d6ae
Added Text.Pandoc.Options.
2012-07-25 10:18:57 -07:00
John MacFarlane
fbd3d2b450
Better algorithm for oneOfStrings.
...
This goes character by character, not backtracking.
2012-07-24 22:45:22 -07:00
John MacFarlane
02ef26ae91
Slightly more efficient normalizeSpaces.
2012-07-24 22:12:18 -07:00
John MacFarlane
c00f5c4372
HTML reader: Fixed bug in htmlBalanced.
...
This caused hangs in parsing certain markdown input using --strict.
2012-07-24 21:43:24 -07:00
John MacFarlane
1fb1cfb670
Don't require strict HTML blocks to begin at left margin.
...
Technically this is required, according to the mardkown syntax
document, but Markdown.pl and other markdown processors are more
liberal.
2012-07-24 21:41:57 -07:00
John MacFarlane
308436996e
Use catch from Control.Exception to avoid warnings.
2012-07-24 19:38:16 -07:00
John MacFarlane
e6c76525b2
Text.Pandoc: writers now an assoc list of String, Writer.
...
A Writer can be a PureStringWriter, an IOStringWriter, or
an IOByteStringWriter. ALL writers are now in the 'writers'
list, including the binary writers and fb2 writer. Code simplified
at end of pandoc.hs.
2012-07-24 19:05:38 -07:00
John MacFarlane
11884d6ebf
Removed unneeded import.
2012-07-24 09:59:06 -07:00
John MacFarlane
999edd9608
Changed signatures of writeODT, writeDocx, writeEPUB.
...
These now take WriterOptions and Pandoc only.
The extra parameters for epub stylesheet, epub fonts,
reference Docx, and reference ODT have been removed, since
these things are now in WriterOptions.
Note: breaking API change!
2012-07-24 09:56:00 -07:00
John MacFarlane
cd19d4596b
Added fields to WriterOptions.
...
writerEpubStylesheet, writerEpubFonts, writerReferenceODT,
writerReferenceDocx. These can now be removed as extra
parameters to the writers.
2012-07-24 09:49:57 -07:00
John MacFarlane
6da9d9bca5
Small fix to fix: Allow blank lines btw table and caption.
2012-07-24 09:24:56 -07:00
John MacFarlane
da1e99c03a
Fixed performance improvement to tables.
2012-07-24 09:19:52 -07:00
John MacFarlane
2a4b987cc3
More performance improvements on pipe tables.
2012-07-24 09:08:54 -07:00
John MacFarlane
bab816cefe
Refactored table parsers, captions now not part of core tableWith.
2012-07-24 09:06:13 -07:00
John MacFarlane
ce72d6aba8
Slight improvement to performance for pipe tables.
...
Still, pipe tables are a huge performance drag. One benchmark:
With pipe tables, 1.25 sec (including this fix).
without pipe tables, 1.05 sec.
2012-07-24 07:13:49 -07:00
John MacFarlane
fb6e798917
Set writerTableOfContents for s5 in Text.Pandoc, not pandoc.hs.
2012-07-23 22:58:16 -07:00
John MacFarlane
1bd0c47968
Set writerSlideVariant in Text.Pandoc rather than pandoc.hs.
2012-07-23 22:53:35 -07:00
John MacFarlane
d2cc56a46a
Revised code for pipe tables.
...
* All tables now require at least one body row.
* Renamed from 'extra' to 'pipe' tables.
* Moved functions from Parsing to Readers.Markdown.
* Cleaned up code; revised to parse in one pass rather than
parsing a raw string, splitting it, and parsing the components.
* Allow pipe tables without pipes on the ends (as PHP Markdown Extra
does).
2012-07-22 22:09:15 -07:00
John MacFarlane
ed4039c3d7
Added README description of pipe tables.
2012-07-22 19:29:18 -07:00
John MacFarlane
5a704ecc6e
Renamed tests/markdown-tables -> tests/extra-tables.
...
Added to cabal file.
2012-07-22 19:28:56 -07:00
John MacFarlane
511f5e891d
Merge pull request #510 from mytskine/markdown-extra
...
Markdown extra tables [part of the multi-markdown syntax for tables]
2012-07-22 18:40:18 -07:00
John MacFarlane
1d19400572
Removed fb2.math-webtex.fb2 tests.
...
Test suite should not require net access to run.
2012-07-22 11:15:59 -07:00
John MacFarlane
40e123173b
Added Text.Pandoc.Writers.FB2 to list of exported modules.
...
Also added FB2 to description.
2012-07-22 11:14:07 -07:00
Sergey Astanin
436a585c3b
FB2: support images embedded as data URIs + tests.
2012-07-22 11:13:14 -07:00
Sergey Astanin
a9429e951c
Test suite for FB2 writer.
2012-07-22 11:13:14 -07:00
Sergey Astanin
b39597a910
Added a new FictionBook2 (FB2) writer.
2012-07-22 11:13:14 -07:00
John MacFarlane
aee87911d4
Added scale-to-width feature to beamer template
2012-07-22 11:00:00 -07:00
John MacFarlane
0e97e22672
Added note on --preserve-tabs in README.
2012-07-22 10:42:14 -07:00
John MacFarlane
f79ed27bb5
Use Parsec directly in Biblio and Templates.
2012-07-20 16:33:37 -07:00
John MacFarlane
2c30c48757
Use Parser as type synonym for Parsec.
2012-07-20 15:54:57 -07:00
John MacFarlane
5085962c28
Text.Pandoc.Parsing: Export all Parsec functions used in pandoc code.
...
No other module directly imports Parsec. This will make it easier
to change the parsing backend in the future, if we want to.
2012-07-20 14:41:44 -07:00
John MacFarlane
a4c28ead79
Use Text.Parsec instead of Text.ParserCombinators.Parsec.
2012-07-20 14:19:06 -07:00
John MacFarlane
5be6bf07d2
Make --ascii
work properly with --self-contained
.
...
Closes #568 .
2012-07-19 12:45:26 -07:00
John MacFarlane
2351f7a112
Provide Data.Default instances for ParserState and WriterOptions.
...
Now you can use def (which is re-exported by Text.Pandoc) instead of
defaultParserState or defaultWriterOptions. For now, these
are still defined too, so existing code need not change.
Closes #546 .
2012-07-19 12:38:54 -07:00
John MacFarlane
26748da6d4
Don't recognize inline-markup starts inside words.
...
For example, "2*2 = 4*1" should not contain an emphasized
section. Added test case for "Literal symbols". Closes #569 .
2012-07-16 10:58:44 -07:00