Commit graph

3436 commits

Author SHA1 Message Date
John MacFarlane
bc5fe70d15 MediaWiki reader: Skip inline templates, handle <source>. 2012-09-15 01:47:57 -04:00
John MacFarlane
a2391b0395 MediaWiki reader: Parse styles on table cells. 2012-09-15 01:13:26 -04:00
John MacFarlane
9a54a949c7 MediaWiki reader: Parse styles after '{|' table start. 2012-09-15 00:23:24 -04:00
John MacFarlane
aa476b42cb MediaWiki reader: || between table cells. 2012-09-14 23:51:43 -04:00
John MacFarlane
152ddfb232 MediaWiki reader: Added test for multi-paragraph cells. 2012-09-14 23:31:55 -04:00
John MacFarlane
28d2cf9500 MediaWiki reader: Improved table parsing. 2012-09-14 23:29:06 -04:00
John MacFarlane
ce509be57a MediaWiki reader: Table improvements, added simple table tests. 2012-09-14 10:55:16 -04:00
John MacFarlane
6e9351bac4 MediaWiki reader: Support for basic mediawiki tables. 2012-09-14 10:19:35 -04:00
John MacFarlane
46be934994 MediaWiki reader: Images. 2012-09-13 18:16:25 -07:00
John MacFarlane
a0d7b3f37b MediaWiki reader: internal links. 2012-09-13 17:06:09 -07:00
John MacFarlane
fc2f7a4942 MediaWiki reader: Implemented basic internal links.
Including word-ending links and the "pipe trick."
2012-09-13 16:55:08 -07:00
John MacFarlane
5620848ef9 MediaWiki reader: Added tests for external mailto link. 2012-09-13 15:28:11 -07:00
John MacFarlane
017095f690 MediaWiki reader: Implemented numbered external links. 2012-09-13 15:24:05 -07:00
John MacFarlane
8cc5625bd6 MediaWiki reader: Use MWState instead of ParserState. 2012-09-13 15:10:40 -07:00
John MacFarlane
5b29f0f598 MediaWiki reader: Ignore <gallery> tags. 2012-09-13 14:55:33 -07:00
John MacFarlane
81bec8558c MediaWiki reader: Support HTML lists. 2012-09-13 14:47:11 -07:00
John MacFarlane
3fe6ea4c41 MediaWiki reader: Handle templates, variables as raw mediawiki.
Also check for column 1 in preformatted text.
2012-09-13 12:03:54 -07:00
John MacFarlane
4e1a45467c MediaWiki reader: Parse templates etc. as raw mediawiki.
They can be postprocessed with a pandoc script.
2012-09-13 11:25:55 -07:00
John MacFarlane
e3abc2595f MediaWiki reader: Improved efficiency with raw html tags.
Parse one tag, then use a case statement.
2012-09-13 11:18:59 -07:00
John MacFarlane
880af86556 EPUB writer: Use ch001, ch002, etc. for chapter filenames.
This improves sorting of chapters in some readers, which
apparently sort ch2 after ch10.  Closes #610.
2012-09-13 08:59:33 -07:00
John MacFarlane
93fa5df866 MediaWiki reader: Added comment. 2012-09-12 22:51:16 -07:00
John MacFarlane
5104c2190b MediaWiki reader: preformatted blocks and tests. 2012-09-12 22:44:11 -07:00
John MacFarlane
b703c76540 MediaWiki reader: Support <math> tag. 2012-09-12 19:57:34 -07:00
John MacFarlane
def768cd1f Added tests for mediawiki lists. 2012-09-12 19:48:11 -07:00
John MacFarlane
a76c6df826 More mediawiki reader tests. 2012-09-12 19:35:06 -07:00
John MacFarlane
b19aee4e1e Added some tests for mediawiki reader. 2012-09-12 19:15:34 -07:00
John MacFarlane
9353af9133 MediaWiki reader: Updated todo comments. 2012-09-12 19:09:45 -07:00
John MacFarlane
bb6fcf1dac MediaWiki reader: Support <syntaxhighlight> tag. 2012-09-12 19:05:15 -07:00
John MacFarlane
bf77889e19 HTML writer: Don't print <dt> unless term is non-empty. 2012-09-12 17:44:13 -07:00
John MacFarlane
bbbbee021d MediaWiki reader: Properly handle :, ::, :::... 2012-09-12 17:40:40 -07:00
John MacFarlane
57ec347c42 MediaWiki reader: Handle def lists without terms (: lines). 2012-09-12 17:30:02 -07:00
John MacFarlane
4e294333b0 MediaWiki reader: Improvements to list parsing and HTML tag handling. 2012-09-12 17:16:05 -07:00
John MacFarlane
bf2666331d MediaWiki reader: Support skipped level in lists.
For example:

    # one
    # two
    ### skip!
    ### skip
2012-09-12 16:47:30 -07:00
John MacFarlane
0fdc6deb08 MediaWiki reader: Fixed charsInTags parser to use innerText. 2012-09-12 16:15:52 -07:00
John MacFarlane
7326f0bf17 Minor fixes to MediaWiki reader. 2012-09-12 09:29:00 -07:00
John MacFarlane
3d361b2101 Added basic mediawiki reader.
Text.Pandoc.Readers.MediaWiki module,
tests/mediawiki-reader.{txt,native}.
2012-09-12 09:05:10 -07:00
John MacFarlane
167012daf7 Export 'nested' in Parsing. 2012-09-12 08:45:03 -07:00
John MacFarlane
58a096c058 Text.Pandoc.Parsing: Handle trailing slash in 'uri'. 2012-09-12 08:45:03 -07:00
John MacFarlane
bad3c88cb6 HTML writer: Improve line breaks with <dd> tags.
We now put a newline between `</dd>` and `<dd>` when
there are multiple definitions.
2012-09-12 08:45:03 -07:00
John MacFarlane
0189997420 Changed mathjax cdn url so it doesn't use https.
(This caused problems when used with --self-contained.)

See #609.
2012-09-12 08:45:02 -07:00
John MacFarlane
4076e2f8be LaTeX reader: Better error messages for environments.
Now it should tell you that it was looking for \end{env},
instead of giving "unknown parse error."
2012-09-09 19:23:55 -07:00
John MacFarlane
14dba12f90 LaTeX reader: guard against "begin"/"end" in blockCommand. 2012-09-09 18:27:52 -07:00
John MacFarlane
ccf314829b LaTeX reader: Guard against "begin", "end" in inlineCommand.
Removed these from list of inline commands.
2012-09-09 18:21:53 -07:00
John MacFarlane
579cdac641 HTML reader: Handle nested <q> tags properly. 2012-09-09 18:12:29 -07:00
John MacFarlane
7fc804ed22 Parsing: Generalized type of withQuoteContext. 2012-09-09 18:12:18 -07:00
John MacFarlane
204ee87803 HTML reader: Parse <q> as Quoted DoubleQuote. 2012-09-09 10:46:01 -07:00
John MacFarlane
9bd371acd1 README: Properly escape $ characters.
Otherwise they mess up the LaTeX benchmark, which uses a version
of README converted to LaTeX.
2012-09-08 22:13:48 -07:00
John MacFarlane
c4639e5d2c RST reader: Allow dashes as separator in simple tables.
Closes #555.
2012-09-08 12:14:16 -07:00
John MacFarlane
3e8e20b4f5 Fixed spacing in context writer test. 2012-09-08 12:13:36 -07:00
John MacFarlane
38048671af Added papersize variable to latex, context templates. 2012-09-08 11:43:02 -07:00