Commit graph

1355 commits

Author SHA1 Message Date
fiddlosopher
2a6803c7b6 Removed reference to html2markdown wrapper in wrapper flag description.
git-svn-id: https://pandoc.googlecode.com/svn/trunk@1653 788f1e2b-df1e-0410-8736-df70ead52e1b
2009-12-07 08:26:22 +00:00
fiddlosopher
ad5450266c Allow markdown tables without headers.
Resolves Issue #50. The new syntax is described in README.
Also allow optional line of dashes at bottom of simple tables.

git-svn-id: https://pandoc.googlecode.com/svn/trunk@1652 788f1e2b-df1e-0410-8736-df70ead52e1b
2009-12-05 21:34:46 +00:00
fiddlosopher
de38adc7f3 Docbook writer: add ids to sections. Use link for internal links.
See Issue #60.

git-svn-id: https://pandoc.googlecode.com/svn/trunk@1651 788f1e2b-df1e-0410-8736-df70ead52e1b
2009-12-05 18:26:29 +00:00
fiddlosopher
78475498b4 Added --id-prefix option.
This adds a prefix to all automatically generated HTML identifiers,
which helps prevent duplicate identifiers when you're generating
a fragment (say a blog post).

Added writerIdentifierPrefix to WriterOptions.

Resolves Issue #41.

git-svn-id: https://pandoc.googlecode.com/svn/trunk@1650 788f1e2b-df1e-0410-8736-df70ead52e1b
2009-12-05 17:56:02 +00:00
fiddlosopher
61f7a4f869 Markdown reader: Compensate for width of final table column.
Resolves Issue #144.

git-svn-id: https://pandoc.googlecode.com/svn/trunk@1649 788f1e2b-df1e-0410-8736-df70ead52e1b
2009-12-05 07:47:09 +00:00
fiddlosopher
da6291d930 Fixed handling of footnotes in titles (HTML) and headers (LaTeX).
Resolves Issues #137.

git-svn-id: https://pandoc.googlecode.com/svn/trunk@1648 788f1e2b-df1e-0410-8736-df70ead52e1b
2009-12-05 07:28:50 +00:00
fiddlosopher
90c335c463 Added stripTags to Text.Pandoc.XML.
This is used in the HTML writer.

git-svn-id: https://pandoc.googlecode.com/svn/trunk@1647 788f1e2b-df1e-0410-8736-df70ead52e1b
2009-12-05 07:28:45 +00:00
fiddlosopher
8671bc5a1b Markdown reader: Treat a backslash followed by a newline as hard linebreak.
Resolves Issue #154.

git-svn-id: https://pandoc.googlecode.com/svn/trunk@1646 788f1e2b-df1e-0410-8736-df70ead52e1b
2009-12-05 05:33:24 +00:00
fiddlosopher
94841b7602 Added "head" to list of HTML block-level tags.
Resolves Issue #108.

git-svn-id: https://pandoc.googlecode.com/svn/trunk@1645 788f1e2b-df1e-0410-8736-df70ead52e1b
2009-12-05 04:47:08 +00:00
fiddlosopher
ef7692db61 Updated changelog.
git-svn-id: https://pandoc.googlecode.com/svn/trunk@1644 788f1e2b-df1e-0410-8736-df70ead52e1b
2009-12-05 04:47:02 +00:00
fiddlosopher
eb5550a6e4 Changed --default-code-classes -> --indented-code-classes.
Also changed stateDefaultCodeClasses -> stateIndentedCodeClasses.

git-svn-id: https://pandoc.googlecode.com/svn/trunk@1643 788f1e2b-df1e-0410-8736-df70ead52e1b
2009-12-05 04:46:57 +00:00
fiddlosopher
c4915eace0 Bumped version to 1.3 in inno setup script.
git-svn-id: https://pandoc.googlecode.com/svn/trunk@1642 788f1e2b-df1e-0410-8736-df70ead52e1b
2009-12-01 20:45:20 +00:00
fiddlosopher
8c23996fae Version bump to 1.3 (because of change to ParserState).
git-svn-id: https://pandoc.googlecode.com/svn/trunk@1641 788f1e2b-df1e-0410-8736-df70ead52e1b
2009-12-01 20:35:52 +00:00
fiddlosopher
d855599769 Install pcre3 dll in windows setup.
This is required for highlighting.

