John MacFarlane
4bf9d362d2
Textile reader: Turn on smart punctuation by default.
2010-12-03 23:10:52 -08:00
John MacFarlane
0356ad4de6
Textile reader: drop leading, trailing newline in pre block.
...
This is consistent with how the other readers work.
2010-12-03 23:10:52 -08:00
John MacFarlane
36d4aa4a09
Textile reader: modified str to handle acronyms, hyphens.
...
* A single hyphen between two word characters is no longer a
potential strikeout-starter.
* Acronym explanations are dropped.
2010-12-03 23:10:52 -08:00
John MacFarlane
f415e9e119
Textile reader: parse raw by default.
...
It's part of the textile spec to allow raw HTML,
just as with markdown.
-R is no longer needed in test suite.
2010-12-03 23:10:52 -08:00
paul.rivier
c3866f3c66
punctuation handling, and more html-specific handling
2010-12-03 23:10:52 -08:00
Paul Rivier
d724c6b568
html inlines and html blocks handling in textile reader
2010-12-03 23:10:51 -08:00
Paul Rivier
fa0866886b
textile reader now ignores html/css attributes
2010-12-03 23:10:51 -08:00
Paul Rivier
e6dde36622
removed support for textile Inserted construct
2010-12-03 23:10:51 -08:00
Paul Rivier
593b4f6c94
fix autolink by promoting it in the parser list, fix table parabreak
2010-12-03 23:10:51 -08:00
Paul Rivier
a7da0672dc
more support for Textile reader (explicit links, images), tests and cabal entries
2010-12-03 23:10:51 -08:00
paul.rivier
cfc70863a3
simpler table cell handling
2010-12-03 23:10:51 -08:00
paul.rivier
d917db5e42
preliminary material toward table support
2010-12-03 23:10:51 -08:00
paul.rivier
75fa22c300
textile reader now imports import Text.Pandoc.Parsing
2010-12-03 23:10:50 -08:00
paul.rivier
d532c72c5b
Basic Textile Reader
2010-12-03 23:10:50 -08:00
John MacFarlane
4c21c5566d
Merge branch 'master' into citeproc
2010-11-28 20:21:07 -08:00
John MacFarlane
3ffd724617
Markdown parser performance improvement.
...
Do a quick lookahead to make sure what follows looks like a setext
header before parsing any Inlines. This gives a 15% performance
boost in one benchmark. Many thanks to knieriem for finding
the problem (in peg-markdown):
https://github.com/jgm/peg-markdown/issues/issue/3
2010-11-28 20:19:32 -08:00
John MacFarlane
0ca84f0d38
Markdown suffix parser fix.
...
If suffix doesn't begin with punctuation, include opening
comma and space in result.
Previously,
@item [only a suffix]
would result in something like
Doe (2002only a suffix)
because there was no opening delimiter.
2010-11-26 22:34:53 -08:00
John MacFarlane
0871a512d7
Split locator and suffix in Biblio rather than Markdown parser.
...
Patch from Nathan Gass.
2010-11-26 12:06:56 -08:00
John MacFarlane
b48fa0ea59
Check biblio for all citations, not just textual.
2010-11-22 23:09:30 -08:00
John MacFarlane
7ef7d85b3f
HTML reader: Export htmlTag.
2010-11-20 22:10:16 -08:00
John MacFarlane
6390103509
Markdown citation parser: small refactoring for clarity.
2010-11-18 14:16:18 -08:00
John MacFarlane
f3bb3c1ff1
Markdown citation parser improvements and test updates.
...
Now we handle a suffix after a bare locator, e.g.
@item1 [p. 30, suffix]
The suffix now includes any punctuation that introduces it.
A few tests fail because of problems with citeproc (extra space
before the suffix, missing space after comma separating multiple
page ranges in the locator).
2010-11-18 13:22:20 -08:00
John MacFarlane
aaf7de0dda
Markdown reader: Revised parser for new citation syntax.
...
Suffixes and prefixes are now [Inline]. The locator is separated
from the citation key by a blank space. The locator consists of
one introductory word and any number of words containing at
least one digit. The suffix, if any, is separated from the locator
by a comma, and continues til the end of the citation.
2010-11-18 12:38:45 -08:00
John MacFarlane
47c64d4fc4
Don't pass a [Str ""] as citationPrefix.
2010-11-17 15:35:53 -08:00
John MacFarlane
ce9fc2a37d
Updated for changes in Citaiton type.
...
citationPrefix now [Inline] rather than String;
citationSuffix added.
This change presupposes no changes in citeproc-hs.
It passes a string for these values to citeproc-hs.
Eventually, citeproc-hs should use an [Inline] for
these as well.
2010-11-16 20:31:22 -08:00
John MacFarlane
1fa2973da6
Repairs to citation parser + citation test suite.
2010-11-12 19:30:59 -08:00
John MacFarlane
79bab2d210
Revised citation parsers for markdown reader.
...
Added a form for in-text citations:
@doe99 [30; see also @smith99].
2010-11-12 00:37:44 -08:00
John MacFarlane
1bfd8110af
Merge branch 'master' into citeproc
2010-11-11 21:31:15 -08:00
John MacFarlane
36d4e649a6
Added support for textual citations (but not yet markdown syntax).
...
Patch from Andrea Rossato.
2010-11-11 21:30:34 -08:00
John MacFarlane
ca51bbbf16
HTML reader: don't parse raw HTML inside <code> tag.
...
Previously '<code><a>x</a></code>' would be parsed as
Code "<a>x</a>", which is not what you want.
2010-11-11 20:02:37 -08:00
John MacFarlane
83e6c01e4d
Merge branch 'master' into citeproc
2010-11-09 22:52:36 -08:00
John MacFarlane
21556e37f4
Allow HTML comments as inline elements in markdown.
...
So,
aaa <!-- comment --> bbb
can be a single paragraph.
2010-11-09 22:51:02 -08:00
John MacFarlane
23c6f56bc5
Removed CITEPROC CPP conditionals from library code.
...
By Cabal policy, the API should not change depending on flags.
2010-11-06 14:58:54 -07:00
John MacFarlane
f7f6b2427d
Changes to use citeproc-hs 0.3.
2010-11-06 14:43:23 -07:00
John MacFarlane
ac06ca2b00
Changes to use citeproc 0.3.
...
Patch from Andrea Rossato.
Note: the markdown syntax is preliminary and will probably change.
2010-10-27 18:25:59 -07:00
John MacFarlane
f870777c36
Parse blanklines after macro definitions.
2010-10-26 19:52:12 -07:00
John MacFarlane
6b722d1b45
Process LaTeX macros in markdown, and apply to TeX math.
...
Example:
\newcommand{\plus}[2]{#1 + #2}
$\plus{3}{4}$
yields:
3+4
2010-10-26 09:03:03 -07:00
John MacFarlane
4d08bc38a9
TeXMath: handle variables modified with \acute, \bar, etc.
...
Complete list: \acute, \grave, \breve, \check, \dot,
\mathring, \vec, \overrightarrow, \overleftarrow, \hat,
\tilde, \bar.
2010-10-19 15:03:30 -07:00
John MacFarlane
11672c4987
TeXMath reader: handle \textit, \textbf, etc.
2010-10-19 13:22:50 -07:00
John MacFarlane
2253c8ef65
Require texmath >= 0.3, adjusted for new elements.
2010-07-22 15:06:46 -07:00
John MacFarlane
68e3f83545
HTML reader: code cleanup + parse <tt> as Code.
...
Partially resolves Issue #247 .
2010-07-14 09:39:48 -07:00
John MacFarlane
71b4700669
Made latex \section, \chapter parsers more forgiving of whitespace.
2010-07-13 19:22:41 -07:00
John MacFarlane
0b23956d48
Parse \chapter{} in latex.
...
+ Added stateHasChapters to ParserState.
+ If a \chapter command is encountered, this is set to True
and subsequent \section commands (etc.) will be bumped up
one level.
2010-07-13 19:18:58 -07:00
John MacFarlane
afe18e53f1
Modified example refs so they can occur before or after target.
...
The refs are now replaced by numbers at the final stage, using
processWith.
2010-07-12 23:05:46 -07:00
John MacFarlane
0181e66250
Merge branch 'atlists'. Added auto-numbered example lists.
2010-07-11 22:47:52 -07:00
John MacFarlane
73b4cc0897
Minor comment change.
2010-07-06 21:23:25 -07:00
John MacFarlane
7d687684aa
Allow language-neutral table captions.
...
+ Captions may now begin simply with ':', instead of 'Table:'
+ Captions may now appear either above or below the table.
+ Resolves Issue #227 .
2010-07-06 21:02:26 -07:00
John MacFarlane
6a8fa53f6c
More refactoring of grid table code.
2010-07-05 23:43:07 -07:00
John MacFarlane
869946114e
Moved generic grid table functions from RST reader -> Parsing.
...
Here they can be used by the Markdown reader as well.
2010-07-05 14:34:48 -07:00
John MacFarlane
998fd098d0
Moved parsing functions from Text.Pandoc.Shared to new module.
...
+ Text.Pandoc.Parsing
2010-07-05 00:06:27 -07:00