git.iko.soy/typeable/pandoc
on 4eff607 help sign in
all commits
af7e782Modified readers to emit SoftBreak when appropriate.John MacFarlane 536b6bfImplemented SoftBreak and new `--wrap` option.John MacFarlane e4263d3Revamped raw HTML block parsing in markdown.John MacFarlane abd3a03DocBook writer: Small tweaks to last commit.John MacFarlane ccbf4fcDistinguish tight and loose lists in Docbook outputNeil Mayhew 464d7a8Improve handling of hard line breaks in Docbook writerNeil Mayhew 25763a8DocBook reader/writer tests: use "authorgroup".John MacFarlane 0d95c15TexMath: Export readTeXMath', which attends to display/inline.John MacFarlane 8d441afAdjusted writers and tests for change in parsing of div/span.John MacFarlane ff6db9eUpdated tests to match new docbook template.John MacFarlane f53e0a4DocBook writer: for linebreak, but newline in literallayout.John MacFarlane 8c48bd8Don't put the text of an autolink in Code font.John MacFarlane 663cfc2Docbook writer: Use sect1, sect2, etc. instead of section.John MacFarlane a579e2cReplaced Apostrophe, Ellipses, EmDash, EnDash w/ unicode strings.John MacFarlane 1da1d4eUpdated writer tests for new version of texmath.John MacFarlane a332783Docbook writer: Use programlisting for code blocks.John MacFarlane bd43c0fBumped version to 1.8; depend on pandoc-types 1.8.John MacFarlane ebdbb06Docbook writer: Updated to use Pretty.John MacFarlane feb70b6Made spacing at end of output more consistent.John MacFarlane c243e5bUse texmath's parser in TexMath module.John MacFarlane 16e5b15Docbook writer: support images as figures.fiddlosopher c7149d3Docbook writer: use unicode instead of entities.fiddlosopher 7dc43d3Updated docbook writer to use new templates.fiddlosopher 5082b54Improved syntax for markdown definition lists.fiddlosopher de38adcDocbook writer: add ids to sections. Use link for internal links.fiddlosopher f53fb55Support for display math; changed ASCIIMathML -> LaTeXMathML: Resolves Issue #47.fiddlosopher 5d3d2d7Rewrote test suite so it doesn't depend on perl or unix tools.fiddlosopher 7c35c0bFixed bug in Markdown parser: regular $s triggering math mode. For example: "shoes ($20) and socks ($5)."fiddlosopher 7447eccEscape '\160' as " ", not " " in XML. "nbsp" isn't a predefined XML entity.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 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 f8a2575Updated test suite -- no italics for digits.fiddlosopher d1832daAdded Text.Pandoc.Readers.TeXMath and changed default handling of math. + Text.Pandoc.Readers.TeXMath exports readTeXMath, which reads raw TeX math and outputs a string of pandoc inlines that tries to render it as far as possible, lapsing into literal TeX when needed. + Added Text.Pandoc.Readers.TeXMath to pandoc.cabal + ghc66 version. + Modified writers so that readTeXMath is used for default HTMl output in HTML, S5, RTF, Docbook. + Updated README with information about how math is rendered in all formats. + Updated test suite.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 141affdMore changes in entity handling: Instead of using entities for characters above 128 in HTML and Docbook output, we now just use unicode. After all, we're declaring UTF-8 content in the header. This makes the HTML and docbook files produced by pandoc much more readable and editable.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 458bb40Fixed docbook writer test -- removed named entities.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 030d94eRefactored SGML escaping functions and "in tag" functions to Text/Shared/Pandoc. (escapeSGML, stringToSGML, inTag, inTagSimple, inTagIndented, selfClosingTag) These can be used by both the HTML and Docbook writers.fiddlosopher 4e57451Use entities for all characters above 127 in docbook output. Though XML tools should support unicode, some people will be using SGML tools, and these do not. Using entities makes the docbook files more portable.fiddlosopher