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
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
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
204ee87803
HTML reader: Parse <q> as Quoted DoubleQuote.
2012-09-09 10:46:01 -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
7d0438897b
LaTeX reader: Support obeylines environment.
...
Closes #604 .
2012-09-06 16:27:01 -07:00
John MacFarlane
e2cc9e7ca1
LaTeX reader: Use curly quotes for bare straight quotes.
2012-09-06 16:02:56 -07:00
John MacFarlane
bc4f3af2c3
LaTeX reader: Fixed parsing of paragraphs beginning with a group.
...
Previously a paragraph beginning ``` {``}hello{''} ``` would be
parsed as two paragraphs.
Closes #606 .
2012-09-06 15:28:25 -07:00
John MacFarlane
37c29bfa3d
Textile reader: Improved speed of hyphenedWords.
...
This speeds up the textile reader by about a factor of 4.
But the reader is still very slow, compared to others readers.
2012-09-06 14:08:59 -07:00
John MacFarlane
cd4408de5c
Removed obsolete comment.
2012-09-06 10:41:13 -07:00
John MacFarlane
c9d1d97a28
Fixed footnotes bug in textile.
...
This affected notes occuring before punctuation, e.g.
`foo[1].`.
Closes #518 .
2012-09-06 10:38:56 -07:00
John MacFarlane
784e6e65c4
LaTeX reader: Handle \slash command.
...
Closes #605 .
2012-09-04 23:21:15 -07:00
Denis Laxalde
b981540f2e
Allow any char but ':' in names of field lists in RST reader
2012-08-29 20:48:33 +02:00
Denis Laxalde
cdefeb9445
Fix RST reader for field lists items with body beginning after a new line
2012-08-29 20:47:49 +02:00
John MacFarlane
dc8e5970bf
Implemented Ext_backtick_code_blocks.
...
This is the variant github prefers.
2012-08-21 20:11:10 -07:00
John MacFarlane
dc6a133dbf
Added Ext_fenced_code_attributes.
2012-08-21 19:35:36 -07:00
John MacFarlane
b985d33406
Changed nomenclature, delimited -> fenced code blocks.
2012-08-21 19:21:51 -07:00
John MacFarlane
7b34dd8dd1
Added Ext_abbrevations for PHP markdown style abbreviation keys.
...
Note: pandoc does not have an abbreviation element (yet) and
so currently when this extension is enabled, it just causes
pandoc to skip the abbrevation keys.
2012-08-19 11:15:32 -07:00
John MacFarlane
a6f2b96084
Moved renderTags' from HTML reader & SelfContained to Shared.
...
Improved removal of markdown="1" attribute in Markdow reader.
2012-08-15 09:42:16 -07:00
John MacFarlane
3745706fa2
Tweaks on markdown="1" handling.
2012-08-15 09:26:47 -07:00
John MacFarlane
bb0b5e9022
Markdown: Prevent parse failure on HTML blocks with -raw_html.
2012-08-13 20:04:17 -07:00
John MacFarlane
27304513f6
Added Ext_raw_html extension.
...
Closes #556 -- you can now specify markdown-raw_html as your
input format. (Read: markdown minus raw_html.)
2012-08-12 22:04:23 -07:00
John MacFarlane
e8e8468d69
Implemented Ext_mmd_title_block in markdown reader & writer.
2012-08-12 19:27:13 -07:00
John MacFarlane
6f3e228bd9
Mardkown reader: Implemented Ext_markdown_attribute.
2012-08-11 19:44:23 -07:00
John MacFarlane
872fd2fb9c
Revert "Implemented Ext_markdown_attribute."
...
This reverts commit 78d3a0fb9d
.
2012-08-11 16:36:54 -07:00
John MacFarlane
78d3a0fb9d
Implemented Ext_markdown_attribute.
...
This adds markdown=1 to block tags.
2012-08-11 15:04:12 -07:00
John MacFarlane
9591fc9614
Implemented Ext_tex_math_single_backslash, Ext_tex_math_double_backslash.
2012-08-10 23:45:16 -07:00
John MacFarlane
417cde38af
Changed Ext_tex_math to Ext_tex_math_dollars.
2012-08-10 21:52:18 -07:00
John MacFarlane
3a17919a46
Markdown: Allow pipe tables created by emacs orgtbl-mode to work.
...
The difference is the + separators. Note: only simple org-tables
work, with no bottom line. This just allows you to use org-mode's
nice table editor to create regular pipe tables.
In particular, org-mode's method for determining column alignments
implicitly is not enabled. You must put in :s to specify alignments,
as stated in the documentation.
2012-08-10 13:29:37 -07:00
John MacFarlane
a740de0508
Use safeRead instead of using reads directly (various modules).
2012-08-09 08:11:28 -07:00
John MacFarlane
dfa4b76630
Changes to literate haskell options.
...
- 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-08 23:18:19 -07:00
John MacFarlane
6561ce0ec1
Markdown reader: Modified to use Builder from pandoc-types 1.10.*.
2012-08-07 22:49:15 -07:00
John MacFarlane
8a101cffe3
Support hard_line_breaks markdown extension.
...
* 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-06 22:14:35 -07:00
John MacFarlane
437b9ec5a4
Started making markdown table writer sensitive to options.
...
So far incomplete.
2012-08-05 00:02:08 -07:00
John MacFarlane
c19c6fdc50
Markdown reader: look for raw html/latex blocks before tables.
...
Otherwise the following gets parsed as a table:
\begin{code}
--------------
-- My comment.
\end{code}
Closes #578 .
2012-08-04 10:49:05 -07:00
John MacFarlane
2403ca86f9
Markdown reader: Import <> from Text.Pandoc.Builder.
...
This way the module will work with versions of Data.Monoid
that don't export <>.
2012-08-02 17:25:57 -07:00
John MacFarlane
33fd791ea1
Made F a newtype, moved definitions to Parser.
...
Parser now exports F(..), askF, asksF, runF.
2012-08-02 17:12:20 -07:00