chore: Remove double new lines in Home component's content
This commit is contained in:
parent
302907602b
commit
948c12525e
@ -147,9 +147,6 @@ export default function Home() {
|
|||||||
.replace(boldRegex, '<strong>$1</strong>')
|
.replace(boldRegex, '<strong>$1</strong>')
|
||||||
.replace(italicRegex, '<em>$1</em>');
|
.replace(italicRegex, '<em>$1</em>');
|
||||||
|
|
||||||
// Remove double new lines
|
|
||||||
content = content.replace("\n\n", "")
|
|
||||||
|
|
||||||
// Replace unordered and ordered lists
|
// Replace unordered and ordered lists
|
||||||
content = content
|
content = content
|
||||||
.replace(unorderedListRegex, '<li class="list-disc ml-6">$1</li>')
|
.replace(unorderedListRegex, '<li class="list-disc ml-6">$1</li>')
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user