John MacFarlane
d4b71a6423
Markdown reader: Simplified and corrected footnote block parser.
2011-02-01 22:35:27 -08:00
John MacFarlane
e898f0abef
Improved fix to markdown noteBlock parser.
...
The last patch did not handle cases with > 4 spaces.
Also added a more general test case.
2011-01-31 20:42:49 -08:00
John MacFarlane
f282b462bb
Markdown reader: Fixed whitespace footnote bug (Jesse Rosenthal).
...
The problem was in input like this:
[^1]: note
not in note.
Also added a test case for this.
2011-01-31 20:05:11 -08:00
John MacFarlane
71ca44db6e
LaTeX reader: Fixed bug with whitespace at beginning of file.
...
Previously a file beginning " hi" would cause a parse error.
Also cleaned up comment parsing.
2011-01-30 08:21:48 -08:00
John MacFarlane
8a3fd7606f
Markdown reader tables: Fixed bug in alignments.
...
Previously pandoc got confused by blank rows in the header.
2011-01-29 23:09:07 -08:00
John MacFarlane
7f5130709b
RST reader: skip blanklines at beginning, not all leading spaces.
...
If you skip all spaces, it becomes impossible to start with
a blockquote.
2011-01-28 12:30:33 -08:00
John MacFarlane
f90e18b955
RST reader: Skip blank space at beginning.
...
Resolves Debian Bug #611328 .
2011-01-28 08:52:54 -08:00
John MacFarlane
f8dca6ccbc
Add support for attributes in inline Code.
...
Additional related changes:
* URLs in Code in autolinks now use class "url".
* Require highlighting-kate 0.2.8.2, which omits the final <br/> tag,
essential for inline code.
2011-01-26 20:44:25 -08:00
John MacFarlane
703c421c9e
RST reader: Improved field lists.
...
Field lists now work properly with block content.
(Thanks to Lachlan Musicman for pointing out the bug.)
In addition, definition list items are now always Para instead
of Plain -- which matches behavior of rst2xml.py.
Finally, in image blocks, the alt attribute is parsed properly
and used for the alt, not also the title.
2011-01-26 17:23:57 -08:00
John MacFarlane
80f5a89a0b
LaTeX reader: Fixed an incomplete pattern match.
2011-01-26 17:23:56 -08:00
John MacFarlane
422bba202e
RST reader: Include line breaks in raw field list parser output.
...
Note: field list items can have lists, etc. as values.
2011-01-26 17:23:56 -08:00
John MacFarlane
e66cc6728c
RST reader: Allow spaces in field list names.
2011-01-26 17:23:56 -08:00
John MacFarlane
d3667f9aac
Markdown reader: Don't parse latex/context environments as inline.
2011-01-26 17:23:56 -08:00
John MacFarlane
eb26fa6f54
Distinguish latex & context environments; blank line after in writers.
2011-01-26 17:23:56 -08:00
John MacFarlane
bd43c0f4c9
Bumped version to 1.8; depend on pandoc-types 1.8.
...
The old TeX, HtmlInline and RawHtml elements have been removed
and replaced by generic RawInline and RawBlock elements.
All modules updated to use the new raw elements.
2011-01-26 17:22:53 -08:00
John MacFarlane
38013de857
Textile writer: Don't HTML-escape between @'s.
2011-01-23 09:12:50 -08:00
John MacFarlane
628a1ef815
Textile reader: Fixed bug (swallowed p at beginning of paragraph).
...
The problem was a missing 'try' in the maybeExplicitBlock parser.
Test case, a paragraph beginning with 'p', has been added.
2011-01-23 08:59:35 -08:00
John MacFarlane
1d683be414
Textile reader: Support <tt> for inline code.
2011-01-23 00:25:05 -08:00
John MacFarlane
50d08ec2c3
Textile reader: Added code blocks with bc.
2011-01-23 00:05:35 -08:00
John MacFarlane
a74010a051
Markdown reader: slight speedup by moving whitespace parser.
2011-01-22 16:04:32 -08:00
John MacFarlane
a6d7d88b0f
RST reader: Big speed improvement (300->260ms).
...
Moved whitespace parser to top of inline parsers.
2011-01-22 16:01:42 -08:00
John MacFarlane
bfbc289871
Haddock comment improvements.
2011-01-21 09:00:05 -08:00
John MacFarlane
e1f3c6058e
Added Text.Pandoc.Readers.Native (readNative).
...
readNative can now read full pandoc documents, block lists, blocks,
inline lists, or inlines. It will interpret
Str "hi"
as if it were
Pandoc (Meta [] [] []) [Plain [Str "hi"]]
This should make testing easier.
2011-01-19 18:36:27 -08:00
John MacFarlane
e647f761ed
Use spaceChar instead of oneOf " \t" in rst reader.
2011-01-19 15:17:51 -08:00
John MacFarlane
1b8a9711b8
Replaced more noneOf/oneOf parsers.
2011-01-19 15:14:23 -08:00
John MacFarlane
a400cfe10f
Replaced uses of oneOf with more efficient parsers.
...
This speeds up the markdown reader.
2011-01-19 15:06:56 -08:00
John MacFarlane
a5cbcdfe3a
HTML reader: parse simple tables.
...
Resolves Issue #106 . Thanks to Rodja Trappe for the idea
and some sample code.
2011-01-14 20:48:10 -08:00
John MacFarlane
c31d3cc306
HTML reader: parse location tags in pSatisfy.
...
This avoids the need for manual parsing all over the place.
2011-01-14 20:47:32 -08:00
John MacFarlane
d891b2c29d
LaTeX reader: Support simple tables.
2011-01-07 10:15:48 -08:00
John MacFarlane
303ce8a9e5
LaTeX reader: allow spaces btw \\begin or \\end and {.
2011-01-06 09:34:24 -08:00
John MacFarlane
81ea1a59b4
LaTeX reader: Removed unnecessary 'spaces'.
2011-01-06 09:24:56 -08:00
John MacFarlane
1be2ca6c78
HTML reader: Fixed bug in htmlTag for comments.
2011-01-06 00:21:19 -08:00
John MacFarlane
b63a7f7c48
LaTeX reader: Apply macros to non-math; handle ensuremath.
2011-01-05 16:55:26 -08:00
John MacFarlane
18e7a7a495
LaTeX reader: Don't handle \label and \ref specially.
...
Put labels in {} instead of ().
2011-01-05 15:24:20 -08:00
John MacFarlane
1415b6831e
LaTeX reader: Support \L \l accents.
2011-01-05 14:57:06 -08:00
John MacFarlane
23aae79b01
Updated for texmath 0.5.
2011-01-05 14:44:26 -08:00
John MacFarlane
e126ab9efc
LaTeX reader: Parse inside arguments when ignoring commands.
2011-01-05 12:25:47 -08:00
John MacFarlane
c3071ff6e9
LaTeX reader: Don't handle \index separately.
...
Instead, just put it in list of commands to ignore.
2011-01-05 12:05:04 -08:00
John MacFarlane
b26247a4a8
LaTeX reader: Added "index" to ignorable commands.
2011-01-05 11:56:37 -08:00
John MacFarlane
cf6cd15c27
LaTeX reader: skip space before option or argument.
2011-01-05 11:54:40 -08:00
John MacFarlane
d033fc9d3e
LaTeX reader: Skip \index commands.
2011-01-05 10:11:24 -08:00
John MacFarlane
c949530815
LaTeX reader: Removed \group (we want to parse inside {}).
2011-01-05 10:06:51 -08:00
John MacFarlane
3dab6c574c
LaTeX reader: Better handling of preamble, inc. parsing macros.
2011-01-05 09:04:03 -08:00
John MacFarlane
85bfd26b78
LaTeX reader: Parse bracketed {parts} as raw TeX.
2011-01-04 22:20:35 -08:00
John MacFarlane
22b2c02aeb
Markdown reader: Removed unneeded definitions.
...
specialChars, strChar, specialCharsMinusLt.
2011-01-04 22:11:56 -08:00
John MacFarlane
dac2e9156f
LaTeX reader: parse macros and apply to math.
2011-01-04 19:18:20 -08:00
John MacFarlane
fcbe1e95eb
Moved 'macro' and 'applyMacros'' from markdown reader to Parsing.
2011-01-04 19:12:33 -08:00
John MacFarlane
3e61333af0
Fixed regression in markdown reader.
...
'(_hi_)' was being parsed with literal underscores (no emphasis).
The fix: the 'str' parser now only parses alphanumerics and
embedded underscores. All other symbols are handled by the
'symbol' parser. This has a slight effect on the AST, since
you'll get [Str "hi",Str ":"] insntead of [Str "hi:"]. But there
should not be a visible effect in any of the writers.
Thanks to gwern for pointing out the regression.
2011-01-01 22:46:30 -08:00
John MacFarlane
b05e739c6d
LaTeX reader: Allow ignored comments after \end{document}.
2010-12-30 22:05:19 -08:00
John MacFarlane
d6f28af9cb
HTML reader: Fixed some parsing bugs.
2010-12-30 19:33:37 -08:00