Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Warn on empty links

  • Loading branch information...
commit b5f4f1d087434c42d0f74e16ed89da3e35e011a7 1 parent 5e5eece
@chneukirchen authored
Showing with 1 addition and 0 deletions.
  1. +1 −0  trivium.rb
View
1  trivium.rb
@@ -62,6 +62,7 @@ def to_html
case name
when "link"
title, desc = body.split("|", 2)
+ warn "forgot link: #{title.strip}" if args.strip.empty?
%{<p class="link"><span><a href="#{CGI.escapeHTML(args.strip)}">#{
title.strip}</a>#{SpanBlueCloth.new(desc.to_s).to_html}</span></p>}
when "quote"
Please sign in to comment.
Something went wrong with that request. Please try again.