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
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
ef0619cc6d
Moved ParseRaw from ParserState to ReaderOptions.
2012-07-25 11:43:56 -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
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
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
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
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
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
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
John MacFarlane
f68b05e74b
Textile reader: properly handle links with surrounding brackets.
...
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 .
2012-07-13 14:01:56 -07:00
John MacFarlane
dc158768b9
Docbook reader: Added support for "bold" emphasis.
...
Thanks to mb21.
2012-06-26 19:41:34 -07:00
John MacFarlane
0dab912c22
Markdown reader: Added cf. and cp. to list of likely abbreviations.
2012-06-04 11:13:41 -07:00
paul.rivier
75cba828b5
Textile reader: fix for <notextile>
and ==
.
...
Closes #517 .
2012-05-29 17:40:55 -07:00
John MacFarlane
9a47237412
RST reader: handle figures.
...
Closes #522 .
2012-05-29 16:59:56 -07:00
John MacFarlane
60495e9fb3
Added a couple needed trys to textile reader.
2012-05-29 16:23:40 -07:00
John MacFarlane
2e4860bc6d
LaTeX reader: Support \centerline
.
2012-05-22 15:38:11 -07:00
John MacFarlane
a5f71e5fad
DocBook: support segmentedlist.
2012-05-12 18:34:15 -07:00
John MacFarlane
6dfaf43f3e
DocBook reader: Support simplelist, member.
2012-05-12 13:21:13 -07:00
John MacFarlane
0d3c7b5204
Don't include non-language classes for code blocks.
2012-05-12 12:33:51 -07:00
John MacFarlane
2c04d0b2bf
DocBook reader: Recognize example as block element.
2012-05-12 12:33:49 -07:00
John MacFarlane
1c26f2c516
DocBook reader: Promote level 0 headers to 1 even if dbBook not set.
2012-05-12 12:24:26 -07:00
John MacFarlane
9d44dc3887
DocBook reader: Support bridgehead.
2012-05-12 12:17:36 -07:00
John MacFarlane
3d15d4c668
DocBook reader: only use language classes for inline code.
2012-05-12 11:35:20 -07:00
John MacFarlane
199c9de654
DocBook reader: Better handling tags that can have inline or block content.
2012-05-12 11:31:17 -07:00
John MacFarlane
89fa0e4a08
DocBook reader: computeroutput is an inline tag, not block.
2012-05-12 11:21:23 -07:00
John MacFarlane
206f261194
LaTeX reader: Allow skipping of unknown block commands in \author
section.
...
Closes #505 , which was a problem with `\vspace{10pt}` inside `\author`.
2012-05-11 20:50:00 -07:00
John MacFarlane
c844634757
DocBook reader: Support bibliomixed tag.
2012-05-11 20:35:19 -07:00
John MacFarlane
02fa1050b0
DocBook reader: Support link tag with no content.
2012-05-11 20:27:28 -07:00
John MacFarlane
e1e6505abe
DocBook reader: print ? for xref tag.
2012-05-11 20:20:53 -07:00
John MacFarlane
d46d2000f4
DocBook reader: Support uri tag.
2012-05-11 20:16:39 -07:00
John MacFarlane
5dfcf004b4
DocBook reader: Use ALLCAPS for unknown entities.
2012-05-11 20:14:11 -07:00
John MacFarlane
de27dbc0f8
DocBook reader. Handle block elements inside paragraphs.
2012-05-11 20:08:26 -07:00
John MacFarlane
b4b5642ac7
DocBook reader: support more elements.
2012-05-10 23:58:13 -07:00
John MacFarlane
023bb2bb45
DocBook reader: Implemented glossary, simplified sect.
2012-05-10 21:27:16 -07:00
John MacFarlane
523acadd5b
DocBook reader: Skip index.
2012-05-10 20:11:07 -07:00