git-svn-id: https://pandoc.googlecode.com/svn/trunk@1640 788f1e2b-df1e-0410-8736-df70ead52e1b
2009-12-01 20:35:44 +00:00
fiddlosopher
4a83fc12a6 Added pcre3.dll and license to windows directory.
This is needed for the windows package.

git-svn-id: https://pandoc.googlecode.com/svn/trunk@1639 788f1e2b-df1e-0410-8736-df70ead52e1b
2009-12-01 20:35:37 +00:00
fiddlosopher
a42703d3c0 Allow . and ~ in header identifiers.
git-svn-id: https://pandoc.googlecode.com/svn/trunk@1638 788f1e2b-df1e-0410-8736-df70ead52e1b
2009-12-01 07:44:06 +00:00
fiddlosopher
df0ce7658c Added --default-code-classes option.
This specifies classes to use for indented code blocks.
Thanks to buttock for the (slightly modified) patch.
Resolves Issue #87.

git-svn-id: https://pandoc.googlecode.com/svn/trunk@1637 788f1e2b-df1e-0410-8736-df70ead52e1b
2009-12-01 06:56:47 +00:00
fiddlosopher
65f05e036a Updated README section on header identifiers.
git-svn-id: https://pandoc.googlecode.com/svn/trunk@1636 788f1e2b-df1e-0410-8736-df70ead52e1b
2009-12-01 06:56:41 +00:00
fiddlosopher
a84472e054 Allow _ character in automatically generated identifiers.
git-svn-id: https://pandoc.googlecode.com/svn/trunk@1635 788f1e2b-df1e-0410-8736-df70ead52e1b
2009-11-29 20:37:55 +00:00
fiddlosopher
80a4a03df7 Markdown reader: treat 4 or more * or _ in a row as literal text.
(Instead of trying to parse as strong or emph, which leads to
exponential performance problems.)

git-svn-id: https://pandoc.googlecode.com/svn/trunk@1634 788f1e2b-df1e-0410-8736-df70ead52e1b
2009-11-29 19:31:58 +00:00
fiddlosopher
93d202cbd1 Markdown reader: Use + rather than %20 for spaces in URLs.
git-svn-id: https://pandoc.googlecode.com/svn/trunk@1633 788f1e2b-df1e-0410-8736-df70ead52e1b
2009-11-29 19:31:50 +00:00
fiddlosopher
c860fb9117 Updated changelog.
git-svn-id: https://pandoc.googlecode.com/svn/trunk@1632 788f1e2b-df1e-0410-8736-df70ead52e1b
2009-11-28 03:22:36 +00:00
fiddlosopher
98ff6b2fd0 Better looking simple tables. Resolves Issue #180.
* Markdown reader: simple tables are now given column widths of 0.

* Column width of 0 is interpreted as meaning: use default column width.

* Writers now include explicit column width information only
  for multiline tables.  (Exception:  RTF writer, which requires
  column widths.  In this case, columns are given equal widths,
  adding up to the text width.)

* Simple tables should now look better in most output formats.

git-svn-id: https://pandoc.googlecode.com/svn/trunk@1631 788f1e2b-df1e-0410-8736-df70ead52e1b
2009-11-28 03:22:33 +00:00
fiddlosopher
7c6467a115 Bumped version to 1.2.2 and updated changelog.
git-svn-id: https://pandoc.googlecode.com/svn/trunk@1630 788f1e2b-df1e-0410-8736-df70ead52e1b
2009-11-28 03:22:22 +00:00
fiddlosopher
d1b80f8f35 Markdown reader: parse refs and notes in the same pass.
Previously the markdown reader made one pass for references,
a second pass for notes (which it parsed and stored in the
parser state), and a third pass for the rest.  This patch
achieves a 10% speed improvement by storing the raw notes
on the first (reference) pass, then parsing them when the
notes are inserted into the AST. This eliminates the need
for a second pass to parse notes.

