Merge pull request #89 from avsej/fix-content-for-rss-readers
Allow to specify root HTML node for RST formatter
This commit is contained in:
commit
85f527ee4f
1 changed files with 1 additions and 1 deletions
|
|
@ -467,7 +467,7 @@ proc rstToHtml(content: string): string =
|
||||||
# TODO: Yes, this is ugly. I wrote it quickly. PRs welcome ;)
|
# TODO: Yes, this is ugly. I wrote it quickly. PRs welcome ;)
|
||||||
try:
|
try:
|
||||||
var node = parseHtml(newStringStream(result))
|
var node = parseHtml(newStringStream(result))
|
||||||
var newNode = newElement("document")
|
var newNode = newElement("div")
|
||||||
if node.kind == xnElement:
|
if node.kind == xnElement:
|
||||||
var currentBlockquote = newElement("blockquote")
|
var currentBlockquote = newElement("blockquote")
|
||||||
for n in items(node):
|
for n in items(node):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue