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
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
e9cfbd5adc
OpenDocument writer: don't print raw TeX.
2010-11-27 14:57:48 -08:00
John MacFarlane
970f63c18a
LaTeX writer: Escape curly quotes.
2010-11-27 11:53:30 -08:00
John MacFarlane
c989bf028f
Merge branch 'textile'
...
Conflicts:
README
man/man1/pandoc.1.md
pandoc.cabal
2010-11-27 10:52:44 -08:00
John MacFarlane
71c9316a59
Use [] for superscripts and subscripts in textile writer.
2010-11-27 10:44:58 -08:00
John MacFarlane
cae3f8edba
Fixed spacing problems in textile nested lists.
2010-11-27 10:44:35 -08:00
John MacFarlane
c2636e61d7
Treat argument as URI only if it has http(s) scheme.
...
Previously pandoc would treat the c: in some windowns filespecs
as a URI scheme and try to download... Thanks to Peter Wang for
pointing this out.
2010-11-12 18:30:50 -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
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
bd24e83c81
--mathjax: Use mathjax with raw latex rather than mathml.
...
It seems to work better, and the default config can be used.
2010-10-31 18:55:35 -07:00
John MacFarlane
9cf27c92c1
Added support for MathJax for displaying math in HTML.
...
Added --mathjax option.
Added MathJax to HTMLMathMethod.
Supported MathJax in HTML writer.
Resolves Issue #259 .
2010-10-26 21:07:51 -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
7e9e959548
LaTeX & ConTeXt writers: escape [ and ] as {[} and {]}.
...
This avoids unwanted interpretation as optional arguments
in some contexts, which caused the brackets to silently
disappear!
2010-10-24 19:38:16 -07:00
John MacFarlane
220a20bf92
Changed --help message for --variable to KEY:VALUE.
...
Was previously FILENAME.
2010-10-24 19:17: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
ca5217881d
Encode filenames as UTF8.
...
Resolves Issue #252 (pandoc doesn't properly handle unicode filenames).
2010-09-10 19:53:45 -07:00
John MacFarlane
6ccdde5571
gladTeX HTML - specify ENV for display or inline.
...
Thanks to Jonathan Daugherty for the patch.
The gladTeX program gives finer control over the LaTeX environment
used to render its input. The latest version (1.1) uses the
"displaymath" environment by default, which is nice for large,
block-level equations, but it isn't so nice for inline math (where
"math" is more appropriate). This patch causes the HTML writer to
differentiate between the two by explicitly setting the LaTeX
environment on the generated EQ tag.
2010-08-01 08:30:04 -07:00
John MacFarlane
8fe468463e
--offline implies --standalone.
2010-07-24 00:49:10 -07:00
John MacFarlane
01a191709e
Moved Text.Pandoc.Writers.S5 -> Text.Pandoc.S5.
...
Now it doesn't export a writer, just some CSS and JS.
2010-07-22 23:37:06 -07:00
John MacFarlane
851d39f8f8
Improved cutUp function, removed extra </div>
2010-07-22 23:23:47 -07:00
John MacFarlane
a11b530935
Moved s5 writing from S5 module to HTML.
...
Now s5 is handled in more or less the same way as slidy,
as a variant of HTML.
2010-07-22 22:58:48 -07:00
John MacFarlane
da52412455
Extended --offline to s5.
...
S5 default is now to include links, rather than a full copy
of scripts and stylesheets.
2010-07-22 22:23:43 -07:00
John MacFarlane
c5ed016616
Added new --offline option for slidy.
...
Added slidy/slidy.min.{css,js}.
2010-07-22 21:50:53 -07:00
John MacFarlane
5fd1389263
Slidy writer: Avoid spurious blank page.
2010-07-22 17:28:15 -07:00
John MacFarlane
a3051b8acb
Export HTMLSlideVariant in Text.Pandoc.
2010-07-22 17:12:57 -07:00
John MacFarlane
2253c8ef65
Require texmath >= 0.3, adjusted for new elements.
2010-07-22 15:06:46 -07:00
John MacFarlane
4c88ecaeca
Changed to using strict bytestrings in UTF8 module.
...
This avoids a problem on Windows reading from stdin.
Previously we'd get an error from hGetBufNonBlocking.
2010-07-21 15:14:20 -07:00
John MacFarlane
87cd12a573
Avoid shadowing when compiling with citeproc.
2010-07-21 11:24:37 -07:00
John MacFarlane
feb70b6e93
Made spacing at end of output more consistent.
...
Previously some of the writers added spurious whitespace.
This has been removed, resolving Issue #232 .
NOTE: If your application combines pandoc's output with other
text, for example in a template, you may need to add spacing.
For example, a pandoc-generated markdown file will not have
a blank line after the final block element. If you are inserting
it into another markdown file, you will need to make sure there
is a blank line between it and the next block element.
2010-07-20 12:42:12 -07:00
John MacFarlane
465a4a6699
Slidy writer: create new slide at every level 1 header.
2010-07-18 23:06:22 -07:00
John MacFarlane
85f8c51b64
Use default highlighting CSS rather than embedding CSS in templates.
2010-07-16 00:23:13 -07:00
John MacFarlane
9be9bccfcf
Added --section-divs option.
...
+ Header identifiers now get attached to the headers, unless
--section-divs is specified, in which case they are added to
enclosing divs. By default, the divs are not added.
+ Resolves Issue #230 , #239 .
2010-07-15 22:26:45 -07:00
John MacFarlane
57a91f3b6a
Added --webtex option for HTML math.
...
+ Added --webtex command-line option, with optional parameter.
(Defaults to using google charts API.)
+ Added WebTeX HTMLMathMethod.
+ Removed MimeTeX HTMLMathMethod. (WebTeX is generic and subsumes it.)
+ Modified --mimetex option to use WebTeX.
+ Thanks to lpeterse for the idea and some of the code.
2010-07-15 19:01:00 -07:00
John MacFarlane
8757da76b0
Improved handling of code in man writer.
...
+ Inline code is now in monoscpace, not bold.
+ Code blocks now use .nf (no fill) and .IP (indented paragraph).
+ Resolves Issue #247 .
2010-07-14 10:58:34 -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
851c5e6ae2
Code cleanup, S5 writer.
2010-07-14 09:04:17 -07:00
John MacFarlane
255aa7eb6e
Improved Slidy writer.
...
We now carve up slides at HorizontalRules, rather than by level-1
headers. This gives the user lots of flexibility.
2010-07-13 23:41:18 -07:00
John MacFarlane
9b833e8744
Added a slidy writer.
...
Resolves Issue #122 .
2010-07-13 20:44:56 -07:00