Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit b5a0b24

Browse files
committed
Fix linter issues
1 parent e374ac8 commit b5a0b24

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

src/HtmlUtils.tsx

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -613,15 +613,20 @@ export function bodyToHtml(content: IContent, highlights: string[], opts: IOpts
613613
</span>;
614614
}
615615

616-
/**
616+
/**
617617
* Turn a room topic into html
618618
* @param topic plain text topic
619619
* @param htmlTopic optional html topic
620620
* @param ref React ref to attach to any React components returned
621621
* @param allowExtendedHtml whether to allow extended HTML tags such as headings and lists
622622
* @return The HTML-ified node.
623623
*/
624-
export function topicToHtml(topic: string, htmlTopic?: string, ref?: React.Ref<HTMLSpanElement>, allowExtendedHtml: boolean = false): ReactNode {
624+
export function topicToHtml(
625+
topic: string,
626+
htmlTopic?: string,
627+
ref?: React.Ref<HTMLSpanElement>,
628+
allowExtendedHtml = false,
629+
): ReactNode {
625630
if (!SettingsStore.getValue("feature_html_topic")) {
626631
htmlTopic = null;
627632
}

0 commit comments

Comments
 (0)