mirror of
https://github.com/TheAnachronism/docspell.git
synced 2025-06-22 02:18:26 +00:00
Fix potential infinite loop
The code removed here was copied from another project some years back. Now there is an improved version in fs2 that can be used. Fixes: #2376
This commit is contained in:
@ -52,7 +52,7 @@ object Markdown {
|
||||
cfg: MarkdownConfig,
|
||||
cs: Charset
|
||||
): F[String] =
|
||||
data.through(Binary.decode(cs)).compile.foldMonoid.map(str => toHtml(str, cfg))
|
||||
data.through(Binary.decode(cs)).compile.string.map(str => toHtml(str, cfg))
|
||||
|
||||
private def wrapHtml(body: String, cfg: MarkdownConfig): String =
|
||||
s"""<!DOCTYPE html>
|
||||
|
Reference in New Issue
Block a user