mirror of
https://github.com/alrayyes/wiki.git
synced 2024-11-22 19:46:23 +00:00
fix: do not render <p> inside FolderContent article (#1044)
it can lead to nested <p>'s which is actually [invalid html](https://www.w3.org/TR/html401/struct/text.html#h-9.3.1:~:text=The%20P%20element%20represents%20a%20paragraph.%20It%20cannot%20contain%20block%2Dlevel%20elements%20(including%20P%20itself).)
This commit is contained in:
parent
fafe50b0c5
commit
aa4f5294a3
1 changed files with 1 additions and 3 deletions
|
@ -47,9 +47,7 @@ export default ((opts?: Partial<FolderContentOptions>) => {
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div class={classes}>
|
<div class={classes}>
|
||||||
<article>
|
<article>{content}</article>
|
||||||
<p>{content}</p>
|
|
||||||
</article>
|
|
||||||
<div class="page-listing">
|
<div class="page-listing">
|
||||||
{options.showFolderCount && (
|
{options.showFolderCount && (
|
||||||
<p>
|
<p>
|
||||||
|
|
Loading…
Reference in a new issue