v1.0.5: Fix history viewer - ContentConverter JsonElement type bug

- ContentConverter.tipTapToHtml() had same JsonObject.asMap() bug as tiptapToMarkdown
- All as? String casts silently returned null, producing empty HTML
- Now uses Gson TypeToken<Map<String, Any?>> for proper deserialization
- Added contentToHtml() that handles String (HTML), Map (TipTap), and JSON string
- Fixed heading level cast (Gson deserializes numbers as Double, not Int)
- VersionViewerActivity handles all content types correctly
This commit is contained in:
2026-07-27 17:39:48 -06:00
parent ae57a0bf09
commit 922d31b7df
3 changed files with 55 additions and 16 deletions

View File

@@ -20,8 +20,8 @@ android {
applicationId = "com.docmost.app"
minSdk = 26
targetSdk = 34
versionCode = 5
versionName = "1.0.4"
versionCode = 6
versionName = "1.0.5"
}
signingConfigs {