summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAge
...
* Modified readers for new parameter in CodeBlock.fiddlosopher2008-02-09
| | | | git-svn-id: https://pandoc.googlecode.com/svn/trunk@1199 788f1e2b-df1e-0410-8736-df70ead52e1b
* Added parameter for class to CodeBlock (for syntax highlighting).fiddlosopher2008-02-09
| | | | git-svn-id: https://pandoc.googlecode.com/svn/trunk@1198 788f1e2b-df1e-0410-8736-df70ead52e1b
* * Debian packaging changes:roktas2008-02-09
| | | | | | | | | | | | + Migrate to GHC 6.8.2. Closes: #461606 + Add new dependencies libghc6-regex-compat-dev and libghc6-uulib-dev. + Remove the code in debian/rules which attempts to remove empty ghc6.6 include directory. This code may cause an installation failure for the -dev package. Closes: #460658 + Fix doc-base to prevent a lintian warning. git-svn-id: https://pandoc.googlecode.com/svn/trunk@1197 788f1e2b-df1e-0410-8736-df70ead52e1b
* Added note in INSTALL about doing 'make templates' if installing using Cabal ↵fiddlosopher2008-01-24
| | | | | | from svn. git-svn-id: https://pandoc.googlecode.com/svn/trunk@1196 788f1e2b-df1e-0410-8736-df70ead52e1b
* Added \setupitemize[autointro] to ConTeXt header, to prevent orphanedfiddlosopher2008-01-23
| | | | | | | list introduction lines. git-svn-id: https://pandoc.googlecode.com/svn/trunk@1195 788f1e2b-df1e-0410-8736-df70ead52e1b
* website: Added math.text to dependencies for examples.html in Makefile.fiddlosopher2008-01-23
| | | | git-svn-id: https://pandoc.googlecode.com/svn/trunk@1194 788f1e2b-df1e-0410-8736-df70ead52e1b
* Moved math.txt -> math.text on web page, so it won't be confused with page ↵fiddlosopher2008-01-23
| | | | | | source. git-svn-id: https://pandoc.googlecode.com/svn/trunk@1193 788f1e2b-df1e-0410-8736-df70ead52e1b
* Changed names of HTML man pages to *.1.html on website.fiddlosopher2008-01-23
| | | | git-svn-id: https://pandoc.googlecode.com/svn/trunk@1192 788f1e2b-df1e-0410-8736-df70ead52e1b
* Fixed bug in RST reader, which would choke on: "p. one\ntwo\n".fiddlosopher2008-01-17
| | | | | | | Added some try's in ordered list parsers. git-svn-id: https://pandoc.googlecode.com/svn/trunk@1191 788f1e2b-df1e-0410-8736-df70ead52e1b
* Updated INSTALL with instructions for getting GHC + libraries using apt-get.fiddlosopher2008-01-16
| | | | git-svn-id: https://pandoc.googlecode.com/svn/trunk@1190 788f1e2b-df1e-0410-8736-df70ead52e1b
* Removed unnecessary imports.fiddlosopher2008-01-16
| | | | git-svn-id: https://pandoc.googlecode.com/svn/trunk@1189 788f1e2b-df1e-0410-8736-df70ead52e1b
* Added Arch linux instructions to INSTALL.fiddlosopher2008-01-14
| | | | git-svn-id: https://pandoc.googlecode.com/svn/trunk@1188 788f1e2b-df1e-0410-8736-df70ead52e1b
* Bumped version to 0.47.fiddlosopher2008-01-08
| | | | git-svn-id: https://pandoc.googlecode.com/svn/trunk@1187 788f1e2b-df1e-0410-8736-df70ead52e1b
* Made -c/--css option repeatable on the command line (like -H, -A, -B).fiddlosopher2008-01-08
| | | | | | | Documented repeatability of these options in README. git-svn-id: https://pandoc.googlecode.com/svn/trunk@1186 788f1e2b-df1e-0410-8736-df70ead52e1b
* Updated website with news of version 0.46 release.fiddlosopher2008-01-08
| | | | git-svn-id: https://pandoc.googlecode.com/svn/trunk@1185 788f1e2b-df1e-0410-8736-df70ead52e1b
* Added some details to RELEASE-CHECKLIST.fiddlosopher2008-01-08
| | | | git-svn-id: https://pandoc.googlecode.com/svn/trunk@1184 788f1e2b-df1e-0410-8736-df70ead52e1b
* Removed redundant DISTNAME field from freebsd Makefile template.fiddlosopher2008-01-08
| | | | git-svn-id: https://pandoc.googlecode.com/svn/trunk@1183 788f1e2b-df1e-0410-8736-df70ead52e1b
* Changed copyright dates where appropriate to include 2008.fiddlosopher2008-01-08
| | | | git-svn-id: https://pandoc.googlecode.com/svn/trunk@1181 788f1e2b-df1e-0410-8736-df70ead52e1b
* Changed dates on documentation.fiddlosopher2008-01-08
| | | | git-svn-id: https://pandoc.googlecode.com/svn/trunk@1180 788f1e2b-df1e-0410-8736-df70ead52e1b
* Removed unneeded link reference from website index.txt.in.fiddlosopher2008-01-08
| | | | git-svn-id: https://pandoc.googlecode.com/svn/trunk@1179 788f1e2b-df1e-0410-8736-df70ead52e1b
* Changed comment used to replace unsafe HTML if sanitize-html optionfiddlosopher2008-01-08
| | | | | | | selected. git-svn-id: https://pandoc.googlecode.com/svn/trunk@1178 788f1e2b-df1e-0410-8736-df70ead52e1b
* * Debian packaging changes:roktas2008-01-08
| | | | | | | | | | | + Remove the empty 'include' directory in -dev package, which lintian complains about. + Bump Standarts-Version to 3.7.3. + Use new 'Homepage:' field to specify the upstream URL on suggestion of lintian. git-svn-id: https://pandoc.googlecode.com/svn/trunk@1177 788f1e2b-df1e-0410-8736-df70ead52e1b
* Updated changelog.fiddlosopher2008-01-07
| | | | git-svn-id: https://pandoc.googlecode.com/svn/trunk@1176 788f1e2b-df1e-0410-8736-df70ead52e1b
* RST reader: Fixed bug in parsing explicit links (resolves Issue #44).fiddlosopher2008-01-06
| | | | | | | | | | | The problem was that we were looking for inlines until a '<' character signaled the start of the URL. So if you hit a reference-style link, it would keep looking til the end of the document. Fix: change inline => (notFollowedBy (char '`') >> inline). Note that this won't allow code inlines in links, but these aren't allowed in resT anyway. git-svn-id: https://pandoc.googlecode.com/svn/trunk@1175 788f1e2b-df1e-0410-8736-df70ead52e1b
* RST reader: cleaned up parsing of reference names in key blocks and links.fiddlosopher2008-01-06
| | | | | | | | Allow nonquoted reference links to contain isolated '.', '-', '_', so so that strings like 'a_b_' count as links. git-svn-id: https://pandoc.googlecode.com/svn/trunk@1174 788f1e2b-df1e-0410-8736-df70ead52e1b
* RST reader: Removed unnecessary check for following link in str.fiddlosopher2008-01-06
| | | | | | | | This is unnecessary now that link is above str in the definition of 'inline'. git-svn-id: https://pandoc.googlecode.com/svn/trunk@1173 788f1e2b-df1e-0410-8736-df70ead52e1b
* Fixed markdown reader to handle "*hi **there***" as a strong nested in an emph.fiddlosopher2008-01-06
| | | | | | | | (A '*' is only recognized as the end of the emphasis if it's not the beginning of a strong emphasis.) git-svn-id: https://pandoc.googlecode.com/svn/trunk@1172 788f1e2b-df1e-0410-8736-df70ead52e1b
* Markdown reader: Moved blockQuote parser before list parsers.fiddlosopher2008-01-06
| | | | git-svn-id: https://pandoc.googlecode.com/svn/trunk@1171 788f1e2b-df1e-0410-8736-df70ead52e1b
* Added RELEASE-CHECKLIST.fiddlosopher2008-01-06
| | | | git-svn-id: https://pandoc.googlecode.com/svn/trunk@1170 788f1e2b-df1e-0410-8736-df70ead52e1b
* Use an interpreted text role to render math in restructuredText.fiddlosopher2008-01-04
| | | | | | | | See http://www.american.edu/econ/itex2mml/mathhack.rst for the strategy. git-svn-id: https://pandoc.googlecode.com/svn/trunk@1168 788f1e2b-df1e-0410-8736-df70ead52e1b
* Refactored RST writer to usea record instead of a tuple for state,fiddlosopher2008-01-04
| | | | | | | | and to include options in state so it doesn't need to be passed as a parameter. git-svn-id: https://pandoc.googlecode.com/svn/trunk@1167 788f1e2b-df1e-0410-8736-df70ead52e1b
* Added optional HTML sanitization using a whitelist.fiddlosopher2008-01-03
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When this option is specified (--sanitize-html on the command line), unsafe HTML tags will be replaced by HTML comments, and unsafe HTML attributes will be removed. This option should be especially useful for those who want to use pandoc libraries in web applications, where users will provide the input. + Main.hs: Added --sanitize-html option. + Text.Pandoc.Shared: Added stateSanitizeHTML to ParserState. + Text.Pandoc.Readers.HTML: - Added whitelists of sanitaryTags and sanitaryAttributes. - Added parsers to check these lists (and state) to see if a given tag or attribute should be counted unsafe. - Modified anyHtmlTag and anyHtmlEndTag to replace unsafe tags with comments. - Modified htmlAttribute to remove unsafe attributes. - Modified htmlScript and htmlStyle to remove these elements if unsafe. - Modified rawHtmlBlock to use anyHtmlBlockTag instead of anyHtmlTag and anyHtmlEndTag. This fixes a bug in markdown parsing, where inline tags would be included in raw HTML blocks. - Modified anyHtmlBlockTag to test for (not inline) rather than directly for block. This allows us to handle e.g. docbook in the markdown reader. - Minor tweaks in nonTitleNonHead and parseTitle. + Text.Pandoc.Readers.Markdown: - In non-strict mode use rawHtmlBlocks instead of htmlBlock. Simplified htmlBlock, since we know it's only called in strict mode. + Modified README and man pages to document new option. git-svn-id: https://pandoc.googlecode.com/svn/trunk@1166 788f1e2b-df1e-0410-8736-df70ead52e1b
* Made -H, -A, and -B cumulative: if they are specified multiple times,fiddlosopher2008-01-01
| | | | | | | multiple files will be included. git-svn-id: https://pandoc.googlecode.com/svn/trunk@1165 788f1e2b-df1e-0410-8736-df70ead52e1b
* Fixed bug in the markdown reader: HTML preceding a code blockfiddlosopher2007-12-31
| | | | | | | | | | | | | | | | | | | | | | | | could cause it to be parsed as a paragraph. (The problem is that the HTML parser used to eat all blank space after an HTML block, including the indentation of the code block.) Resolves Issue #39. + In Text.Pandoc.Readers.HTML, removed parsing of following space from rawHtmlBlock. + In Text.Pandoc.Readers.Markdown, modified rawHtmlBlocks so that indentation is eaten *only* on the first line after the HTML block. This means that in <div> foo <div> the foo won't be treated as a code block, but in <div> foo </div> it will. This seems the right approach for least suprise. git-svn-id: https://pandoc.googlecode.com/svn/trunk@1164 788f1e2b-df1e-0410-8736-df70ead52e1b
* HTML reader: Finished fixing Issue #40.fiddlosopher2007-12-31
| | | | | | | | | | Contents of script tags were still being treated as markdown when the script tags were parsed as inline. Fixed by moving "script" from the list of tags that can be either block or inline to the list of block tags. git-svn-id: https://pandoc.googlecode.com/svn/trunk@1163 788f1e2b-df1e-0410-8736-df70ead52e1b
* HTML reader: Don't interpret contents of style tags as markdown.fiddlosopher2007-12-31
| | | | | | | | | Resolves Issue #40. + Added htmlStyle, analagous to htmlScript. + Use htmlStyle in htmlBlockElement and rawHtmlInline. git-svn-id: https://pandoc.googlecode.com/svn/trunk@1162 788f1e2b-df1e-0410-8736-df70ead52e1b
* Fixed bug in HTML reader: it was looking for <IT> tag, not <I>.fiddlosopher2007-12-30
| | | | git-svn-id: https://pandoc.googlecode.com/svn/trunk@1161 788f1e2b-df1e-0410-8736-df70ead52e1b
* Made LaTeX reader properly recognize --parse-raw in rawLaTeXInline.fiddlosopher2007-12-30
| | | | | | | Updated LaTeX reader test to use --parse-raw. git-svn-id: https://pandoc.googlecode.com/svn/trunk@1160 788f1e2b-df1e-0410-8736-df70ead52e1b
* Changed handling of titles in HTML writer so you don't get "titleprefix - "fiddlosopher2007-12-29
| | | | | | | followed by nothing. git-svn-id: https://pandoc.googlecode.com/svn/trunk@1159 788f1e2b-df1e-0410-8736-df70ead52e1b
* Use wrappers around Doc elements to ensure proper spacing in ConTeXt writer.fiddlosopher2007-12-29
| | | | | | | | Each block element is wrapped with either Pad or Reg. Pad'ed elements are guaranteed to have a blank line in between. Updated ConTeXt tests. git-svn-id: https://pandoc.googlecode.com/svn/trunk@1158 788f1e2b-df1e-0410-8736-df70ead52e1b
* Markdown reader: Make 'block' conditional on strictness state,fiddlosopher2007-12-29
| | | | | | | | | instead of using failIfStrict in block parsers. Use a different ordering of parsers in strict mode: raw HTML block before paragraph. This recovers performance that was lost in strict mode with r1154. git-svn-id: https://pandoc.googlecode.com/svn/trunk@1157 788f1e2b-df1e-0410-8736-df70ead52e1b
* Markdown: better handling of parentheses in URLs and quotation marks in titles.fiddlosopher2007-12-24
| | | | | | | | | | | | + source parser first tries to parse URL with balanced parentheses; if that doesn't work, it tries to parse everything beginning with '(' and ending with ')'. + source parser now uses an auxiliary function source'. + linkTitle parser simplified and improved, under assumption that it will be called in context of source'. git-svn-id: https://pandoc.googlecode.com/svn/trunk@1156 788f1e2b-df1e-0410-8736-df70ead52e1b
* Modified markdown reader to disallow links within links. (Resolves Issue #35.)fiddlosopher2007-12-24
| | | | | | | | | | | | | | | + Replaced inlinesInBalanced with inlinesInBalancedBrackets, which instead of hard-coding the inline parser takes an inline parser as a parameter. + Modified reference and inlineNote to use inlinesInBalancedBrackets. + Removed unneeded inlineString function. + Added inlineNonLink parser, which is now used in the definition of reference. + Added inlineParsers list and redefined inline and inlineNonLink parsers in terms of it. + Added failIfLink parser. git-svn-id: https://pandoc.googlecode.com/svn/trunk@1155 788f1e2b-df1e-0410-8736-df70ead52e1b
* Improved handling of raw HTML in Markdown reader. (Resolves Issue #36.)fiddlosopher2007-12-24
| | | | | | | | | | | | | | | | | | | | | | | Tags that can be either block or inline (e.g. <ins>) should be treated as block when appropriate and as inline when appropriate. Thus, for example, <ins>hi</ins> should be treated as a paragraph with inline <ins> tags, while <ins> hi </ins> should be treated as a paragraph within <ins> tags. + Moved htmlBlock after para in list of block parsers. This ensures that tags that can be either block or inline get parsed as inline when appropriate. + Modified rawHtmlInline' so that block elements aren't treated as inline. + Modified para parser so that paragraphs containing only HTML tags and blank space are not allowed. Treat these as raw HTML blocks instead. git-svn-id: https://pandoc.googlecode.com/svn/trunk@1154 788f1e2b-df1e-0410-8736-df70ead52e1b
* Changed failure message in anyHtmlBlockTag (minor change).fiddlosopher2007-12-24
| | | | git-svn-id: https://pandoc.googlecode.com/svn/trunk@1153 788f1e2b-df1e-0410-8736-df70ead52e1b
* Modified rawHtmlBlock in HTML reader so it parses </html> and </body> tags.fiddlosopher2007-12-23
| | | | | | | | | This allows these tags to be handled correctly in Markdown. HTML reader now uses rawHtmlBlock', which excludes </html> and </body>, since these are handled in parseHtml. (Resolves Issue #38.) git-svn-id: https://pandoc.googlecode.com/svn/trunk@1152 788f1e2b-df1e-0410-8736-df70ead52e1b
* Modified 'source' parser in Markdown reader to allow backslash escapes in URLs.fiddlosopher2007-12-21
| | | | | | | So, for example, [my](/url\(1\)) yields a link to /url(1). Resolves Issue #34. git-svn-id: https://pandoc.googlecode.com/svn/trunk@1151 788f1e2b-df1e-0410-8736-df70ead52e1b
* Modified rules for HTML header identifiers to ensure legal identifiers.fiddlosopher2007-12-21
| | | | | | | | | | + Modified htmlListToIdentifier and uniqueIdentifier in HTML writer to ensure that identifiers begin with an alphabetic character. + The new rules are described in README. + Resolves Issue #33. git-svn-id: https://pandoc.googlecode.com/svn/trunk@1150 788f1e2b-df1e-0410-8736-df70ead52e1b
* Fixed handling of email addresses in markdown and reStructuredText.fiddlosopher2007-12-21
| | | | | | | | | | | | Consolidated uri and email address parsers. (Resolves Issue #37.) + New emailAddress and uri parsers in Text.Pandoc.Shared. uri parser uses parseURI from Network.URI. emailAddress parser properly handles email addresses with periods in them. + Removed uri and emailAddress parsers from Text.Pandoc.Readers.RST. + Removed uri and emailAddress parsers from Text.Pandoc.Readers.Markdown. git-svn-id: https://pandoc.googlecode.com/svn/trunk@1149 788f1e2b-df1e-0410-8736-df70ead52e1b
* Bumped version number to 0.46.fiddlosopher2007-12-10
| | | | git-svn-id: https://pandoc.googlecode.com/svn/trunk@1147 788f1e2b-df1e-0410-8736-df70ead52e1b