markdown 0.1.6 → 0.1.6.1
raw patch · 4 files changed
+8/−3 lines, 4 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
Files
- Text/Markdown/Inline.hs +3/−2
- markdown.cabal +1/−1
- test/examples/double-backtick.html +1/−0
- test/examples/double-backtick.md +3/−0
Text/Markdown/Inline.hs view
@@ -72,7 +72,7 @@ <|> footnoteRef <|> paired "**" InlineBold <|> paired "__" InlineBold <|> paired "*" InlineItalic <|> paired "_" InlineItalic- <|> doubleCode <|> code+ <|> doubleCodeSpace <|> doubleCode <|> code <|> link <|> image <|> autoLink@@ -96,7 +96,8 @@ is <- inlinesTill t if null is then fail "wrapped around something missing" else return is - doubleCode = InlineCode . T.pack <$> (string "`` " *> manyTill anyChar (string " ``"))+ doubleCodeSpace = InlineCode . T.pack <$> (string "`` " *> manyTill anyChar (string " ``"))+ doubleCode = InlineCode . T.pack <$> (string "``" *> manyTill anyChar (string "``")) code = InlineCode <$> (char '`' *> takeWhile1 (/= '`') <* char '`') footnoteRef = InlineFootnoteRef <$> (char '{' *> decimal <* char '}')
markdown.cabal view
@@ -1,5 +1,5 @@ Name: markdown-Version: 0.1.6+Version: 0.1.6.1 Synopsis: Convert Markdown to HTML, with XSS protection Description: This library leverages existing high-performance libraries (attoparsec, blaze-html, text, and conduit), and should integrate well with existing codebases. Homepage: https://github.com/snoyberg/markdown
+ test/examples/double-backtick.html view
@@ -0,0 +1,1 @@+<p>This is a paragraph with <code>double `backtick` inside</code> with space.</p><p>This is a paragraph with <code>double `backtick` inside</code> without space.</p>
+ test/examples/double-backtick.md view
@@ -0,0 +1,3 @@+This is a paragraph with `` double `backtick` inside `` with space.++This is a paragraph with ``double `backtick` inside`` without space.