1
0
Fork 0
mirror of https://github.com/plankanban/planka.git synced 2025-07-19 05:09:43 +02:00

Markdown support in card description and comment, fixes for mobile devices, update dependencies

This commit is contained in:
Maksim Eltyshev 2019-10-03 03:02:46 +05:00
parent ed348cf7bc
commit 2fda41b982
11 changed files with 374 additions and 14 deletions

View file

@ -3,6 +3,7 @@ import PropTypes from 'prop-types';
import classNames from 'classnames';
import { useTranslation } from 'react-i18next';
import { Comment } from 'semantic-ui-react';
import { Markdown } from '../../../lib/custom-ui';
import EditComment from './EditComment';
import User from '../../User';
@ -39,7 +40,7 @@ const ItemComment = React.memo(
</div>
<EditComment ref={editComment} defaultData={data} onUpdate={onUpdate}>
<>
<p className={styles.text}>{data.text}</p>
<Markdown source={data.text} linkTarget="_blank" className={styles.text} />
<Comment.Actions>
{user.isCurrent && (
<Comment.Action