diff options
author | scria1000 <91804886+scria1000@users.noreply.github.com> | 2021-12-15 13:46:04 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-15 13:46:04 +0000 |
commit | f3b0a04f3c6986264230e72a23f926ad792748af (patch) | |
tree | f453dad4e4bbfb3329115eacf7531101ecbab555 /app | |
parent | e90a3b674e84b4c9ce7204778c1b97cdfa7037ce (diff) | |
download | infinity-for-reddit-f3b0a04f3c6986264230e72a23f926ad792748af.tar infinity-for-reddit-f3b0a04f3c6986264230e72a23f926ad792748af.tar.gz infinity-for-reddit-f3b0a04f3c6986264230e72a23f926ad792748af.tar.bz2 infinity-for-reddit-f3b0a04f3c6986264230e72a23f926ad792748af.tar.lz infinity-for-reddit-f3b0a04f3c6986264230e72a23f926ad792748af.tar.xz infinity-for-reddit-f3b0a04f3c6986264230e72a23f926ad792748af.tar.zst infinity-for-reddit-f3b0a04f3c6986264230e72a23f926ad792748af.zip |
Fix markdown headers sometimes not rendering in About (#592)
Fix markdown headers sometimes not rendering in subreddit About section
Diffstat (limited to 'app')
-rw-r--r-- | app/src/main/java/ml/docilealligator/infinityforreddit/ParseSubscribedThing.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/src/main/java/ml/docilealligator/infinityforreddit/ParseSubscribedThing.java b/app/src/main/java/ml/docilealligator/infinityforreddit/ParseSubscribedThing.java index f5164ebd..0683ddb6 100644 --- a/app/src/main/java/ml/docilealligator/infinityforreddit/ParseSubscribedThing.java +++ b/app/src/main/java/ml/docilealligator/infinityforreddit/ParseSubscribedThing.java @@ -12,6 +12,7 @@ import ml.docilealligator.infinityforreddit.subreddit.SubredditData; import ml.docilealligator.infinityforreddit.subscribedsubreddit.SubscribedSubredditData; import ml.docilealligator.infinityforreddit.subscribeduser.SubscribedUserData; import ml.docilealligator.infinityforreddit.utils.JSONUtils; +import ml.docilealligator.infinityforreddit.utils.Utils; class ParseSubscribedThing { static void parseSubscribedSubreddits(String response, String accountName, @@ -97,7 +98,7 @@ class ParseSubscribedThing { } else { String subredditFullName = data.getString(JSONUtils.DISPLAY_NAME_KEY); String description = data.getString(JSONUtils.PUBLIC_DESCRIPTION_KEY).trim(); - String sidebarDescription = data.getString(JSONUtils.DESCRIPTION_KEY); + String sidebarDescription = Utils.modifyMarkdown(data.getString(JSONUtils.DESCRIPTION_KEY).trim()); int nSubscribers = data.getInt(JSONUtils.SUBSCRIBERS_KEY); long createdUTC = data.getLong(JSONUtils.CREATED_UTC_KEY) * 1000; String suggestedCommentSort = data.getString(JSONUtils.SUGGESTED_COMMENT_SORT_KEY); |