File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
example/react-native-markdown-renderer/lib/util Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,8 @@ export function cleanupTokens(tokens) {
6
6
tokens . forEach ( token => {
7
7
token . type = getTokenTypeByToken ( token ) ;
8
8
9
- if ( token . type === 'image' ) {
9
+ // set image and hardbreak to block elements
10
+ if ( token . type === 'image' || token . type === 'hardbreak' ) {
10
11
token . block = true ;
11
12
}
12
13
} ) ;
Original file line number Diff line number Diff line change @@ -6,7 +6,8 @@ export function cleanupTokens(tokens) {
6
6
tokens . forEach ( token => {
7
7
token . type = getTokenTypeByToken ( token ) ;
8
8
9
- if ( token . type === 'image' ) {
9
+ // set image and hardbreak to block elements
10
+ if ( token . type === 'image' || token . type === 'hardbreak' ) {
10
11
token . block = true ;
11
12
}
12
13
} ) ;
You can’t perform that action at this time.
0 commit comments