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

Commit

Permalink
Fix linter issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Johennes committed Apr 19, 2022
1 parent e374ac8 commit b5a0b24
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/HtmlUtils.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -613,15 +613,20 @@ export function bodyToHtml(content: IContent, highlights: string[], opts: IOpts
</span>;
}

/**
/**
* Turn a room topic into html
* @param topic plain text topic
* @param htmlTopic optional html topic
* @param ref React ref to attach to any React components returned
* @param allowExtendedHtml whether to allow extended HTML tags such as headings and lists
* @return The HTML-ified node.
*/
export function topicToHtml(topic: string, htmlTopic?: string, ref?: React.Ref<HTMLSpanElement>, allowExtendedHtml: boolean = false): ReactNode {
export function topicToHtml(
topic: string,
htmlTopic?: string,
ref?: React.Ref<HTMLSpanElement>,
allowExtendedHtml = false,
): ReactNode {
if (!SettingsStore.getValue("feature_html_topic")) {
htmlTopic = null;
}
Expand Down

0 comments on commit b5a0b24

Please sign in to comment.