Skip to content

Commit

Permalink
Fix warning
Browse files Browse the repository at this point in the history
  • Loading branch information
finestructure committed Nov 26, 2024
1 parent b23d678 commit bb073fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/App/Views/MarkdownPage.swift
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class MarkdownPage: PublicPage {
.appending("Resources/Markdown/")
.appending(markdownFilename)

let markdown = try? String(contentsOfFile: pathToMarkdownFile)
let markdown = try? String(contentsOfFile: pathToMarkdownFile, encoding: .utf8)
let result = markdown.map(MarkdownParser().parse)
metadata = result?.metadata ?? [:]
html = result?.html
Expand Down

0 comments on commit bb073fd

Please sign in to comment.