Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Rex Dri
Rex Dri
Commits
09b7657f
Commit
09b7657f
authored
Feb 26, 2019
by
Florent Chehab
Browse files
Fixed warning realted to whitespace in Markdown component.
parent
7266140c
Pipeline
#35510
canceled with stages
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
frontend/src/components/shared/Markdown.js
View file @
09b7657f
...
...
@@ -146,7 +146,7 @@ const BlockquoteRenderer = (props, classes) => (
const
TableRenderer
=
(
props
,
classes
)
=>
(
<
Paper
className
=
{
classes
.
backgroundTable
}
>
<
Table
className
=
{
classes
.
table
}
>
{
props
.
children
}
<
/Table
>
<
Table
className
=
{
classes
.
table
}
>
{
props
.
children
}
<
/Table
>
<
/Paper
>
);
...
...
@@ -165,16 +165,16 @@ const renderers = {
heading
:
HeadingRenderer
,
list
:
withStyles
(
styles
,
{
withTheme
:
true
})(
ListRenderer
),
listItem
:
withStyles
(
styles
,
{
withTheme
:
true
})(
ListItemRenderer
),
paragraph
:
(
props
)
=>
<
Typography
paragraph
>
{
props
.
children
}
<
/Typography>
,
paragraph
:
(
props
)
=>
<
Typography
paragraph
>
{
props
.
children
}
<
/Typography>
,
link
:
props
=>
<
LinkText
{...
props
}
/>
,
code
:
withStyles
(
styles
,
{
withTheme
:
true
})(
CodeRenderer
),
inlineCode
:
withStyles
(
styles
,
{
withTheme
:
true
})(
InlineCodeRenderer
),
blockquote
:
withStyles
(
styles
,
{
withTheme
:
true
})(
BlockquoteRenderer
),
table
:
withStyles
(
styles
,
{
withTheme
:
true
})(
TableRenderer
),
tableHead
:
withStyles
(
styles
,
{
withTheme
:
true
})(
TableHeadRenderer
),
tableBody
:
props
=>
(
<
TableBody
>
{
props
.
children
}
<
/TableBody>
)
,
tableRow
:
props
=>
(
<
TableRow
hover
=
{
true
}
>
{
props
.
children
}
<
/TableRow>
)
,
tableCell
:
props
=>
(
<
TableCell
>
{
props
.
children
}
<
/TableCell>
)
,
tableBody
:
props
=>
(
<
TableBody
>
{
props
.
children
}
<
/TableBody>
)
,
tableRow
:
props
=>
(
<
TableRow
hover
=
{
true
}
>
{
props
.
children
}
<
/TableRow>
)
,
tableCell
:
props
=>
(
<
TableCell
>
{
props
.
children
}
<
/TableCell>
)
,
thematicBreak
:
()
=>
(
<
Divider
/>
)
};
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment