sub _extract_from_md {
my ($self, $md) = @_;
- $self->_extract_from_html(markdown($md, { document_format => 'complete' }));
+
+ my $html = markdown($md, { document_format => 'complete' });
+
+ $html =~ s#<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">##g;
+ $self->_extract_from_html($html);
}
1;