From 1ecca84b2e8655b9fba27e427351719e00f35bc3 Mon Sep 17 00:00:00 2001 From: Sergey Avseyev Date: Sun, 24 Jul 2016 21:21:39 +0300 Subject: [PATCH] Allow to specify root HTML node for RST formatter It turns out that many RSS readers (or at least two I'm using: http://feedly.com and http://twentyfivesquares.com/press/) do not handle non-HTML tags in Atom content tag and skipping the whole content of it. This patch allows to specify different (in this case
) node to make readers happy. --- forum.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/forum.nim b/forum.nim index 0f0fd8c..001380b 100644 --- a/forum.nim +++ b/forum.nim @@ -467,7 +467,7 @@ proc rstToHtml(content: string): string = # TODO: Yes, this is ugly. I wrote it quickly. PRs welcome ;) try: var node = parseHtml(newStringStream(result)) - var newNode = newElement("document") + var newNode = newElement("div") if node.kind == xnElement: var currentBlockquote = newElement("blockquote") for n in items(node):