Skip to content

Commit

Permalink
adapt changes to Option String
Browse files Browse the repository at this point in the history
  • Loading branch information
acmepjz authored and hargoniX committed Jun 11, 2024
1 parent 175fbfd commit f50d2c1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion DocGen4/Output/DocString.lean
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,9 @@ end

/-- Convert docstring to Html. -/
def docStringToHtml (s : String) : HtmlM (Array Html) := do
let rendered := MD4Lean.renderHtml s
let rendered := match MD4Lean.renderHtml s with
| .some res => res
| _ => "" -- TODO: should print some error message
match manyDocument rendered.mkIterator with
| Parsec.ParseResult.success _ res =>
-- TODO: use `toString` instead of `eToStringEscaped`
Expand Down
2 changes: 1 addition & 1 deletion lake-manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
[{"url": "https://github.com/acmepjz/md4lean",
"type": "git",
"subDir": null,
"rev": "45c9ddea211f51a9f6564d920f8aedc4ad252cfe",
"rev": "d812b96744f9b60879cbfa9c436de2b95003db2a",
"name": "MD4Lean",
"manifestFile": "lake-manifest.json",
"inputRev": "main",
Expand Down

0 comments on commit f50d2c1

Please sign in to comment.