git-svn-id: https://pandoc.googlecode.com/svn/trunk@1629 788f1e2b-df1e-0410-8736-df70ead52e1b
2009-11-28 03:22:18 +00:00
fiddlosopher
1d440130c4 Added \int to characters handled as unicode in tex math.
Resolves Issue #177.

git-svn-id: https://pandoc.googlecode.com/svn/trunk@1628 788f1e2b-df1e-0410-8736-df70ead52e1b
2009-11-28 03:22:14 +00:00
fiddlosopher
6426664bcd Makefile: Don't try to build man pages in build-doc.
They are now built by Cabal.

git-svn-id: https://pandoc.googlecode.com/svn/trunk@1627 788f1e2b-df1e-0410-8736-df70ead52e1b
2009-11-28 03:22:10 +00:00
fiddlosopher
b58232de70 Updated changelog.
git-svn-id: https://pandoc.googlecode.com/svn/trunk@1626 788f1e2b-df1e-0410-8736-df70ead52e1b
2009-11-22 18:31:41 +00:00
fiddlosopher
11867521f7 Version bump to 1.2.1.1.
git-svn-id: https://pandoc.googlecode.com/svn/trunk@1625 788f1e2b-df1e-0410-8736-df70ead52e1b
2009-11-22 18:31:38 +00:00
fiddlosopher
81c3bd6a54 Modified markdown2pdf so as not to create a backup file.
Resolves Issue #166.

git-svn-id: https://pandoc.googlecode.com/svn/trunk@1624 788f1e2b-df1e-0410-8736-df70ead52e1b
2009-11-22 18:07:33 +00:00
fiddlosopher
4c387a4bc7 Added markdown2pdf.1 to tmp-files in cabal.
git-svn-id: https://pandoc.googlecode.com/svn/trunk@1623 788f1e2b-df1e-0410-8736-df70ead52e1b
2009-11-22 08:20:51 +00:00
fiddlosopher
db01801199 Use utf8-string IO in markdown2pdf.hs.
git-svn-id: https://pandoc.googlecode.com/svn/trunk@1622 788f1e2b-df1e-0410-8736-df70ead52e1b
2009-11-21 06:22:02 +00:00
fiddlosopher
14a25b287c Fixed htmlComment parser.
(Added a needed try.)

git-svn-id: https://pandoc.googlecode.com/svn/trunk@1621 788f1e2b-df1e-0410-8736-df70ead52e1b
2009-11-21 05:23:09 +00:00
fiddlosopher
39f6af5de4 Modified html+lhs output to use 'haskell' highlighter.
The bird tracks are added in the highlighting module.
This makes sense, because the kate's haskell highlighter
is much better than the literateHaskell highlighter.

git-svn-id: https://pandoc.googlecode.com/svn/trunk@1620 788f1e2b-df1e-0410-8736-df70ead52e1b
2009-11-21 04:40:59 +00:00
fiddlosopher
9d20eeb019 Support for "..code-block" directive in RST reader.
Not core RST, but used in Sphinx for code blocks annotated with
syntax information.  Thanks to Luke Plant for the patch.

git-svn-id: https://pandoc.googlecode.com/svn/trunk@1619 788f1e2b-df1e-0410-8736-df70ead52e1b
2009-11-17 03:36:04 +00:00
fiddlosopher
fce48c392a Specially mark code blocks that were "literate" in the input.
They can then be treated differently in the writers.  This allows
authors to distinguish bits of the literate program they are writing
from source code examples, even if the examples are marked as
Haskell for highlighting.

Resolves Issue #174.

git-svn-id: https://pandoc.googlecode.com/svn/trunk@1618 788f1e2b-df1e-0410-8736-df70ead52e1b
2009-11-03 06:50:17 +00:00
fiddlosopher
683b8e10b5 Set utf-8 encoding in texinfo headers.
Resolves Issue #153.

git-svn-id: https://pandoc.googlecode.com/svn/trunk@1617 788f1e2b-df1e-0410-8736-df70ead52e1b
2009-11-01 02:48:20 +00:00
fiddlosopher
313d2e40b8 Changed heuristic in compactify.
compactify has to decide whether a Para that ends a list is a Para
intentionally, or just because of the blank lines at the end of
every list.  In the latter case the Para is turned to a Plain.

