diff options
Diffstat (limited to 'mardown')
| -rw-r--r-- | mardown/ast_paragraph.go | 3 | ||||
| -rw-r--r-- | mardown/ast_quote.go | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/mardown/ast_paragraph.go b/mardown/ast_paragraph.go index d728183..687e735 100644 --- a/mardown/ast_paragraph.go +++ b/mardown/ast_paragraph.go @@ -42,7 +42,7 @@ func paragraph(lxs *lexers, oneLine bool) (*astParagraph, error) { for lxs.Next() && n < maxBreak { switch lxs.Current().Type { case lexerBreak: - n++ + n = len(lxs.Current().Value) case lexerQuote: if n > 0 { lxs.Before() @@ -66,6 +66,7 @@ func paragraph(lxs *lexers, oneLine bool) (*astParagraph, error) { n = 0 //TODO: handle case lexerCode: + n = 0 b, err := code(lxs) if err != nil { return nil, err diff --git a/mardown/ast_quote.go b/mardown/ast_quote.go index 11c7c13..101b854 100644 --- a/mardown/ast_quote.go +++ b/mardown/ast_quote.go @@ -42,7 +42,7 @@ func quote(lxs *lexers) (*astQuote, error) { for lxs.Next() && n < 2 { switch lxs.Current().Type { case lexerBreak: - n++ + n = len(lxs.Current().Value) quoteContinue = false case lexerQuote: n = 0 |
