relativize content
content generated by the markdown parser needs to be relative, specially anchors. so far i made this filter to relativize anchors but it should be plugged into the markdown output
def html_relativize_anchors_to(input, base)
input.gsub!(/((href|src)=["'])#/, "\\1#{base}#")
end