mirror of
https://github.com/ecency/ecency-mobile.git
synced 2024-12-12 13:05:41 +03:00
fixed undefined and comments alligment
This commit is contained in:
parent
41c58611e2
commit
4d9958720c
@ -54,7 +54,7 @@ class CommentView extends PureComponent {
|
|||||||
const { isShowSubComments } = this.state;
|
const { isShowSubComments } = this.state;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<View style={{ marginLeft: marginLeft || 29 }}>
|
<View>
|
||||||
<PostHeaderDescription
|
<PostHeaderDescription
|
||||||
key={comment.permlink}
|
key={comment.permlink}
|
||||||
date={getTimeFromNow(comment.created)}
|
date={getTimeFromNow(comment.created)}
|
||||||
|
@ -1,7 +1,5 @@
|
|||||||
import React, { PureComponent, Fragment } from 'react';
|
import React, { PureComponent, Fragment } from 'react';
|
||||||
import {
|
import { Dimensions, Linking, Alert } from 'react-native';
|
||||||
Dimensions, Linking, Alert,
|
|
||||||
} from 'react-native';
|
|
||||||
import { withNavigation } from 'react-navigation';
|
import { withNavigation } from 'react-navigation';
|
||||||
import { injectIntl } from 'react-intl';
|
import { injectIntl } from 'react-intl';
|
||||||
|
|
||||||
|
@ -21,7 +21,7 @@ const urlRegex = /(http|ftp|https):\/\/([\w_-]+(?:(?:\.[\w_-]+)+))([\w.,@?^=%&:/
|
|||||||
const aTagRegex = /(<\s*a[^>]*>(.*?)<\s*[/]\s*a>)/g;
|
const aTagRegex = /(<\s*a[^>]*>(.*?)<\s*[/]\s*a>)/g;
|
||||||
const imgTagRegex = /(<img[^>]*>)/g;
|
const imgTagRegex = /(<img[^>]*>)/g;
|
||||||
const iframeRegex = /(?:<iframe[^>]*)(?:(?:\/>)|(?:>.*?<\/iframe>))/g;
|
const iframeRegex = /(?:<iframe[^>]*)(?:(?:\/>)|(?:>.*?<\/iframe>))/g;
|
||||||
const markdownLinkRegex = /(?:__|[])|\[(.*?)\]\(.*?\)/g;
|
// const markdownLinkRegex = /(?:__|[])|\[(.*?)\]\(.*?\)/g;
|
||||||
|
|
||||||
export const markDown2Html = (input) => {
|
export const markDown2Html = (input) => {
|
||||||
if (!input) {
|
if (!input) {
|
||||||
@ -77,9 +77,9 @@ export const markDown2Html = (input) => {
|
|||||||
output = handleATag(output);
|
output = handleATag(output);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (markdownLinkRegex.test(output)) {
|
// if (markdownLinkRegex.test(output)) {
|
||||||
output = handleMarkdownLink(output);
|
// output = handleMarkdownLink(output);
|
||||||
}
|
// }
|
||||||
|
|
||||||
output = md.render(output);
|
output = md.render(output);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user