From 073f274e0471cb6c6b90d8cf901d73959886457b Mon Sep 17 00:00:00 2001 From: Dominik Picheta Date: Mon, 14 May 2018 19:14:04 +0100 Subject: [PATCH] Small fix to blockquote parser. Decided to leave the blockquote parser alone. It works well enough and the small bugs it contains aren't critical. --- utils.nim | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/utils.nim b/utils.nim index 543626f..8f4d9a8 100644 --- a/utils.nim +++ b/utils.nim @@ -105,7 +105,7 @@ proc processQuotes(node: XmlNode): XmlNode = newBq = newElement("blockquote") bq.add(newBq) bq = newBq - bq.insert(contentNode, if bq.len == 0: 0 else: bq.len) + bq.add(contentNode) else: blockquoteFinish(currentBlockquote, result, n) else: @@ -172,7 +172,6 @@ proc rstToHtml*(content: string): string = var node = parseHtml(newStringStream(result)) if node.kind == xnElement: node = processQuotes(node) - node = processMentions(node) result = "" add(result, node, indWidth=0, addNewLines=false)