fix unescape used by unescapeUnderscoreInLinks

after 5b29b83d27
pull/10066/head
Niklas Fiekas 2021-11-01 13:03:10 +01:00
parent 7c4926fcf9
commit a20bf5ae4c
1 changed files with 1 additions and 1 deletions

View File

@ -43,7 +43,7 @@ final class UblogMarkup(baseUrl: config.BaseUrl, assetBaseUrl: config.AssetBaseU
private def imageParagraph(markup: Html) =
markup.replace("""<p><img src=""", """<p class="img-container"><img src=""")
private def unescape(txt: String) = txt.replace("""\\_""", "_")
private def unescape(txt: String) = txt.replace("""\_""", "_")
// https://github.com/ornicar/lila/issues/9767
// toastui editor escapes `_` as `\_` and it breaks autolinks