From e53a34621e60942774aab7a4e7dbf939b144b30e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20Teichgr=C3=A4ber?= Date: Fri, 20 Jul 2012 12:33:52 +0200 Subject: [PATCH] markdown.go: Parser.Markdown: reset the buffer at beginning (needs to be resolved later) --- markdown.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/markdown.go b/markdown.go index 337e289..bbc3db5 100644 --- a/markdown.go +++ b/markdown.go @@ -72,6 +72,11 @@ type Formatter interface { func (p *Parser) Markdown(src io.Reader, f Formatter) { s := p.preformat(src) + // this should not be necessary; + // investigation is needed to understand + // why the buffer sometimes is not empty + p.yy.ResetBuffer("") + p.parseRule(ruleReferences, s) if p.yy.extension.Notes { p.parseRule(ruleNotes, s)