Adds support for converting <-> to ↔ in markdownify
This commit is contained in:
parent
3a5f0c9678
commit
91dd4f847a
2 changed files with 3 additions and 2 deletions
|
|
@ -118,6 +118,7 @@ module MarkdownifyHelper
|
|||
":-(" => "☹",
|
||||
":)" => "☺",
|
||||
":-)" => "☺",
|
||||
"<->" => "↔",
|
||||
"->" => "→",
|
||||
"<-" => "←",
|
||||
"..." => "…",
|
||||
|
|
|
|||
|
|
@ -157,8 +157,8 @@ describe MarkdownifyHelper do
|
|||
end
|
||||
|
||||
it "replaces various things with (their) HTML entities" do
|
||||
message = ":) :-) :( :-( ... -> <- (tm) (r) (c)"
|
||||
markdownify(message).should == "☺ ☺ ☹ ☹ … → ← ™ ® ©"
|
||||
message = ":) :-) :( :-( ... <-> -> <- (tm) (r) (c)"
|
||||
markdownify(message).should == "☺ ☺ ☹ ☹ … ↔ → ← ™ ® ©"
|
||||
end
|
||||
|
||||
it "skips doing it if you say so" do
|
||||
|
|
|
|||
Loading…
Reference in a new issue