Fix second (e.g. closing) literal tag not being converted properly.

This commit is contained in:
ccd0 2016-03-29 12:10:03 -07:00
parent 943a7ef31b
commit 2be6155518

View File

@ -129,7 +129,7 @@ class Fetcher
@archiveTags[text]
else
greentext = text[0] is '>'
text = text.replace /(\[\/?[a-z]+):lit(\])/, '$1$2'
text = text.replace /(\[\/?[a-z]+):lit(\])/g, '$1$2'
text = for text2, j in text.split /(>>(?:>\/[a-z\d]+\/)?\d+)/g
<%= html('?{j % 2}{<span class="deadlink">${text2}</span>}{${text2}}') %>
text = <%= html('?{greentext}{<span class="quote">@{text}</span>}{@{text}}') %>