Skip to content

Commit

Permalink
Fix broken markdown display
Browse files Browse the repository at this point in the history
  • Loading branch information
oeway committed Sep 4, 2020
1 parent 4d301bb commit 2fb8bae
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/components/ResourceItemInfo.vue
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,11 @@ export default {
} catch (e) {
resourceItem.docs = null;
this.$forceUpdate();
} finally {
this.maxDocsLetters = this.resourceItem.docs
.split("\n")
.slice(0, 5)
.join("\n").length;
}
}
}
Expand Down

0 comments on commit 2fb8bae

Please sign in to comment.