tumblr: convert commentary to dtext.
* Convert Tumblr commentary to DText. * Strip extraneous whitespace in links and blockquotes. * Add newlines after block elements to ensure they're separated from subsequent blocks.
This commit is contained in:
@@ -35,14 +35,11 @@ module Sources
|
||||
should "get the dtext-ified commentary" do
|
||||
desc = <<-EOS.strip_heredoc.chomp
|
||||
blah blah
|
||||
|
||||
"test link":[http://www.google.com]
|
||||
|
||||
|
||||
|
||||
h1. lol
|
||||
|
||||
|
||||
|
||||
|
||||
[b]blah[/b] [i]blah[/i] [u]blah[/u] [s]blah[/s]
|
||||
herp derp
|
||||
@@ -53,7 +50,6 @@ module Sources
|
||||
* two
|
||||
* three
|
||||
|
||||
|
||||
* one
|
||||
* two
|
||||
* three
|
||||
|
||||
Reference in New Issue
Block a user