Skip to content

Commit

Permalink
- fixed issue where orderedLists and unorderedLists where cut off wh…
Browse files Browse the repository at this point in the history
…en having a long length. #21

 - fixed issue where orderedLists and unorderedLists where mis aligned. #22
 - updating to 3.0.2
  • Loading branch information
mientjan committed Jan 30, 2018
1 parent 3a54cb9 commit e4b410f
Show file tree
Hide file tree
Showing 4 changed files with 41 additions and 8 deletions.
13 changes: 13 additions & 0 deletions example/src/copyAllCheckboxPlugin.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,17 @@
const markdownText = `
+ Selected third parties include:
- Service providers assigned to carrying out your service contract when placing a booking on the company. Ac tristique libero volutpat at Ac tristique libero volutpat at Ac tristique libero volutpat at Ac tristique libero volutpat at Ac tristique libero volutpat at
- Service providers assigned to carrying out your service contract when placing a booking on the company. Ac tristique libero volutpat at Ac tristique libero volutpat at Ac tristique libero volutpat at Ac tristique libero volutpat at Ac tristique libero volutpat at
- Service providers assigned to carrying out your service contract when placing a booking on the company. Ac tristique libero volutpat at Ac tristique libero volutpat at Ac tristique libero volutpat at Ac tristique libero volutpat at Ac tristique libero volutpat at
+ Sub-lists are made by indenting 2 spaces:
- Marker character change forces new list start:
* Ac tristique libero volutpat at
+ Facilisis in pretium nisl aliquet
- Nulla volutpat aliquam velit
+ Very easy!
## ![loading](https://www.hippomundo.com/images/loading.gif) Images
![Minion](https://octodex.github.com/images/minion.png)
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-native-markdown-renderer",
"version": "3.0.1",
"version": "3.0.2",
"description": "Markdown renderer for react-native, with CommonMark spec support + adds syntax extensions & sugar (URL autolinking, typographer).",
"main": "src/index.js",
"scripts": {},
Expand Down
4 changes: 4 additions & 0 deletions src/lib/enum/PlatformEnum.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
export default {
IOS: "ios",
ANDROID: "android"
};
30 changes: 23 additions & 7 deletions src/lib/styles.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { StyleSheet } from "react-native";
import { Platform, StyleSheet } from "react-native";
import PlatformEnum from "./enum/PlatformEnum";

/**
*
Expand Down Expand Up @@ -65,19 +66,28 @@ export const styles = StyleSheet.create({
},
list: {},
listItem: {
flex: 1,
flexWrap: "wrap"
// backgroundColor: 'green',
},
listUnordered: {},

listUnorderedItem: {
flexDirection: "row"
flexDirection: "row",
justifyContent: "flex-start"
},

listUnorderedItemIcon: {
marginLeft: 10,
marginRight: 10,
lineHeight: 40
...Platform.select({
[PlatformEnum.IOS]: {
lineHeight: 36
},
[PlatformEnum.ANDROID]: {
lineHeight: 30
}
})
},
listUnorderedItemText: {
fontSize: 20,
Expand All @@ -91,7 +101,14 @@ export const styles = StyleSheet.create({
listOrderedItemIcon: {
marginLeft: 10,
marginRight: 10,
lineHeight: 40
...Platform.select({
[PlatformEnum.IOS]: {
lineHeight: 36
},
[PlatformEnum.ANDROID]: {
lineHeight: 30
}
})
},
listOrderedItemText: {
fontWeight: "bold",
Expand Down Expand Up @@ -134,14 +151,13 @@ export const styles = StyleSheet.create({
textDecorationLine: "line-through"
},
link: {
textDecorationLine: "underline",
textDecorationLine: "underline"
},
u: {
borderColor: "#000000",
borderBottomWidth: 1
},
image: {
flex: 1,

flex: 1
}
});

0 comments on commit e4b410f

Please sign in to comment.