We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 40d7b1c commit 5ee44f6Copy full SHA for 5ee44f6
src/utils.nim
@@ -178,8 +178,10 @@ proc rstToHtml*(content: string): string =
178
docConfig)
179
try:
180
var node = parseHtml(newStringStream(result))
181
- if node.kind == xnElement:
182
- node = processQuotes(node)
+ # rst.nim parser did not support quotes until Nim 1.7:
+ when (NimMajor, NimMinor) < (1, 7):
183
+ if node.kind == xnElement:
184
+ node = processQuotes(node)
185
node = processMentions(node)
186
result = ""
187
add(result, node, indWidth=0, addNewLines=false)
0 commit comments