Skip to content

Commit

Permalink
chore(bbcode-dataprocessor): Apply prettier suggestion
Browse files Browse the repository at this point in the history
  • Loading branch information
JensDallmann committed Oct 11, 2023
1 parent 3f45954 commit 11b9b70
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@ export const bbCode = {
img: (url: string) => `[img]${url}[/img]`,
emoji: (emoji: string) => `[${emoji}]`,
quote: (text: string, author?: string) => (author ? `[quote="${author}"]${text}[/quote]` : `[quote]${text}[/quote]`),
code: (text: string, language?: string) => (language ? `[code=${language}]\n${text}\n[/code]` : `[code]\n${text}\n[/code]`),
code: (text: string, language?: string) =>
language ? `[code=${language}]\n${text}\n[/code]` : `[code]\n${text}\n[/code]`,
style: (text: string, style: RequireSelected<StyleOptions, "size"> | RequireSelected<StyleOptions, "color">) => {
let styleOptions = ``;
if (style.size) {
Expand Down

0 comments on commit 11b9b70

Please sign in to comment.