git.iko.soy/typeable/pandoc
on 0.10 help sign in
all commits
7bc37e4Use 'fig:' instead of '\SOH' in title to indicate figure.John MacFarlane 1a4b47eImplemented Ext_implicit_figures.John MacFarlane d599c4cAdded Attr field to Header.John MacFarlane 8c48bd8Don't put the text of an autolink in Code font.John MacFarlane fadc7b0Major rewrite of markdown reader.John MacFarlane a579e2cReplaced Apostrophe, Ellipses, EmDash, EnDash w/ unicode strings.John MacFarlane f8dca6cAdd support for attributes in inline Code.John MacFarlane 932fc12Updated tests.John MacFarlane bd43c0fBumped version to 1.8; depend on pandoc-types 1.8.John MacFarlane 5c35be1Make sure native output ends in newline with --standalone.John MacFarlane 52b6e38Updated tests for new native format.John MacFarlane 3e61333Fixed regression in markdown reader.John MacFarlane feb70b6Made spacing at end of output more consistent.John MacFarlane 36675bdAdded accessors (docTitle, docAuthors, docDate) to Meta type.fiddlosopher 3ec8772Changed Meta author and date types to Inline lists instead of Strings.fiddlosopher 5082b54Improved syntax for markdown definition lists.fiddlosopher ab100f7Markdown reader: improved efficiency of abbreviation parsing.fiddlosopher f53fb55Support for display math; changed ASCIIMathML -> LaTeXMathML: Resolves Issue #47.fiddlosopher 7c35c0bFixed bug in Markdown parser: regular $s triggering math mode. For example: "shoes ($20) and socks ($5)."fiddlosopher 824bb2dIn smart mode, use nonbreaking spaces after abbreviations in markdown parser. Thus, for example, "Mr. Brown" comes out as "Mr.~Brown" in LaTeX, and does not produce a sentence-separating space. Resolves Issue #75.fiddlosopher 8ed710bTreat '\ ' in (extended) markdown as nonbreaking space. Print nonbreaking space appropriately in each writer (e.g. ~ in LaTeX).fiddlosopher cd38d4aMarkdown smart typography: Em dashes no longer eat surrounding whitespace. Resolves Issue #69.fiddlosopher db0d658Updated test suite to new baseline (but no tests yet for new code block syntax).fiddlosopher fa0ab86Modified tests for new argument in CodeBlock.fiddlosopher aea6f68Removed support for "box-style" block quotes in markdown. This adds unneeded complexity and makes pandoc diverge further than necessary from other markdown extensions. Brought documentation, tests, and debian/changelog up to date.fiddlosopher b008e5dModified writer tests for new Math and TeX output.fiddlosopher f11360fAdded new rule for enhanced markdown ordered lists: if the list marker is a capital letter followed by a period (including a single-letter capital roman numeral), then it must be followed by at least two spaces. The point of this is to avoid accidentally treating people's initials as list markers: a paragraph may begin:fiddlosopher e48f046+ Fixed bug in markdown ordered list parsing. The problem was that anyOrderedListStart did not check for a space following the ordered list marker. So, 'A.B. 2007' would be parsed as a list item, then fail because of the lack of space after 'A.' (required by orderedListStart). Resolves Issue #22. + Fixed a similar problem in RST reader. + Added regression test.fiddlosopher e814a3fMajor change in the way ordered lists are handled: + The changes are documented in README, under Lists. + The OrderedList block element now stores information about list number style, list number delimiter, and starting number. + The readers parse this information, when possible. + The writers use this information to style ordered lists. + Test suites have been changed accordingly.fiddlosopher de72aeaBrought test suite up to date.fiddlosopher c9e89e1Updated test suite for writers, adding tests for strikeout, superscript, subscript.fiddlosopher 17caba2Added a test case with an inline link containing bracketed text.fiddlosopher 5660e6bUpdated test suite with new tests for definition lists.fiddlosopher 23df0edExtensive changes stemming from a rethinking of the Pandoc data structure. Key and Note blocks have been removed. Link and image URLs are now stored directly in Link and Image inlines, and note blocks are stored in Note inlines. This requires changes in both parsers and writers. Markdown and RST parsers need to extract data from key and note blocks and insert them into the relevant inline elements. Other parsers can be simplified, since there is no longer any need to construct separate key and note blocks. Markdown, RST, and HTML writers need to construct lists of notes; Markdown and RST writers need to construct lists of link references (when the --reference-links option is specified); and the RST writer needs to construct a list of image substitution references. All writers have been rewritten to use the State monad when state is required. This rewrite yields a small speed boost and considerably cleaner code.fiddlosopher 8e0ad5aCleaned up handling of embedded quotes in link titles. Now these are stored as a '"' character, not as '"'. The function escapeLinkTitle in the Markdown writer is unnecessary and was removed. Tests modified accordingly.fiddlosopher d064171Changes in entity handling: + Entities are parsed (and unicode characters returned) in both Markdown and HTML readers. + Parsers characterEntity, namedEntity, decimalEntity, hexEntity added to Entities.hs; these parse a string and return a unicode character. + Changed 'entity' parser in HTML reader to use the 'characterEntity' parser from Entities.hs. + Added new 'entity' parser to Markdown reader, and added '&' as a special character. Adjusted test suite accordingly since now we get 'Str "AT",Str "&",Str "T"' instead of 'Str "AT&T".. + stringToSGML moved to Entities.hs. escapeSGML removed as redundant, given encodeEntities. + stringToSGML, encodeEntities, and specialCharToEntity are given a boolean parameter that causes only numerical entities to be used. This is used in the docbook writer. The HTML writer uses named entities where possible, but not all docbook-consumers know about the named entities without special instructions, so it seems safer to use numerical entities there. + decodeEntities is rewritten in a way that avoids Text.Regex, using the new parsers. + charToEntity and charToNumericalEntity added to Entities.hs. + Moved specialCharToEntity from Shared.hs to Entities.hs. + Removed unneeded 'decodeEntities' from 'str' parser in HTML and Markdown readers. + Removed sgmlHexEntity, sgmlDecimalEntity, sgmlNamedEntity, and sgmlCharacterEntity from Shared.hs. + Modified Docbook writer so that it doesn't rely on Text.Regex for detecting "mailto" links.fiddlosopher 233148fFixed bug in Markdown reader's handling of underscores and other inline formatting markers inside reference labels: for example, in '[A_B]: /url/a_b', the material between underscores was being parsed as emphasized inlines.fiddlosopher bb8478eMerged changes from 'quotes' branch since r431. Smart typography is now handled in the Markdown and LaTeX readers, rather than in the writers. The HTML writer has been rewritten to use the prettyprinting library.fiddlosopher 4ea1b2bMerged 'strict' branch from r324. This adds a '--strict' option to pandoc, which forces it to stay as close as possible to official Markdown syntax.fiddlosopher d2105f6+ Added regression tests with footnotes in quote blocks and lists. + This uncovered an existing bug in the RTF writer, which got indentation wrong on footnotes occuring in indented blocks like lists. Fixed this bug.fiddlosopher 661c7e7Merged changes to footnotes branch r219-r240.fiddlosopher 3a6296aChanged footnote syntax to conform to the de facto standard for markdown footnotes. References are now like this[^1] rather than like this^(1). There are corresponding changes in the footnotes themselves. See the updated README for more details.fiddlosopher 986c1f9Pandoc bug fixes: + LaTeX reader did not parse metadata correctly. Now the title, author, and date are parsed correctly, and everything else in the preamble is skipped. + Simplified parsing of LaTeX command arguments and options. The function commandArgs now returns a list of arguments OR options (in whatever order they appear). The brackets are included, and a new stripFirstAndLast function is provided to strip them off when needed. This fixes a problem in dealing with \newcommand, etc. + Added a "try" before "parser" in definition of notFollowedBy' combinator. Adjusted the code using this combinator accordingly. + Changed handling of code blocks. Previously, some readers allowed trailing newlines, while others stripped them. Now, all readers strip trailing newlines in code blocks; writers insert a newline at the end of code blocks as needed. + Changed test suite to reflect these changes.fiddlosopher df7b682initial importfiddlosopher