class MarkdownLinkFilterWriter extends Writer {

    @Override
    public void write(char[] cbuf, int off, int len) throws IOException {
        StringBuffer slurped = new StringBuffer();
        for (int i = 0; i < len; i++) {
            slurped.append(cbuf[i + off]);
        }
        String replaced = String.format(slurped.toString(), dest);
        String markedDown = new MarkdownProcessor().markdown(replaced);
        markedDown = markedDown.replace("<p>", "");
        markedDown = markedDown.replace("</p>", "");
        out.write(markedDown);
    }

      MarkdownLinkFilterWriter(Writer out, String dest);

}