Skip to content

Commit

Permalink
fix(plugins/plugin-client-common): Hint component can generate invali…
Browse files Browse the repository at this point in the history
…d dom nesting warning

part of #7963
  • Loading branch information
starpit committed Sep 13, 2021
1 parent e7eb729 commit a198c9d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -258,10 +258,11 @@ export default class Markdown extends React.PureComponent<Props> {
}
},
blockquote: props => {
// avoid <p>: invalid dom nesting of p inside of p
return (
<p>
<span className="paragraph">
<Hint>{props.children}</Hint>
</p>
</span>
)
},
code: props => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@

@mixin Paragraphs {
@include CommentaryCard {
p {
p,
.paragraph {
@content;
}
}
Expand Down

0 comments on commit a198c9d

Please sign in to comment.