Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(plugins/plugin-client-common): ls does not render markdown cells …
Browse files Browse the repository at this point in the history
…properly

Fixes #7000
starpit committed Feb 11, 2021
1 parent bd3a789 commit 9fc7e74
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -22,6 +22,7 @@ import Tooltip from '../../spi/Tooltip'
import { onClickForCell } from './TableCell'
import DefaultColoring, { Coloring } from './Coloring'
import tooltipContent, { tooltipProps } from './Tooltip'
const Markdown = React.lazy(() => import('../Markdown'))

/** parameters to Grid component */
export type Props<T extends KuiTable = KuiTable> = {
@@ -105,7 +106,7 @@ export default class Grid<P extends Props> extends React.PureComponent<P, State>
className={_.onclick && 'clickable'}
onClick={onClickForCell(_, this.props.tab, this.props.repl, _.onclick, this.props.response)}
>
{_.name}
{this.props.response.markdown ? <Markdown nested source={_.name} /> : _.name}
</span>
</div>
))}

0 comments on commit 9fc7e74

Please sign in to comment.