Skip to content

Commit

Permalink
feat(markdown): Support to render del tag (#525)
Browse files Browse the repository at this point in the history
* feat(markdown): Support to render del tag

* chore(markdown): Delete useless render handler
  • Loading branch information
chinesedfan authored and Houssein Djirdeh committed Oct 21, 2017
1 parent 404ad35 commit 7bfbf9a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/components/github-htmlview.component.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ const boldStyle = {
...fonts.fontPrimarySemiBold,
};
const italicStyle = { ...textStyle, ...fonts.fontPrimaryItalic };
const delStyle = { ...textStyle, textDecorationLine: 'line-through' };
const hrStyle = { borderBottomWidth: 2, borderBottomColor: colors.greyDark };
const underlineStyle = { textDecorationLine: 'underline' };
const codeStyle = {
Expand All @@ -42,6 +43,7 @@ const styles = {
i: italicStyle,
em: italicStyle,
u: underlineStyle,
del: delStyle,
pre: { ...codeStyle, padding: 5, marginBottom: 10 },
code: codeStyle,
span: textStyle,
Expand Down

0 comments on commit 7bfbf9a

Please sign in to comment.