mirror of
https://github.com/danbee/micropub.git
synced 2025-03-04 08:59:13 +00:00
Remove double backslashes
This must be a bug in Kramdown.
This commit is contained in:
parent
695825d230
commit
1f1afc99e8
@ -63,8 +63,10 @@ module Micropub
|
|||||||
params["content"]["text"]
|
params["content"]["text"]
|
||||||
elsif params["content"]["html"]
|
elsif params["content"]["html"]
|
||||||
Kramdown::Document.
|
Kramdown::Document.
|
||||||
new(params["content"]["html"], html_to_native: true).
|
new(params["content"]["html"], input: "html").
|
||||||
to_kramdown
|
to_kramdown.
|
||||||
|
gsub("\\", "")
|
||||||
|
# TODO: Look into possible Kramdown bug
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -82,7 +84,7 @@ module Micropub
|
|||||||
#{post_frontmatter.strip}
|
#{post_frontmatter.strip}
|
||||||
---
|
---
|
||||||
|
|
||||||
#{content}
|
#{content.strip}
|
||||||
POST
|
POST
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
@ -170,11 +170,11 @@ describe Micropub::Post do
|
|||||||
_(post.content.strip).must_equal <<~MARKDOWN.strip
|
_(post.content.strip).must_equal <<~MARKDOWN.strip
|
||||||
This is a test post, with some lists and stuff.
|
This is a test post, with some lists and stuff.
|
||||||
|
|
||||||
> Well, the way they make shows is, they make one show. That show\\'s
|
> Well, the way they make shows is, they make one show. That show's
|
||||||
> called a pilot. Then they show that show to the people who make shows,
|
> called a pilot. Then they show that show to the people who make shows,
|
||||||
> and on the strength of that one show they decide if they\\'re going to
|
> and on the strength of that one show they decide if they're going to
|
||||||
> make more shows. Some pilots get picked and become television
|
> make more shows. Some pilots get picked and become television
|
||||||
> programs. Some don\\'t, become nothing. She starred in one of the ones
|
> programs. Some don't, become nothing. She starred in one of the ones
|
||||||
> that became nothing.
|
> that became nothing.
|
||||||
|
|
||||||
* One
|
* One
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user