summaryrefslogtreecommitdiff
path: root/src/Text
Commit message (Collapse)AuthorAge
* Changed how ASCIIMathML is handled:fiddlosopher2007-07-26
| | | | | | | | | | | | | + -m|--asciimathml option now takes an *optional* argument, the URL to an asciiMathML.js script. This is much better in situations where multiple files with math must be served, as the script can be cached. + If the argument is provided, a link is inserted; otherwise, the whole script is inserted as before. + Nothing is inserted unless there is inline LaTeX. git-svn-id: https://pandoc.googlecode.com/svn/trunk@799 788f1e2b-df1e-0410-8736-df70ead52e1b
* Fixed bug in TOC generation in HTML writer (regression,fiddlosopher2007-07-24
| | | | | | | introduced by the revision in the WriterState type). git-svn-id: https://pandoc.googlecode.com/svn/trunk@793 788f1e2b-df1e-0410-8736-df70ead52e1b
* LaTeX writer: Make sure \VerbatimFootnotes goes after thefiddlosopher2007-07-23
| | | | | | | | preamble; otherwise it has bad interaction effects with the other stuff in the header. git-svn-id: https://pandoc.googlecode.com/svn/trunk@791 788f1e2b-df1e-0410-8736-df70ead52e1b
* In HTML reader, filter Nulls in lists of blocks. (These canfiddlosopher2007-07-23
| | | | | | | be caused by raw HTML when the parse-raw option isn't selected.) git-svn-id: https://pandoc.googlecode.com/svn/trunk@787 788f1e2b-df1e-0410-8736-df70ead52e1b
* Fixed bug in spanStrikeout: case was not exhaustive.fiddlosopher2007-07-23
| | | | git-svn-id: https://pandoc.googlecode.com/svn/trunk@786 788f1e2b-df1e-0410-8736-df70ead52e1b
* README: Removed the statement that the RST reader doesn't parsefiddlosopher2007-07-23
| | | | | | | | | | definition lists. HTML reader: Added failIfStrict to the definitionList parser, so definition lists will be passed through as raw HTML if --strict specified. git-svn-id: https://pandoc.googlecode.com/svn/trunk@783 788f1e2b-df1e-0410-8736-df70ead52e1b
* Added support for definition lists to RST reader.fiddlosopher2007-07-23
| | | | | | | Added a relevant test to the test suite. git-svn-id: https://pandoc.googlecode.com/svn/trunk@782 788f1e2b-df1e-0410-8736-df70ead52e1b
* Added definition list support to HTML reader.fiddlosopher2007-07-23
| | | | | | | Added a test for definition lists to the html-reader test suite. git-svn-id: https://pandoc.googlecode.com/svn/trunk@781 788f1e2b-df1e-0410-8736-df70ead52e1b
* Added support for definition lists to LaTeX reader.fiddlosopher2007-07-23
| | | | git-svn-id: https://pandoc.googlecode.com/svn/trunk@780 788f1e2b-df1e-0410-8736-df70ead52e1b
* Renamed parseFromStr -> parseFromString.fiddlosopher2007-07-23
| | | | git-svn-id: https://pandoc.googlecode.com/svn/trunk@779 788f1e2b-df1e-0410-8736-df70ead52e1b
* Superscript and Subscript support for RST reader.fiddlosopher2007-07-22
| | | | git-svn-id: https://pandoc.googlecode.com/svn/trunk@777 788f1e2b-df1e-0410-8736-df70ead52e1b
* Added a "try" to the end parser in enclosed (Text.Pandoc.ParserCombinators).fiddlosopher2007-07-22
| | | | | | | | This makes errors in its use less likely. Removed some now-unneeded try's in calling code. git-svn-id: https://pandoc.googlecode.com/svn/trunk@776 788f1e2b-df1e-0410-8736-df70ead52e1b
* Added subscript and superscript support to LaTeX reader.fiddlosopher2007-07-22
| | | | git-svn-id: https://pandoc.googlecode.com/svn/trunk@775 788f1e2b-df1e-0410-8736-df70ead52e1b
* Man writer: Use ~ and ^ for subscripts and superscripts.fiddlosopher2007-07-22
| | | | git-svn-id: https://pandoc.googlecode.com/svn/trunk@770 788f1e2b-df1e-0410-8736-df70ead52e1b
* HTML writer: Use a record for state, instead of a tuple, forfiddlosopher2007-07-22
| | | | | | | easy extensibility. git-svn-id: https://pandoc.googlecode.com/svn/trunk@769 788f1e2b-df1e-0410-8736-df70ead52e1b
* HTML writer: include css for .strikethrough only if strikethroughfiddlosopher2007-07-22
| | | | | | | is actually used in the document. git-svn-id: https://pandoc.googlecode.com/svn/trunk@768 788f1e2b-df1e-0410-8736-df70ead52e1b
* Added ~ to the list of characters the markdownfiddlosopher2007-07-22
| | | | | | | writer should backslash-escape. git-svn-id: https://pandoc.googlecode.com/svn/trunk@765 788f1e2b-df1e-0410-8736-df70ead52e1b
* LaTeX reader: Added clauses for tilde and caret.fiddlosopher2007-07-22
| | | | | | | | Tilde is \ensuremath{\sim}, and caret is \^{}, not \^ as before. git-svn-id: https://pandoc.googlecode.com/svn/trunk@764 788f1e2b-df1e-0410-8736-df70ead52e1b
* Cleaned up character escaping in LaTeX writer.fiddlosopher2007-07-22
| | | | git-svn-id: https://pandoc.googlecode.com/svn/trunk@763 788f1e2b-df1e-0410-8736-df70ead52e1b
* Removed an extra occurance of escapedChar in definitionfiddlosopher2007-07-22
| | | | | | | of inline. git-svn-id: https://pandoc.googlecode.com/svn/trunk@762 788f1e2b-df1e-0410-8736-df70ead52e1b
* Man writer:fiddlosopher2007-07-22
| | | | | | | | | + Make sure to include "" if no section is specified in a man page TH line. + Updated man writer tests. git-svn-id: https://pandoc.googlecode.com/svn/trunk@758 788f1e2b-df1e-0410-8736-df70ead52e1b
* Changed text to char for one character stringsfiddlosopher2007-07-22
| | | | | | | in RST, Man, and Docbook writers. git-svn-id: https://pandoc.googlecode.com/svn/trunk@757 788f1e2b-df1e-0410-8736-df70ead52e1b
* Markdown writer: Substituted char for text for single characters.fiddlosopher2007-07-22
| | | | git-svn-id: https://pandoc.googlecode.com/svn/trunk@756 788f1e2b-df1e-0410-8736-df70ead52e1b
* + Added support for superscript, subscript, andfiddlosopher2007-07-22
| | | | | | | | | | | | | | strikeout to all writers. (Thanks to Bradley Kuhn for the patches for strikeout, here slightly modified.) + Refactored character escaping using the new functions escapeStringUsing and backslashEscapes. + Added state to LaTeX writer, which now keeps track of what packages need to be included in the preamble, based on the content of the document. (Thus, e.g., ulem is only required if you use strikeout.) git-svn-id: https://pandoc.googlecode.com/svn/trunk@755 788f1e2b-df1e-0410-8736-df70ead52e1b
* Added support for strikeout (\sout) to latexfiddlosopher2007-07-22
| | | | | | | reader. (Thanks to Bradley Sif for the patch.) git-svn-id: https://pandoc.googlecode.com/svn/trunk@754 788f1e2b-df1e-0410-8736-df70ead52e1b
* Added support for Strikeout, Superscript, and Subscript tofiddlosopher2007-07-21
| | | | | | | | HTML reader. Thanks to Bradley Sif for the patch for Strikeout (Issue #18). git-svn-id: https://pandoc.googlecode.com/svn/trunk@753 788f1e2b-df1e-0410-8736-df70ead52e1b
* + Added support for Strikeout, Superscript, andfiddlosopher2007-07-21
| | | | | | | | Subscript in markdown reader. + Also replaced constants like emphStart with literals. git-svn-id: https://pandoc.googlecode.com/svn/trunk@752 788f1e2b-df1e-0410-8736-df70ead52e1b
* + Added Strikeout support to Markdown writer.fiddlosopher2007-07-21
| | | | git-svn-id: https://pandoc.googlecode.com/svn/trunk@751 788f1e2b-df1e-0410-8736-df70ead52e1b
* Moved failIfStrict from Markdown reader tofiddlosopher2007-07-21
| | | | | | | Text.Pandoc.Shared. git-svn-id: https://pandoc.googlecode.com/svn/trunk@750 788f1e2b-df1e-0410-8736-df70ead52e1b
* Changes to functions for character escaping:fiddlosopher2007-07-21
| | | | | | | | | | | + Removed escapeCharAsString + Added escapeStringUsing + Changed backslashEscape to backslashEscapes, which now returns an association list of escapes to be passed to escapeStringUsing git-svn-id: https://pandoc.googlecode.com/svn/trunk@748 788f1e2b-df1e-0410-8736-df70ead52e1b
* Changed system for indicating man page title, section,fiddlosopher2007-07-21
| | | | | | | header and footer. Documented in README. git-svn-id: https://pandoc.googlecode.com/svn/trunk@745 788f1e2b-df1e-0410-8736-df70ead52e1b
* Added Strikeout, Superscript, and Subscript tofiddlosopher2007-07-21
| | | | | | | refsMatch function in Pandoc.Shared. git-svn-id: https://pandoc.googlecode.com/svn/trunk@742 788f1e2b-df1e-0410-8736-df70ead52e1b
* Added Strikeout, Superscript, and Subscript asfiddlosopher2007-07-21
| | | | | | | Inline elements (Pandoc.Definition). git-svn-id: https://pandoc.googlecode.com/svn/trunk@741 788f1e2b-df1e-0410-8736-df70ead52e1b
* Refactored character escaping in Text.Pandoc.Writers.Markdown usingfiddlosopher2007-07-19
| | | | | | | escapeCharAsString. git-svn-id: https://pandoc.googlecode.com/svn/trunk@739 788f1e2b-df1e-0410-8736-df70ead52e1b
* Added escapeCharAsString to Text.Pandoc.Shared.fiddlosopher2007-07-19
| | | | git-svn-id: https://pandoc.googlecode.com/svn/trunk@738 788f1e2b-df1e-0410-8736-df70ead52e1b
* Simplified inlinesInBalanced, using lookAhead.fiddlosopher2007-07-16
| | | | git-svn-id: https://pandoc.googlecode.com/svn/trunk@732 788f1e2b-df1e-0410-8736-df70ead52e1b
* Markdown reader: Added inlinesInBalanced parser combinator tofiddlosopher2007-07-15
| | | | | | | | | | | | | | | | | | | unify treatment of embedded brackets in links and inline footnotes. Note that the solution adopted here causes one of John Gruber's markdown tests to fail: [with_underscore](/url/with_underscore) Here the whole phrase "underscore](/url/with" is treated as emphasized. The previous version of the markdown reader handled this the way Gruber's script handles it, but it ran into trouble on the following: [link with verbatim `]`](/url) where the inner ] was treated as the end of the reference link label. I don't see any good way to handle both cases in the framework of pandoc, so I choose to require an escape in the first example: [with\_underscore](/url/with_underscore) git-svn-id: https://pandoc.googlecode.com/svn/trunk@729 788f1e2b-df1e-0410-8736-df70ead52e1b
* Added charsInBalanced parser combinator to Text.Pandoc.ParserCombinators.fiddlosopher2007-07-15
| | | | | | | | This is not currently used, but should be useful in parsing strings containing balanced pairs of brackets or parentheses. git-svn-id: https://pandoc.googlecode.com/svn/trunk@728 788f1e2b-df1e-0410-8736-df70ead52e1b
* ConTeXt writer changes:fiddlosopher2007-07-15
| | | | | | | | | | + Use defined blockquote environment for block quotes (smaller font, no indent, narrower text) + Changed default font to 12pt + Changed default page layout git-svn-id: https://pandoc.googlecode.com/svn/trunk@725 788f1e2b-df1e-0410-8736-df70ead52e1b
* Merged branches/context: addition of a ConTeXt writerfiddlosopher2007-07-15
| | | | | | | | | | | | | | | <http://www.pragma-ade.nl/>. + Text.Pandoc.Writers.ConTeXt added. + Text.Pandoc modified to export the basic ConTeXt writer. + Main.hs modified to recognize 'context' as a writer. + ConTeXtHeader added to headers + DefaultHeaders.hs template modified to include ConTeXt header + Tests added (writer.context, tables.context), and runtests.pl modified to run them + pandoc.cabal updated to include Text.Pandoc.Writers.ConTeXt. git-svn-id: https://pandoc.googlecode.com/svn/trunk@716 788f1e2b-df1e-0410-8736-df70ead52e1b
* Removed an unused function in LaTeX writer.fiddlosopher2007-07-15
| | | | git-svn-id: https://pandoc.googlecode.com/svn/trunk@714 788f1e2b-df1e-0410-8736-df70ead52e1b
* Simplified special character escaping code in LaTeX writer.fiddlosopher2007-07-14
| | | | git-svn-id: https://pandoc.googlecode.com/svn/trunk@705 788f1e2b-df1e-0410-8736-df70ead52e1b
* Small comment fix in LaTeX writer.fiddlosopher2007-07-14
| | | | git-svn-id: https://pandoc.googlecode.com/svn/trunk@704 788f1e2b-df1e-0410-8736-df70ead52e1b
* Change to footnotes in HTML writer: Instead of putting the footnotefiddlosopher2007-07-14
| | | | | | | | | | | | | backlink on a line by itself, after the content of the note, we now put it at the end of the last paragraph of the footnote. This saves space and looks better. More specifically: + If the last block of the note is a Para or Plain block, the backlink is put at the end of that block's contents. + Otherwise, the backlink is put in a separate Plain block by itself, after the footnote's contents. git-svn-id: https://pandoc.googlecode.com/svn/trunk@697 788f1e2b-df1e-0410-8736-df70ead52e1b
* Changed encodeUTF8 to toUTF8, decodeUTF8 to fromUTF8,fiddlosopher2007-07-13
| | | | | | | for clarity. git-svn-id: https://pandoc.googlecode.com/svn/trunk@692 788f1e2b-df1e-0410-8736-df70ead52e1b
* Cleaned up Text.Pandoc. Added lots of documentation,fiddlosopher2007-07-12
| | | | | | | including an example program. git-svn-id: https://pandoc.googlecode.com/svn/trunk@691 788f1e2b-df1e-0410-8736-df70ead52e1b
* HTML reader: haddock comment fix.fiddlosopher2007-07-12
| | | | git-svn-id: https://pandoc.googlecode.com/svn/trunk@690 788f1e2b-df1e-0410-8736-df70ead52e1b
* Export NoteTable in Text.Pandoc.Shared.fiddlosopher2007-07-12
| | | | git-svn-id: https://pandoc.googlecode.com/svn/trunk@688 788f1e2b-df1e-0410-8736-df70ead52e1b
* Pandoc.hs:fiddlosopher2007-07-12
| | | | | | | | + added haddock documentation + added export of prettyPandoc and writeMan git-svn-id: https://pandoc.googlecode.com/svn/trunk@686 788f1e2b-df1e-0410-8736-df70ead52e1b
* Change to defaultWriterOptions: standalone is False by default.fiddlosopher2007-07-12
| | | | git-svn-id: https://pandoc.googlecode.com/svn/trunk@685 788f1e2b-df1e-0410-8736-df70ead52e1b