The old heuristic was:  change final Para to Plain iff the other
items all end in Plain.  This produces bad results when, for example,
an item contains just a Plain and an HTML comment, as it

- a
<!--
- b
-->
-c

The new heuristic:  change final Para to Plain iff the other items
don't contain a Para.

git-svn-id: https://pandoc.googlecode.com/svn/trunk@1616 788f1e2b-df1e-0410-8736-df70ead52e1b
2009-11-01 02:38:18 +00:00
fiddlosopher
eb2e560d86 Properly handle commented-out list items in markdown.
Example:
- a
<!--
- b
-->
- c

Resolves Issue #142.

git-svn-id: https://pandoc.googlecode.com/svn/trunk@1615 788f1e2b-df1e-0410-8736-df70ead52e1b
2009-11-01 02:38:15 +00:00
fiddlosopher
a4a5d41441 Don't build Haskell wrappers in Makefile.
git-svn-id: https://pandoc.googlecode.com/svn/trunk@1614 788f1e2b-df1e-0410-8736-df70ead52e1b
2009-10-31 21:09:30 +00:00
fiddlosopher
10e0f03e02 Added link to pandoc-mode for emacs to website.
git-svn-id: https://pandoc.googlecode.com/svn/trunk@1613 788f1e2b-df1e-0410-8736-df70ead52e1b
2009-10-31 19:26:04 +00:00
fiddlosopher
75f31c9440 Added % as an rst underline character.
Resolves Issue #173.

git-svn-id: https://pandoc.googlecode.com/svn/trunk@1612 788f1e2b-df1e-0410-8736-df70ead52e1b
2009-10-29 05:52:17 +00:00
fiddlosopher
2d47831f9a Updated COPYRIGHT file.
git-svn-id: https://pandoc.googlecode.com/svn/trunk@1611 788f1e2b-df1e-0410-8736-df70ead52e1b
2009-10-24 19:34:31 +00:00
fiddlosopher
9ae05c1a06 Updated HCAR report.
git-svn-id: https://pandoc.googlecode.com/svn/trunk@1610 788f1e2b-df1e-0410-8736-df70ead52e1b
2009-10-14 20:00:58 +00:00
fiddlosopher
7163a044a4 Fix inline math parser so that \$ is allowed in math.
Resolves Issue #169.

git-svn-id: https://pandoc.googlecode.com/svn/trunk@1609 788f1e2b-df1e-0410-8736-df70ead52e1b
2009-10-12 03:40:47 +00:00
fiddlosopher
74ac66a0cb Added haddock comments warning that readers assume \n line endings.
git-svn-id: https://pandoc.googlecode.com/svn/trunk@1608 788f1e2b-df1e-0410-8736-df70ead52e1b
2009-10-04 22:09:23 +00:00
fiddlosopher
6191a1fa74 Fixed markdown2pdf.hs to accept --longopt=val options.
git-svn-id: https://pandoc.googlecode.com/svn/trunk@1607 788f1e2b-df1e-0410-8736-df70ead52e1b
2009-08-22 02:26:51 +00:00
fiddlosopher
69a84f7b14 Changed EXECSBASE so it doesn't pull in hsmarkdown & markdown2pdf.
Otherwise strip tries to strip shell scripts when you install
using 'make'.

git-svn-id: https://pandoc.googlecode.com/svn/trunk@1606 788f1e2b-df1e-0410-8736-df70ead52e1b
2009-08-13 20:07:44 +00:00
fiddlosopher
1fe28483bd Fixed bug in HTML comment parser.
Resolves Issue #157.  ('try' in the wrong place.)

git-svn-id: https://pandoc.googlecode.com/svn/trunk@1605 788f1e2b-df1e-0410-8736-df70ead52e1b
2009-07-21 08:02:03 +00:00
fiddlosopher
adabf14a5f Better installation instructions on website.
git-svn-id: https://pandoc.googlecode.com/svn/trunk@1604 788f1e2b-df1e-0410-8736-df70ead52e1b
2009-07-19 07:07:53 +00:00