strip footnote links in newsletter
This commit is contained in:
@@ -31,6 +31,10 @@ body = %(<h1>#{title}</h1>
|
|||||||
filename = $1.split("/").last
|
filename = $1.split("/").last
|
||||||
%(<a href="#{$1}">#{filename}</a>)
|
%(<a href="#{$1}">#{filename}</a>)
|
||||||
end
|
end
|
||||||
|
.gsub(/<a href="#fn[^>]+>(\d+)<\/a>/) do
|
||||||
|
$1
|
||||||
|
end
|
||||||
|
.gsub(/ <a href="#fnref:[^>]+>↩︎<\/a>/, "")
|
||||||
|
|
||||||
p HTTParty.post(
|
p HTTParty.post(
|
||||||
"https://dispatch.davideisinger.com/api/campaigns",
|
"https://dispatch.davideisinger.com/api/campaigns",
|
||||||
|
|||||||
Reference in New Issue
Block a user