Method: ApplicationHelper#post_history_share_link_md

Defined in:
app/helpers/application_helper.rb

#post_history_share_link_md(post, history, index) ⇒ Object

Get a shareable link to a point in the specified post’s history, in Markdown form. Parameters as for #post_history_share_link.



179
180
181
182
# File 'app/helpers/application_helper.rb', line 179

def post_history_share_link_md(post, history, index)
  rev_num = history.size - index
  "[Revision #{rev_num}#{post.title}](#{post_history_share_link(post, history, index)})"
end