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.
This commit is contained in:
Dominik Picheta 2018-05-14 19:14:04 +01:00
commit 073f274e04

View file

@ -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)