Apr
6
Oops.
Oops.
class BlueCloth < String
def transform_code_spans_with_forgiveness(str, rs)
begin
str = transform_code_spans_without_forgiveness(str, rs)
rescue BlueCloth::FormatError
# Forgive unmatched backticks
end
str
end
alias_method_chain :transform_code_spans, :forgiveness
end
Now when your users have unmatched backticks in their marked-down text, BlueCloth will ignore the problem (which is not actually a problem, per the Markdown spec) and continue.
Haptics is where the device buzzes when you tap stuff. Not convinced. Still, interesting.
Some web developers are like the old and vaguely racist notion of domesticated savages — at the slightest opportunity, they revert to native.
Virginia pointed out that Is your new bicycle has a bit in common with this expletive generator I made a few years ago. I’m slowly coming around to the IYNB meme. Probably get there by the time it’s passe.