Implements rendering of RST using server and verbatim node in karax.

This commit is contained in:
Dominik Picheta 2018-05-12 18:36:51 +01:00
commit 67a5869c10
2 changed files with 2 additions and 2 deletions

View file

@ -1149,7 +1149,7 @@ routes:
history: @[], # TODO:
info: PostInfo(
creation: post[2].parseInt,
content: post[1]
content: post[1].rstToHtml()
)
))

View file

@ -76,7 +76,7 @@ when defined(js):
a(href=renderPostUrl(post, thread), title=title):
text renderActivity(post.info.creation)
tdiv(class="post-content"):
p(text post.info.content) # TODO: RSTGEN
verbatim(post.info.content)
tdiv(class="post-buttons"):
tdiv(class="like-button"):
button(class="btn"):