Implements rendering of RST using server and verbatim node in karax.
This commit is contained in:
parent
4ff5df6be2
commit
67a5869c10
2 changed files with 2 additions and 2 deletions
|
|
@ -1149,7 +1149,7 @@ routes:
|
||||||
history: @[], # TODO:
|
history: @[], # TODO:
|
||||||
info: PostInfo(
|
info: PostInfo(
|
||||||
creation: post[2].parseInt,
|
creation: post[2].parseInt,
|
||||||
content: post[1]
|
content: post[1].rstToHtml()
|
||||||
)
|
)
|
||||||
))
|
))
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -76,7 +76,7 @@ when defined(js):
|
||||||
a(href=renderPostUrl(post, thread), title=title):
|
a(href=renderPostUrl(post, thread), title=title):
|
||||||
text renderActivity(post.info.creation)
|
text renderActivity(post.info.creation)
|
||||||
tdiv(class="post-content"):
|
tdiv(class="post-content"):
|
||||||
p(text post.info.content) # TODO: RSTGEN
|
verbatim(post.info.content)
|
||||||
tdiv(class="post-buttons"):
|
tdiv(class="post-buttons"):
|
||||||
tdiv(class="like-button"):
|
tdiv(class="like-button"):
|
||||||
button(class="btn"):
|
button(class="btn"):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue