git.iko.soy/typeable/pandoc
on master help sign in
Added parsing for \url to LaTeX reader.

git-svn-id: https://pandoc.googlecode.com/svn/trunk@833 788f1e2b-df1e-0410-8736-df70ead52e1b

commit22a65385571737b6232debac884184d6504222fc authorfiddlosopher <fiddlosopher@788f1e2b-df1e-0410-8736-df70ead52e1b> dateFri 3 Aug 2007, 22:44 (19 years ago) parent271c3f9
1 file changed+6−1
src/Text/Pandoc/Readers/LaTeX.hs+6−1
src/Text/Pandoc/Readers/LaTeX.hs+6−1
@@ -405,7 +405,7 @@ inline = choice [ strong, emph, strikeout, superscript, subscript,
405405 accentedChar, specialChar, specialInline, escapedChar,
406406 unescapedChar, str, endline, whitespace ] <?> "inline"
407407
408−specialInline = choice [ link, image, footnote, rawLaTeXInline ]
408+specialInline = choice [ url, link, image, footnote, rawLaTeXInline ]
409409 <?> "link, raw TeX, note, or image"
410410
411411accentedChar = normalAccentedChar <|> specialAccentedChar
@@ -654,6 +654,11 @@ math2 = try (do
654654-- links and images
655655--
656656
657+url = try (do
658+ string "\\url"
659+ url <- charsInBalanced '{' '}'
660+ return (Link [Code url] (url, "")))
661+
657662link = try (do
658663 string "\\href{"
659664 url <- manyTill anyChar (char '}')