Skip to content

Commit

Permalink
no longer crash when encountering malformed html
Browse files Browse the repository at this point in the history
  • Loading branch information
DeDiamondPro committed May 28, 2024
1 parent 4ab67bd commit 8e5516d
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
3 changes: 3 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
## Resourcify 1.4.0+beta.1

- Add support for CurseForge
- Settings page to configure the default pack source and some other settings
- Convert backend to an abstract service api, allowing for easier support for more services
- Fix background breaking when using essential (or another mod with universalcraft) in mc 1.20.5+
- Fix crash in case of malformed html in markdown
- Added small bisect hosting ad to the top of the browse page, this is to help support the project and can be disabled in the new settings page

----------------------------------------------------------------------------------------------------

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,15 @@ class DescriptionPage(screen: ProjectScreen) : UIBlock(color = Color(0, 0, 0, 10
}
screen.project.getDescription().thenAccept {
Window.enqueueRenderOperation {
markdown(it).constrain {
x = 6.pixels()
y = 6.pixels()
width = 100.percent() - 12.pixels()
} childOf this
try {
markdown(it).constrain {
x = 6.pixels()
y = 6.pixels()
width = 100.percent() - 12.pixels()
} childOf this
} catch (e: Exception) {
e.printStackTrace()
}
}
}
}
Expand Down

0 comments on commit 8e5516d

Please sign in to comment.