mirror of
https://github.com/bitsocialnet/5chan.git
synced 2026-08-03 07:41:04 +02:00
fix(markdown): don't allow horizontal lines, they look confusing inside of post content
This commit is contained in:
@@ -168,12 +168,7 @@ const Markdown = ({ content, title }: MarkdownProps) => {
|
|||||||
video: ({ src }) => <span>{src}</span>,
|
video: ({ src }) => <span>{src}</span>,
|
||||||
iframe: ({ src }) => <span>{src}</span>,
|
iframe: ({ src }) => <span>{src}</span>,
|
||||||
source: ({ src }) => <span>{src}</span>,
|
source: ({ src }) => <span>{src}</span>,
|
||||||
hr: () =>
|
hr: () => null,
|
||||||
!isInCatalogView && (
|
|
||||||
<div className={styles.hrWrapper}>
|
|
||||||
<hr />
|
|
||||||
</div>
|
|
||||||
),
|
|
||||||
a: ({ href, children }) => {
|
a: ({ href, children }) => {
|
||||||
if (href && !isInCatalogView) {
|
if (href && !isInCatalogView) {
|
||||||
const linkMediaInfo = getLinkMediaInfo(href);
|
const linkMediaInfo = getLinkMediaInfo(href);
|
||||||
|
|||||||
Reference in New Issue
Block a user